/* Steam Store Clone - Main Stylesheet */

/* CSS Variables */
:root {
    --steam-dark: #171a21;
    --steam-darker: #0e141b;
    --steam-blue: #1b2838;
    --steam-light-blue: #2a475e;
    --steam-green: #a1cd44;
    --steam-green-hover: #8ed629;
    --steam-text: #c6d4df;
    --steam-text-light: #8f98a0;
    --steam-link: #66c0f4;
    --steam-link-hover: #fff;
    --steam-discount: #4c6b22;
    --steam-price: #beee11;
    --steam-bg: #171a21;
    --steam-card-bg: rgba(0, 0, 0, 0.2);
    --steam-border: rgba(139, 148, 158, 0.2);
    --steam-positive: #66c0f4;
    --steam-negative: #c35c2c;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
    background-attachment: fixed;
    color: var(--steam-text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--steam-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--steam-link-hover);
}

/* Global Header */
.global-header {
    background: var(--steam-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.steam-logo {
    display: flex;
    align-items: center;
}

.steam-logo svg {
    width: 176px;
    height: 52px;
}

.global-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #c5c3c0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--steam-link);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.install-btn {
    background: linear-gradient(135deg, #47bfff 0%, #1a44c2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: filter 0.2s;
}

.install-btn:hover {
    filter: brightness(1.2);
    color: #fff;
}

.install-icon {
    font-size: 14px;
}

.login-link {
    color: #b8b6b4;
    font-size: 13px;
}

/* Mobile Menu Button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c5c3c0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--steam-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 999;
}

.mobile-nav-panel.open {
    max-height: 300px;
    padding: 12px 0;
}

.mobile-nav-link {
    display: block;
    color: #c5c3c0;
    font-size: 15px;
    padding: 12px 20px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 20px;
}

.login-link:hover {
    color: #fff;
}

/* Store Navigation */
.store-nav {
    background: rgba(23, 26, 33, 0.98);

    padding: 10px 0;
    position: relative;
    z-index: 1050;
    margin-bottom: 0;
}

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

.store-nav-links {
    display: flex;
    gap: 8px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #c5c3c0;
    font-size: 13px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.nav-btn:hover,
.nav-btn:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(23, 26, 33, 0.98);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1100;
    padding: 8px 0;
}

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

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #c6d4df;
    font-size: 12px;
    transition: all 0.15s;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Categories Dropdown - Grid Layout */
.categories-menu {
    min-width: 400px;
    max-width: 500px;
    padding: 12px 16px;
}

.categories-header {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.categories-grid a {
    padding: 6px 10px;
    font-size: 11px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.categories-grid a:hover {
    background: rgba(103, 193, 245, 0.2);
    color: #66c0f4;
}

.search-box {
    display: flex;
    align-items: center;
    background: #316282;
    border-radius: 3px;
    padding: 2px;
    border: 1px solid rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: #66c0f4;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #8f98a0;
    font-style: italic;
}

.search-btn {
    background: #66c0f4;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #8ed629;
}
/* 内容容器：去掉背景、去掉渐变，只做正常流容器 */
.header-bg-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: visible; /* 改为 visible，防止裁切内容 */
}
/* 【新增】独立页面背景层：只渐变背景，绝不影响内容 */
.page-bg-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 920px;       /* 背景高度，控制留白大小 */
    background-size: cover;
    background-position: center top;
    z-index: 0;
    pointer-events: none;

    /* 【增强】背景图渐变淡出效果，让图片更淡 */
    /* 原理：让图片主体部分（前60%）就开始透明化 */
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%,     /* 顶部完全不透明 */
        rgba(0, 0, 0, 0.6) 40%,  /* 中间开始透明 */
        rgba(0, 0, 0, 0.2) 70%,  /* 下部更透明 */
        transparent 100%);        /* 底部完全透明 */
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%,     /* 顶部完全不透明 */
        rgba(0, 0, 0, 0.6) 40%,  /* 中间开始透明 */
        rgba(0, 0, 0, 0.2) 70%,  /* 下部更透明 */
        transparent 100%);        /* 底部完全透明 */

    /* 新增：黑白滤镜 */
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}
.page-bg-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 【增强】加深径向渐变遮罩，进一步压暗背景 */
    background: radial-gradient(ellipse at center, 
        rgba(27, 40, 56, 0.5) 0%,  /* 中心区域 */
        rgba(27, 40, 56, 0.7) 50%, /* 中间区域 */
        rgba(27, 40, 56, 0.9) 100% /* 边缘区域，颜色更深 */
    );
}
.header-bg-container .breadcrumb {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
}

