/* 游侠网风格CSS - PC+H5自适应 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #007bff;
    background: rgba(0,123,255,0.1);
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    max-width: 300px;
    width: 100%;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumb-item {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 游戏基本信息卡片 */
.game-header {
    margin-bottom: 30px;
}

.game-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.game-icon {
    position: relative;
    flex-shrink: 0;
}

.game-icon-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.game-version-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.game-details {
    flex: 1;
}

.game-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
}

.game-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.game-meta {
    margin-bottom: 25px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #ffc107;
}

.rating-score {
    font-weight: 600;
    color: #007bff;
    font-size: 18px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.game-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.tag.primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.tag:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-download {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-favorite,
.btn-share {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.btn-share:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-icon {
    font-size: 16px;
}

/* 截图展示 */
.screenshots-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.screenshot-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.05);
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 游戏介绍 */
.game-description {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.description-content {
    line-height: 1.8;
    color: #444;
}

.description-summary p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.description-features,
.description-gameplay,
.description-system {
    margin: 25px 0;
}

.description-features h4,
.description-gameplay h4,
.description-system h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #007bff;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    background: #f8f9fa;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.features-list li strong {
    color: #007bff;
}

.system-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.requirement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.req-label {
    color: #666;
    font-weight: 500;
}

.req-value {
    color: #333;
    font-weight: 600;
}

/* 版本历史 */
.version-history {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.version-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.version-item.current {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9, #fff);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.version-number {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

.version-tag {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.version-tag.current {
    background: #28a745;
}

.version-date {
    color: #666;
    font-size: 14px;
    margin-left: auto;
}

.version-content h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.version-content ul {
    list-style: none;
    padding: 0;
}

.version-content li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.version-content li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 12px;
}

/* 评论区域 */
.comments-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comment-count {
    color: #666;
    font-weight: normal;
    font-size: 16px;
}

.comments-list {
    margin: 20px 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 -10px;
    padding: 20px 10px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.comment-nickname {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.comment-rating {
    display: flex;
    gap: 1px;
}

.comment-rating .star {
    font-size: 14px;
}

.comment-time {
    color: #666;
    font-size: 13px;
    margin-left: auto;
}

.comment-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-like,
.comment-reply {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.comment-like:hover {
    background: #e3f2fd;
    color: #007bff;
}

.comment-reply:hover {
    background: #f3e5f5;
    color: #9c27b0;
}

.load-more-comments {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #666;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 下载卡片 */
.download-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 80px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.download-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.download-details {
    flex: 1;
}

.app-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.app-version,
.app-size {
    color: #666;
    font-size: 14px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download-main {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-download-alt {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-alt:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 相关游戏推荐 */
.related-games {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.game-item:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}

.game-thumb {
    flex-shrink: 0;
}

.game-thumb img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-name {
    margin-bottom: 6px;
    font-size: 14px;
}

.game-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.game-name a:hover {
    color: #007bff;
}

.game-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.game-rating {
    color: #ffc107;
}

.game-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-date {
    font-size: 11px;
    color: #aaa;
}

/* 热门排行榜 */
.hot-rankings {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #f8f9fa;
}

.rank-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f1f3f4;
    color: #666;
}

.rank-1 .rank-number {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #b8860b;
}

.rank-2 .rank-number {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #666;
}

.rank-3 .rank-number {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #8b4513;
}

.rank-content {
    flex: 1;
    min-width: 0;
}

.rank-content a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.rank-content a:hover {
    color: #007bff;
}

.rank-downloads {
    font-size: 12px;
    color: #666;
}

/* 相关资讯 */
.news-section {
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-item.featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
}

.news-thumb {
    position: relative;
    flex-shrink: 0;
}

.news-item:not(.featured) .news-thumb {
    height: 180px;
}

.news-item.featured .news-thumb {
    width: 300px;
    height: 200px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-title {
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.news-title a:hover {
    color: #007bff;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.news-time {
    color: #007bff;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    margin-bottom: 5px;
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* 移动端底部工具栏 */
.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 10px 0;
    z-index: 1001;
}

.mobile-toolbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
}

.toolbar-item:hover,
.toolbar-item.active {
    background: #f8f9fa;
    color: #007bff;
}

.toolbar-item.download-action {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
}

.toolbar-icon {
    font-size: 20px;
}

.toolbar-text {
    font-size: 11px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .news-item.featured {
        flex-direction: column;
    }
    
    .news-item.featured .news-thumb {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .search-box {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .game-info-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .game-title {
        font-size: 24px;
    }
    
    .game-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .screenshots-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-toolbar {
        display: flex;
    }
    
    .main-content {
        margin-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .game-info-card {
        padding: 20px;
    }
    
    .game-icon-img {
        width: 100px;
        height: 100px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 页面加载动画 */
.game-info-card {
    animation: fadeInUp 0.6s ease-out;
}

.screenshots-section {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.sidebar {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.news-section {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 选择文本样式 */
::selection {
    background: #007bff;
    color: white;
}

::-moz-selection {
    background: #007bff;
    color: white;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* 打印样式 */
@media print {
    .header,
    .mobile-toolbar,
    .back-to-top,
    .btn-download,
    .btn-favorite,
    .btn-share {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .game-info-card,
    .screenshots-section,
    .game-description {
        break-inside: avoid;
    }
}