.header-bg-container .game-header {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    margin-bottom: 16px;
}

.header-bg-container .game-showcase {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 32px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8f98a0;
    margin-top: 10px;
}

.breadcrumb a {
    color: #8f98a0;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    color: #4a4a4a;
}

.breadcrumb .current {
    color: #fff;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
    flex: 1;
    width: 100%;
}

/* Game Header */
.game-header {
    margin-bottom: 16px;
}

.game-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.review-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.review-summary {
    color: #8f98a0;
}

.review-status {
    font-weight: 500;
}

.review-status.positive {
    color: #66c0f4;
}

.review-count {
    color: #8f98a0;
}

/* Game Showcase */
.game-showcase {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    margin-bottom: 24px;
}

.showcase-left {
    min-width: 0;
    overflow: hidden;
}

/* Screenshot Container - Steam Style (Top main + Bottom strip) */
.screenshot-container {
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

/* Top - Main screenshot */
.main-screenshot {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.main-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.25s ease;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.fullscreen-btn {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.main-screenshot:hover .fullscreen-btn {
    opacity: 1;
}

/* Bottom - Horizontal thumbnail strip */
.screenshot-strip {
    display: flex;
    align-items: center;
    background: #1b2838;
    padding: 6px 0;
    gap: 0;
    position: relative;
}

.strip-prev,
.strip-next {
    flex-shrink: 0;
    width: 32px;
    height: 100%;
    min-height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.strip-prev:hover,
.strip-next:hover {
    background: rgba(0,0,0,0.8);
}

.strip-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.strip-scroll::-webkit-scrollbar {
    display: none;
}

.strip-track {
    display: flex;
    gap: 4px;
    padding: 0 4px;
}

.thumb {
    flex-shrink: 0;
    width: 116px;
    height: 65px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    opacity: 0.5;
    transition: all 0.2s;
    position: relative;
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    opacity: 1;
    border-color: #66c0f4;
}

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

/* Hide old sidebar styles */
.screenshot-sidebar {
    display: none;
}
.sidebar-scroll {
    display: none;
}
.screenshot-thumbnails {
    display: none;
}
.thumb-nav {
    display: none;
}
.thumb-prev,
.thumb-next {
    display: none;
}

/* Showcase Right Panel */
.showcase-right {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 16px;
    min-width: 0;
    overflow: hidden;
}

.game-cover {
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    display: block;
}

.game-description {
    font-size: 13px;
    line-height: 1.6;
    color: #c6d4df;
    margin-bottom: 16px;
    max-height: 120px;
    overflow: hidden;
}

.game-info {
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-label {
    color: #8f98a0;
}

.info-value {
    color: #66c0f4;
}

.info-value.positive {
    color: #66c0f4;
}

.info-count {
    color: #8f98a0;
}

.info-link {
    color: #66c0f4;
    font-size: 12px;
}

/* Game Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.tag {
    background: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(103, 193, 245, 0.4);
    color: #fff;
}

.tag-more {
    background: transparent;
    border: 1px solid rgba(103, 193, 245, 0.4);
    color: #67c1f5;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
}

/* Game Features */
.game-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8f98a0;
}

.feature-icon {
    font-size: 14px;
}

/* Age Rating */
.age-rating {
    margin-bottom: 16px;
}

.rating-icon {
    height: 48px;
}

/* Achievements */
.achievements {
    margin-bottom: 16px;
}

.achievements h3 {
    font-size: 12px;
    color: #8f98a0;
    margin-bottom: 8px;
}

.achievement-list {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.achievement-item {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
}

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

.view-all-link {
    font-size: 11px;
    color: #8f98a0;
    text-decoration: underline;
}

/* Game Categories */
.game-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    margin-bottom: 12px;
}

.category-label {
    color: #8f98a0;
}

.category-link {
    color: #67c1f5;
    background: rgba(103, 193, 245, 0.2);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 12px;
}

.action-link {
    font-size: 11px;
    color: #8f98a0;
    text-decoration: underline;
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.purchase-box,
.bundle-box {
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.purchase-title,
.bundle-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.info-icon {
    color: #8f98a0;
    cursor: help;
}

.purchase-content,
.bundle-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.discount-badge {
    background: #4c6b22;
    color: #beee11;
    padding: 6px 10px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 2px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.original-price {
    color: #8f98a0;
    text-decoration: line-through;
    font-size: 12px;
}

.current-price {
    color: #beee11;
    font-size: 16px;
    font-weight: 500;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #47bfff 0%, #1a44c2 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    margin-left: auto;
    transition: filter 0.2s;
}

.add-to-cart-btn:hover {
    filter: brightness(1.2);
}

/* Bundle Box */
.bundle-games {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bundle-game {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 4px;
}

.bundle-game img {
    width: 120px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
}

.bundle-game-title {
    font-size: 12px;
    color: #c6d4df;
}

.bundle-info-link {
    font-size: 11px;
    color: #8f98a0;
    text-decoration: underline;
    align-self: center;
}

/* Events Section */
.events-section {
    margin-bottom: 32px;
}

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

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all {
    font-size: 11px;
    color: #8f98a0;
    text-decoration: underline;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
}

.event-item {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 16px;
    border-left: 4px solid #66c0f4;
}

.event-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 8px;
}

.event-tag.release {
    background: #4c6b22;
    color: #beee11;
}

.event-tag.coming {
    background: #2a475e;
    color: #66c0f4;
}

.event-content {
    font-size: 12px;
    color: #8f98a0;
    line-height: 1.6;
    margin-bottom: 12px;
    max-height: 80px;
    overflow: hidden;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.event-date {
    font-size: 11px;
    color: #8f98a0;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 32px;
}

.reviews-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.review-sources {
    display: flex;
    gap: 16px;
}

.review-source {
    font-size: 12px;
    color: #8f98a0;
    text-decoration: underline;
}

/* Follow Section */
.follow-section {
    margin-bottom: 32px;
}

.follow-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* About Section */
.about-section {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.about-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.showcase-item {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.showcase-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.showcase-media {
    aspect-ratio: 16/9;
    background: #1b2838;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.showcase-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Steam BBCode content styles */
.bb_paragraph {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.bb_img_ctn {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.bb_img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 Auto;
}

/* Auto Collapse / Expand */
.about-inner {
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.about-content.expanded .about-inner {
    max-height: none;
}

.game_page_autocollapse_fade {
    position: relative;
    height: 80px;
    margin-top: -80px;
    background: linear-gradient(to bottom, transparent, var(--steam-bg) 60%);
    pointer-events: none;
}

.about-content.expanded .game_page_autocollapse_fade {
    display: none;
}

.game_page_autocollapse_readmore {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    pointer-events: auto;
    cursor: pointer;
    font-size: 14px;
    color: #66c0f4;
    transition: color 0.2s ease;
}

.game_page_autocollapse_readmore:hover {
    color: #fff;
}

.game_page_autocollapse_readmore::before {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #66c0f4;
    transition: border-top-color 0.2s ease;
}

.game_page_autocollapse_readmore:hover::before {
    border-top-color: #fff;
}

.about-content.expanded .game_page_autocollapse_readmore::before {
    transform: translateX(-50%) rotate(180deg);
}

.pause-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

/* Requirements Section */
.requirements-section {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.requirements-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.requirement-col {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 100%);
    border: 1px solid rgba(103, 193, 245, 0.15);
    border-radius: 6px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.requirement-col:hover {
    border-color: rgba(103, 193, 245, 0.35);
    box-shadow: 0 0 20px rgba(103, 193, 245, 0.05);
}

.requirement-col.recommended {
    border-color: rgba(161, 205, 68, 0.15);
}

.requirement-col.recommended:hover {
    border-color: rgba(161, 205, 68, 0.35);
    box-shadow: 0 0 20px rgba(161, 205, 68, 0.05);
}

/* 标题样式 */
.requirement-col > strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #66c0f4;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.requirement-col.recommended > strong {
    color: #a1cd44;
}

/* 列表样式 */
.bb_ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb_ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
    color: #c6d4df;
    transition: background 0.2s;
}

.bb_ul li:last-child {
    border-bottom: none;
}

.bb_ul li:hover {
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
    padding-left: 6px;
    padding-right: 6px;
}

.bb_ul li strong {
    color: #8f98a0;
    font-weight: 500;
}

/* Similar Games Section */
.similar-games-section {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.similar-games-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.games-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-prev,
.carousel-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 80px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.2);
}

.games-list {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.game-card {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    min-width: 184px;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card img {
    width: 100%;
    height: 69px;
    object-fit: cover;
}

.game-card-info {
    padding: 8px;
}

.game-card-info h4 {
    font-size: 12px;
    color: #c6d4df;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-price {
    font-size: 11px;
    color: #beee11;
}

.game-card-price.free {
    color: #66c0f4;
}

/* Customer Reviews Section */
.customer-reviews-section {
    margin-bottom: 32px;
}

.customer-reviews-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.customer-reviews-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-filters-links {
    display: flex;
    gap: 12px;
}

.filter-link {
    font-size: 11px;
    color: #8f98a0;
    text-decoration: underline;
}

.review-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #c6d4df;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.2);
}

.chart-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #c6d4df;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
}

.review-stats {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.stat-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.stat-item.positive {
    flex: 0.95;
    background: #66c0f4;
}

.stat-item.negative {
    flex: 0.05;
    background: #c35c2c;
}

.stat-summary {
    font-size: 14px;
}

.stat-highlight {
    color: #66c0f4;
    font-weight: 500;
}

.stat-total {
    color: #8f98a0;
}

.additional-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8f98a0;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: rgba(255,255,255,0.1);
    color: #c6d4df;
}

/* Footer */
.footer {
    background: var(--steam-dark);
    padding: 24px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.footer-brand {
    font-size: 14px;
    color: #8f98a0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.footer-copyright {
    font-size: 12px;
    color: #4c5766;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #47bfff 0%, #1a44c2 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 191, 255, 0.3);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Fullscreen Gallery Modal */
.fullscreen-content {
    position: relative;
    width: 90vw;
    max-width: 1200px;
}

.fullscreen-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.fullscreen-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.fullscreen-prev,
.fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.fullscreen-prev {
    left: -70px;
}

.fullscreen-next {
    right: -70px;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
    background: rgba(103, 193, 245, 0.3);
    width: 60px;
}

.fullscreen-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #8f98a0;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Fullscreen mobile responsive */
@media (max-width: 768px) {
    .fullscreen-content {
        width: 95vw;
    }

    .fullscreen-close {
        top: -60px;
        right: 50%;
        transform: translateX(50%);
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .fullscreen-prev,
    .fullscreen-next {
        width: 40px;
        height: 60px;
        font-size: 22px;
        top: auto;
        bottom: 50%;
        transform: translateY(50%);
    }

    .fullscreen-prev {
        left: 10px;
    }

    .fullscreen-next {
        right: 10px;
    }

    .fullscreen-counter {
        bottom: -50px;
        font-size: 12px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-showcase,
    .header-bg-container .game-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-right {
        order: -1;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    /* Screenshot strip responsive */
    .thumb {
        width: 96px;
        height: 54px;
    }

    /* Game cover responsive */
    .game-cover img {
        max-width: 100%;
        height: auto;
    }

    /* Bundle games responsive */
    .bundle-games {
        flex-wrap: wrap;
    }
    .bundle-game {
        flex: 1 1 45%;
        min-width: 0;
    }
    .bundle-game img {
        max-width: 100%;
        height: auto;
    }

    /* Purchase content responsive */
    .purchase-content,
    .bundle-price {
        flex-wrap: wrap;
    }

    /* Similar games responsive */
    .games-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    /* 移动端头部：左侧汉堡 + 中间logo */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .header-content {
        justify-content: center;
        align-items: center;
        padding: 10px 12px;
        position: relative;
        min-height: 52px;
    }

    .logo-nav {
        gap: 0;
    }

    /* 隐藏桌面端导航和操作按钮 */
    .global-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    /* Logo居中 - 用margin而非absolute避免脱离文档流 */
    .steam-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .steam-logo svg {
        width: 140px;
        height: 42px;
    }

    /* 显示移动端导航面板 */
    .mobile-nav-panel {
        display: block;
    }

    .store-nav-content {
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        width: 100%;
    }

    /* Dropdown responsive */
    .categories-menu {
        min-width: 280px;
        max-width: 90vw;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-title {
        font-size: 20px;
    }

    .game-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* Screenshot strip mobile */
    .screenshot-strip {
        padding: 4px 0;
    }
    .strip-prev,
    .strip-next {
        width: 28px;
        min-height: 40px;
        font-size: 18px;
    }
    .thumb {
        width: 80px;
        height: 45px;
    }

    .purchase-content,
    .bundle-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-to-cart-btn {
        margin-left: 0;
        width: 100%;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    /* 相似游戏移动端：水平滚动，隐藏左右按钮 */
    .games-carousel {
        flex-direction: row;
        position: relative;
    }

    .carousel-prev,
    .carousel-next {
        display: none;
    }

    .games-list {
        display: flex;
        gap: 12px;
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .games-list::-webkit-scrollbar {
        display: none;
    }

    .game-card {
        min-width: 140px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .game-card img {
        height: 52px;
    }

    .game-card-info {
        padding: 6px;
    }

    .game-card-info h4 {
        font-size: 11px;
    }

    .game-card-price {
        font-size: 10px;
    }

    /* Showcase media */
    .showcase-media {
        width: 100%;
        overflow: hidden;
    }

    /* Review filters responsive */
    .review-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-group {
        flex-wrap: wrap;
    }
    .additional-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 6px 10px;
    }
    .steam-logo svg {
        width: 120px;
        height: 36px;
    }
    .global-nav {
        gap: 8px;
    }
    .nav-link {
        font-size: 12px;
    }
    .install-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    .store-nav-content {
        padding: 0 10px;
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .search-input {
        width: 78%;
        font-size: 12px;
    }
    .main-content {
        padding: 0 10px 30px;
    }
    .game-title {
        font-size: 18px;
    }
    .game-showcase {
        gap: 12px;
    }
    .game-info .info-row {
        font-size: 11px;
    }
    .game-tags .tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    .game-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .feature-item {
        font-size: 10px;
    }
    .purchase-title,
    .bundle-title {
        font-size: 15px;
    }
    .purchase-box,
    .bundle-box {
        padding: 12px;
    }
    .section-header h2 {
        font-size: 14px;
    }
    .event-item {
        padding: 12px;
    }
    .event-content {
        font-size: 11px;
        max-height: 60px;
    }
    .event-title {
        font-size: 12px;
    }
    .event-date {
        font-size: 10px;
    }
    .showcase-item {
        padding: 12px;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .showcase-item h3 {
        font-size: 14px;
        line-height: 1.4;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .showcase-media {
        aspect-ratio: 16/9;
        width: 100%;
    }
    .requirement-col li {
        font-size: 11px;
    }
    .game-card {
        min-width: 150px;
    }
    /* Screenshot strip very small */
    .thumb {
        width: 68px;
        height: 38px;
    }
    .strip-prev,
    .strip-next {
        width: 24px;
        min-height: 34px;
        font-size: 16px;
    }

    /* Game cover small */
    .game-cover {
        width: 100%;
    }
    .game-cover img {
        width: 100%;
        height: auto;
    }

    /* Bundle game small */
    .bundle-game img {
        width: 100%;
        height: auto;
    }

    /* 相似游戏更小屏幕 */
    .game-card {
        min-width: 120px;
    }

    .game-card img {
        height: 45px;
    }

    .game-card-info h4 {
        font-size: 10px;
    }

    .game-card-price {
        font-size: 9px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item,
.showcase-item,
.game-card {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1b2838;
}

::-webkit-scrollbar-thumb {
    background: #2a475e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d6a8a;
}
