/*
Theme Name: Steam Client Clone
Theme URI: https://example.com/steam-clone
Author: Cascade
Author URI: https://example.com
Description: A WordPress theme that mimics the UI of the Steam Client (Library/Store view).
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steam-clone
*/

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

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 12px;
    background-color: #1b2838;
}

::-webkit-scrollbar-thumb {
    background-color: #3d4450;
    border-radius: 6px;
    border: 3px solid #1b2838;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6a7483;
}

body {
    background-color: #0e1012; /* Dark background behind everything */
    color: #c6d4df;
    font-family: "Motiva Sans", "Segoe UI", "San Francisco", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden; /* Hide body scroll, we will scroll inside */
    height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    cursor: default;
}

a {
    color: #c6d4df;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    cursor: pointer;
}

a:hover {
    color: #ffffff;
}

/* Header / Top Bar */
.steam-header {
    background-color: #171a21;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-shrink: 0; /* Header does not shrink */
    z-index: 10000;
    position: relative;
}

/* ... existing Header styles ... */

/* App Body Wrapper */
.client-body-wrapper {
    flex: 1; /* Takes remaining height */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.client-scroll-area {
    flex: 1;
    overflow-y: auto; /* Scroll ONLY here */
    overflow-x: hidden;
    padding-bottom: 48px; /* Space for the fixed download bar overlay if needed, or we can just let it sit on top */
}

/* Layout Container */
.container {
    width: 100%;
    flex-shrink: 0; /* Header does not shrink */
    z-index: 1000;
    padding: 0;
    display: flex;
    min-height: 100%;
}

.window-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #171a21;
    font-size: 12px;
    color: #8a939c;
    -webkit-app-region: drag; /* Mimic draggable area */
}

.main-nav-bar {
    background: #171a21;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: none;
    box-shadow: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.main-nav-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.main-nav-bar .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item {
    font-size: 17px;
    font-weight: 500;
    color: #b8b6b4;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

.nav-item.active {
    color: #67c1f5;
    border-bottom: 3px solid #1a9fff;
}

.nav-item:hover {
    color: #ffffff;
}

.header-right-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #212c3d;
    padding: 6px 12px;
    border-radius: 2px;
    transition: background 0.2s;
}

.wallet-label {
    color: #8f98a0;
    font-weight: 400;
}

.wallet-amount {
    color: #b8e986;
    font-weight: 500;
}

.wallet-balance:hover {
    background: #3d4450;
}

.wallet-balance:hover .wallet-amount {
    color: #c8f996;
}

.notification-container {
    position: relative;
    z-index: 10001;
}

.notification-icon {
    width: 30px;
    height: 30px;
    background: #212c3d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-icon:hover {
    background: #3d4450;
}

.notification-icon svg {
    fill: #c7d5e0;
}

.notification-icon:hover svg {
    fill: #fff;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e44;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Notification Dropdown */
.notification-dropdown {
    position: fixed;
    top: auto;
    right: auto;
    margin-top: 8px;
    width: 360px;
    background: #1f2328;
    border: 1px solid #3f4450;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 99999;
    border-radius: 2px;
    max-height: 500px;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 12px 16px;
    background: #252932;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f4450;
}

.notification-header span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.mark-all-read {
    color: #67c1f5;
    font-size: 12px;
    text-decoration: none;
}

.mark-all-read:hover {
    color: #8dd1ff;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #2a2e38;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: #252932;
}

.notification-item.unread {
    background: #1a2633;
}

.notification-item.unread:hover {
    background: #1f2d3d;
}

.notification-icon-small {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-text {
    color: #8f98a0;
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    color: #6a737d;
    font-size: 11px;
}

.notification-footer {
    padding: 10px 16px;
    background: #252932;
    border-top: 1px solid #3f4450;
    text-align: center;
}

.notification-footer a {
    color: #67c1f5;
    font-size: 12px;
    text-decoration: none;
}

.notification-footer a:hover {
    color: #8dd1ff;
}

/* Header Auth Buttons (未登录状态) */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-link-btn {
    height: 30px;
    background: #212c3d;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #c7d5e0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: "Motiva Sans", sans-serif;
}

.auth-link-btn:hover {
    background: #3d4450;
    color: #ffffff;
}

.auth-link-btn.auth-register {
    background: linear-gradient(to bottom, #799905 5%, #536904 95%);
    color: #D2E885;
}

.auth-link-btn.auth-register:hover {
    background: linear-gradient(to bottom, #8db20a 5%, #5e7704 95%);
    color: #ffffff;
}

.user-avatar-container {
    position: relative;
    z-index: 10001;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(to bottom, #6a6a6a, #424242); /* Default generic border */
    padding: 2px;
    border-radius: 2px;
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.user-avatar:hover {
    background: linear-gradient(to bottom, #4f9ec4, #2a6a8c); /* Blue border on hover */
}

/* User Dropdown Menu */
.user-dropdown {
    position: fixed;
    top: auto;
    right: auto;
    margin-top: 8px;
    width: 280px;
    background: #1f2328;
    border: 1px solid #3f4450;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 99999;
    border-radius: 2px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #252932;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    border: 2px solid #4f9ec4;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.user-balance {
    color: #8f98a0;
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: #3f4450;
    margin: 4px 0;
}

.dropdown-menu-items {
    padding: 8px 0;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #c6d4df;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #2a2e38;
    color: #ffffff;
}

.sub-nav-bar {
    background: #1b2838;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 100;
    border-bottom: 1px solid #101215;
    margin-bottom: 20px;
}

.sub-nav-item {
    color: #8f98a0;
    font-size: 15px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.sub-nav-item:hover, .sub-nav-item.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box {
    margin-left: auto;
}

.search-box:hover {
    background-color: transparent;
}

.search-input {
    background: #316282;
    border: none;
    padding: 5px;
    color: #fff;
    border-radius: 2px;
    outline: none;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-input:hover {
    background: #316282;
}

/* Layout Container */
.container {
    width: 100%;
    padding: 0;
    display: flex;
}

/* Store Feature Section (Carousel Simulation) */
.featured-container {
    display: flex;
    margin-bottom: 30px;
    background: #0f1922;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    min-height: 350px;
    overflow: hidden;
    position: relative;
}

.featured-main-img {
    width: 65%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    background-color: #1b2838;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    z-index: 1;
}

.featured-placeholder-content {
    text-align: center;
    opacity: 0.8;
}

.featured-placeholder-title {
    font-size: 48px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.featured-info {
    width: 35%;
    background: linear-gradient(to bottom, #0e141b 0%, #15202b 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-y: auto;
}

.featured-title {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.screenshot-item {
    height: 70px;
    background: #2a3f55;
    background-size: cover;
    background-position: center;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    cursor: pointer;
}

.screenshot-item:hover {
    border-color: #fff;
}

.availability-text {
    color: #fff;
    margin-bottom: 5px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 2px;
}

.featured-price-area {
    margin-top: auto;
}

.discount-badge {
    background: #4c6b22;
    color: #beee11;
    padding: 0 5px;
    font-size: 24px;
    display: inline-block;
}

.discount-badge-small {
    font-size: 12px;
}

.price {
    color: #c6d4df;
    font-size: 14px;
    margin-right: 5px;
}

.final-price {
    color: #c6d4df;
    font-size: 16px;
}

/* Grid for Games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.game-card-link {
    text-decoration: none;
    display: block;
}

.game-card {
    background: linear-gradient(135deg, rgba(62,64,74,0.3) 0%, rgba(32,34,44,0.3) 100%);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.game-cover {
    width: 100%;
    height: 273px;
    background-color: #2a475e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-cover.loading::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #67c1f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.game-cover.error::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238f98a0" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.game-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66c0f4;
}

.game-cover-demo {
    background: linear-gradient(45deg, #3d4c53, #2a475e);
}

.game-info {
    padding: 10px;
}

.game-title {
    font-size: 14px;
    color: #c7d5e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.game-price {
    color: #b0c0d1;
    font-size: 12px;
    text-align: right;
}

/* Sidebar Simulation */
.main-content-area {
    display: flex;
    gap: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Sidebar Resizer */
.sidebar-resizer {
    width: 5px;
    background: #24282f;
    cursor: col-resize;
    flex-shrink: 0;
    z-index: 100;
    transition: all 0.2s;
    /* border-left: 1px solid #000; */
    /* border-right: 1px solid #000; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5);
}

/* 拖动手柄视觉指示器 */
.sidebar-resizer::after {
    content: "";
    width: 2px;
    height: 16px;
    background: #4f5860;
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    transition: all 0.2s;
}

.sidebar-resizer:hover,
.sidebar-resizer.active {
    background: #3d4450;
    border-color: #c7d5e0;
}

.sidebar-resizer:hover::after,
.sidebar-resizer.active::after {
    background: #c7d5e0;
    height: 24px;
    width: 2px;
    box-shadow: 0 0 2px #c7d5e0;
}

/* 侧边栏收起时内容区域扩展 */
.main-content-area.sidebar-collapsed .content-right {
    flex: 1;
}

.sidebar-left {
    width: 280px; /* Standard Steam sidebar width */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #24282F 0%, #2e353d 60%); /* Main sidebar background */
    color: #dcdedf;
    height: 100%;
    overflow: hidden;
    font-size: 13px;
    user-select: none;
    position: relative;
    z-index: 10;
}

/* 1. Top Bar: Home & Collections */
.sidebar-top-bar {
    padding: 12px 16px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-home-btn {
    padding: 6px 10px;
    background: #2f343d;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-right: 8px;
}

.sidebar-home-btn:hover {
    background: #3d4450;
    color: #fff;
}

.home-text {
    font-size: 13px;
    font-weight: 500;
}

.sidebar-collections-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    background: #2f343d;
    transition: background 0.2s;
}

.sidebar-collections-btn:hover {
    background: #3d4450;
}

.sidebar-collections-btn svg {
    opacity: 0.7;
    transition: opacity 0.2s;
    fill: #6d7680;
}

.sidebar-collections-btn:hover svg {
    opacity: 1;
    fill: #fff;
}

/* 2. Controls Row */
.sidebar-controls-row {
    padding: 0 16px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #8c96a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.sidebar-dropdown-btn:hover {
    color: #fff;
}

.sidebar-dropdown-btn svg {
    opacity: 0.6;
    fill: currentColor;
}

.sidebar-dropdown-btn:hover svg {
    opacity: 1;
}

.sidebar-icon-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sidebar-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    color: #8c96a0;
    transition: background 0.2s, color 0.2s;
}

.sidebar-action-btn:hover {
    background-color: #3d4450;
    color: #fff;
}

/* Sort Icon */
.icon-sort {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Play Icon */
.icon-play {
    fill: currentColor;
    stroke: none;
}
.icon-play circle {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.icon-play polygon {
    fill: currentColor;
}

/* 3. Search Row */
.sidebar-search-row {
    padding: 0 16px 8px 16px;
    flex-shrink: 0;
}

.sidebar-search-inner {
    background: #2f343d;
    border: 1px solid #2f343d;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
    transition: border-color 0.2s, background 0.2s;
}

.sidebar-search-inner:focus-within {
    background: #2f343d;
    border-color: #2f343d;
}

.sidebar-search-inner .sidebar-search-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #dcdedf;
    font-family: inherit;
    font-size: 13px;
    padding: 2px 6px;
    width: 100%;
    outline: none !important;
    height: auto;
    line-height: normal;
}

.search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    fill: none;
    stroke: #687383;
    stroke-width: 3;
}

.filter-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
    fill: #687383;
}

.filter-icon:hover {
    opacity: 0.8;
}

/* 4. Games List Area */
.sidebar-games-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Section Headers (Favorites, Uncategorized) */
.sidebar-section-header {
    display: flex;
    align-items: center;
    padding: 4px 16px 4px 6px; /* Steam style padding */
    cursor: pointer;
    color: #8c96a0; /* Default text color */
    font-size: 12px;
    font-weight: 500;
    user-select: none;
    transition: color 0.1s, background-color 0.1s;
    background-color: transparent; /* Default transparent */
    margin-top: 4px;
}

.sidebar-section-header:hover {
    color: #fff;
    background: #282c33; /* Hover background */
}

.header-icon-dash {
    width: 9px;
    height: 1px;
    background-color: #636b74;
    margin-right: 8px;
    margin-left: 2px;
    display: inline-block;
    transition: background-color 0.1s;
    position: relative;
}

.header-icon-dash::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 4px;
    width: 1px;
    height: 9px;
    background-color: inherit;
    transition: transform 0.2s;
    transform: scaleY(0); /* Hidden by default (Minus state) */
}

.sidebar-section-header.collapsed .header-icon-dash::after {
    transform: scaleY(1); /* Show vertical line to make a Plus */
}

.sidebar-section-header:hover .header-icon-dash {
    background-color: #fff;
}

.sidebar-section-header .section-title {
    margin-right: 6px;
    letter-spacing: 0.5px;
    font-size: 14px;
    font-weight: normal;
    color: #fff;
    text-transform: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.section-count {
    color: #4f5359; /* Dimmer count color */
    font-size: 12px;
    transition: color 0.1s;
}

.sidebar-section-header:hover .section-count {
    color: #6a737d; /* Slightly brighter on hover */
}

/* Sidebar Items */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    cursor: pointer;
    font-size: 15px;
    color: #8c96a0; /* Inactive color */
    text-decoration: none;
    border-left: 2px solid transparent; /* Selection indicator */
    transition: background 0.1s, color 0.1s;
    height: 28px;
}

.sidebar-item:hover {
    background-color: #24272d;
    color: #dcdedf;
}

.sidebar-item.active {
    background-color: #3d4450;
    color: #fff;
}

.game-icon-placeholder {
    width: 16px;
    height: 16px;
    background: #3c4149;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 2px;
}

.game-icon-img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 2px;
}

.default-icon {
    background: #5c6c7c;
}

.game-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex-grow: 1;
}

.game-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    font-weight: 500;
    font-size: 14px;
}

.game-status {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-updating {
    color: #4c91c3; /* Steam blue for updates */
}

/* Scrollbar refinement */
.sidebar-games-list::-webkit-scrollbar {
    width: 10px;
}

.sidebar-games-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-games-list::-webkit-scrollbar-thumb {
    background: #2a2e35;
    border-radius: 5px;
    border: 3px solid #24282F; /* Padding trick */
}

.sidebar-games-list::-webkit-scrollbar-thumb:hover {
    background: #4e555e;
}

/* Ensure links act like blocks */
a.sidebar-item {
    display: flex;
    text-decoration: none;
}

/* Demo Icon Colors - To avoid inline styles */
.icon-red { background-color: #e44; }
.icon-dark-red { background-color: #a44; }
.icon-blue { background-color: #44e; }
.icon-dark-blue { background-color: #00f; }
.icon-green { background-color: #4e4; }
.icon-bright-green { background-color: #0f0; }
.icon-yellow { background-color: #ee4; }
.icon-bright-yellow { background-color: #ff0; }
.icon-purple { background-color: #e4e; }
.icon-magenta { background-color: #f0f; }
.icon-cyan { background-color: #4ee; }
.icon-bright-cyan { background-color: #0ff; }
.icon-grey { background-color: #999; }
.icon-dark-grey { background-color: #555; }
.icon-black { background-color: #222; }
.icon-slate { background-color: #777; }
.icon-orange { background-color: #f80; }
.icon-bright-red { background-color: #f00; }

.content-right {
    flex-grow: 1;
    padding: 20px;
    padding-bottom: 68px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, rgb(92 48 48 / 0%) 1px), radial-gradient(circle at 50% 5%, rgba(94, 174, 255, 0.35) 0%, rgba(94, 174, 255, 0.08) 30%, rgba(94, 174, 255, 0) 70%), linear-gradient(145deg, rgb(39 46 50) 10%, rgb(32 42 56) 60%);
    background-color: rgb(14 15 16);
    overflow-y: auto;
    height: 100%;
}

/* Section Headers */
.content-right .section-title {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #365b75;
    padding-bottom: 5px;
}

/* Footer / Status Bar */
.foot {
    background: #212429;
    background: linear-gradient(to bottom, #2d3036 0%, #1e2126 100%);
    padding: 0 15px;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #3d4450;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.foot-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8a939c;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.foot-left > a:hover,
.foot-left > span.download-text:hover {
    color: #fff;
}

.foot-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #8a939c;
    font-size: 11px;
    font-weight: bold;
}

.download-text {
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
}

.download-text:hover {
    color: #ffffff;
}

.download-text-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Steam Buttons */
.btn-steam-green {
    background: linear-gradient(to bottom, #a4d007 5%, #536904 95%);
    background-color: #799905;
    border-radius: 2px;
    border: none;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding: 2px 15px;
    text-decoration: none;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 1px 4px rgba(0,0,0,0.3);
    transition: all 0.1s;
}

.btn-steam-green:hover {
    background: linear-gradient(to bottom, #b6e608 5%, #6b8705 95%);
    background-color: #b6e608;
    color: #fff;
}

.btn-steam-green:active {
    position: relative;
    top: 1px;
}

.btn-small {
    font-size: 11px;
    padding: 2px 8px;
    line-height: 1.5;
}

.btn-icon-action {
    background: rgba(103, 193, 245, 0.2);
    color: #67c1f5;
    padding: 4px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: #67c1f5;
    color: #fff;
}

/* Friends Panel Styles */
.friends-panel {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(0);
}

.friends-panel.collapsed {
    transform: translateY(100%);
}

.friends-list::-webkit-scrollbar {
    width: 6px;
}

.friends-list::-webkit-scrollbar-thumb {
    background: #3d4450;
    border-radius: 3px;
}

/* Sidebar Search */
.sidebar-search-container {
    padding: 0 10px 15px 10px;
}

.sidebar-search-input {
    width: 100%;
    background: #121820;
    border: 1px solid #283443;
    padding: 6px;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    font-family: inherit;
}

/* Sidebar Specifics */
.sidebar-library-title {
    font-size: 11px;
    color: #4f5a66;
    border: none;
    padding: 0 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: normal;
    font-weight: bold;
}

.sidebar-item-favorite {
    color: #fff !important;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8c96a0;
    padding: 4px 10px;
    font-size: 13px;
    transition: all 0.2s;
    border-radius: 3px;
}

.sidebar-link:hover {
    background-color: #242f3f;
    color: #ffffff;
}

.featured-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Header Chrome Styles */
.menu-text-container {
    display: flex;
    gap: 15px;
    cursor: default;
}

.menu-text-container a:hover span {
    color: #fff !important;
}

.menu-text-brand,
a.menu-text-brand,
a.menu-text-brand:hover,
a.menu-text-brand:visited {
    color: #c5c3c0 !important;
    font-weight: bold;
    text-decoration: none;
}

.nav-arrows-container {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.nav-arrow-icon {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav-arrow-icon:hover {
    opacity: 1;
}

/* Friends Panel Styles */
.friends-panel-container {
    position: fixed;
    bottom: 48px;
    left: 0;
    width: 280px;
    background: #1f2126;
    border-right: 1px solid #3d4450;
    border-top: 1px solid #3d4450;
    display: flex;
    flex-direction: column;
    z-index: 999999;
    height: 300px;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.5);
}

.friends-header-container {
    padding: 10px;
    background: #2e3136;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.friends-header-title {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.friends-header-icons {
    display: flex;
    gap: 8px;
}

.friends-icon-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
}

.friends-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.friends-icon-btn svg {
    opacity: 0.7;
}

.friends-icon-btn:hover svg {
    opacity: 1;
}

/* Friends Panel States */
.friends-panel-container.minimized {
    height: 40px;
}

.friends-panel-container.minimized .friends-list-container {
    display: none;
}

.friends-panel-container.hidden {
    display: none;
}

.friends-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.friend-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background-color: #2e3136;
}

.friend-item-offline {
    opacity: 0.5;
}

.friend-avatar-container {
    width: 34px;
    height: 34px;
    padding: 2px;
    position: relative;
}

.friend-avatar-img {
    width: 100%;
    height: 100%;
}

.friend-avatar-online { background: #57cbde; }
.friend-avatar-ingame { background: #89c565; }
.friend-avatar-offline { background: #6a6a6a; }
.friend-avatar-placeholder { width: 100%; height: 100%; background: #333; }

.friend-info {
    line-height: 1.2;
}

.friend-name {
    font-size: 13px;
}

.friend-name-online { color: #57cbde; }
.friend-name-ingame { color: #89c565; }
.friend-name-offline { color: #8a939c; }

.friend-status {
    font-size: 11px;
}

.friend-status-online { color: #89c565; } /* Usually status text is green if playing, or blue if just online */
.friend-status-ingame { color: #89c565; }
.friend-status-offline { color: #6d6d6d; }
/* Library View Styles */
.library-hero {
    position: relative;
    height: 300px;
    background: #1b2838; /* Fallback */
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    box-shadow: inset 0 -100px 100px -20px #1b2838; /* Fade into body */
}

.library-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    background: linear-gradient(to top, #1b2838 0%, rgba(27,40,56,0.8) 50%, rgba(27,40,56,0) 100%);
}

.game-logo-large {
    font-size: 42px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.library-action-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.btn-play-large {
    font-size: 18px;
    padding: 10px 40px;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(121, 153, 5, 0.4);
}

.library-stats-bar {
    display: flex;
    gap: 40px;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    display: inline-flex;
}

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

.stat-label {
    color: #8c96a0;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 2px;
}

.stat-value {
    color: #fff;
    font-size: 13px;
}

.library-nav-tabs {
    display: flex;
    gap: 30px;
    padding: 0 40px;
    background: #1e262f;
    border-bottom: 1px solid #000;
}

.lib-tab {
    padding: 15px 0;
    color: #c6d4df;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.lib-tab.active {
    color: #fff;
    border-bottom-color: #1a9fff;
}

.lib-tab:hover {
    color: #fff;
}

.library-content-body {
    padding: 30px 40px;
}

.post-feed-item {
    background: #16191e;
    margin-bottom: 20px;
    border: 1px solid #292c31;
    border-radius: 2px;
}

.post-feed-header {
    background: #1f2329;
    padding: 10px 15px;
    border-bottom: 1px solid #292c31;
    display: flex;
    justify-content: space-between;
}

.post-feed-date {
    color: #6a7683;
    font-size: 11px;
    text-transform: uppercase;
}

.post-feed-body {
    padding: 20px;
    color: #acb2b8;
    font-size: 14px;
}

.post-feed-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.post-feed-title:hover {
    color: #66c0f4;
}

/* ===================================
   Responsive Design - Mobile
   =================================== */

/* Mobile Menu Button - always hidden on desktop, shown on mobile */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #c7d5e0;
    padding: 8px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Drawer - hidden by default */
.mobile-nav-drawer {
    display: none;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #171a21;
    border-bottom: 1px solid #2a475e;
}

.mobile-nav-title {
    color: #c7d5e0;
    font-size: 16px;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #c7d5e0;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-items {
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #c7d5e0;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item.active {
    background: #2a475e;
    color: #ffffff;
}

.mobile-nav-item svg {
    flex-shrink: 0;
}

.mobile-nav-divider {
    height: 1px;
    background: #2a475e;
    margin: 10px 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: none;
}

.sidebar-overlay.show {
    display: block;
    pointer-events: auto;
}

/* Tablet Layout - 768px to 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .featured-container {
        min-height: 300px;
    }
    
    .featured-main-img {
        width: 60%;
        min-height: 300px;
    }
    
    .featured-info {
        width: 40%;
        padding: 20px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .featured-screenshots {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .screenshot-item {
        height: 60px;
    }
    
    .tag {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media screen and (max-width: 768px) {
    /* Fix body overflow for mobile scrolling */
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    
    /* Ensure full width and prevent overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Navigation Drawer - show on mobile with drawer styles */
    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #1b2838;
        z-index: 10002;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .mobile-nav-drawer a {
        position: relative;
        z-index: 1;
    }
    
    .mobile-nav-drawer.show {
        left: 0;
    }
    
    /* Adjust overlay to not block menu links */
    .sidebar-overlay.show {
        left: 280px;
    }
    
    /* Hide game library sidebar on mobile */
    .sidebar-left {
        display: none !important;
    }
    
    /* Hide window controls on mobile */
    .window-controls {
        display: none;
    }
    
    /* Hide main nav but keep tools visible */
    .main-nav-bar {
        display: flex !important;
        position: static;
        width: auto;
        padding: 0;
        margin-left: auto;
        background: transparent;
    }
    
    /* Hide navigation items */
    .main-nav-bar .nav-arrows-container,
    .main-nav-bar .nav-item {
        display: none;
    }
    
    /* Mobile Header - simplified */
    .steam-header {
        height: 56px;
        padding: 0 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    /* Header right tools - visible and compact */
    .header-right-tools {
        display: flex !important;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        width: auto;
        margin: 0;
        position: static;
        transform: none;
    }
    
    /* Hide wallet on mobile */
    .wallet-balance {
        display: none;
    }
    
    .notification-container,
    .user-avatar-container {
        width: auto;
        display: flex;
    }
    
    .notification-icon,
    .user-avatar {
        width: 32px;
        height: 32px;
        display: flex;
    }
    
    .notification-badge {
        display: block;
    }
    
    /* Sidebar as drawer on mobile */
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-left.mobile-show {
        left: 0;
    }
    
    /* Hide sidebar resizer */
    .sidebar-resizer {
        display: none;
    }
    
    /* Main content area - full width */
    .main-content-area {
        flex-direction: column;
        width: 100%;
    }
    
    .content-right {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        padding-bottom: 60px;
        box-sizing: border-box;
    }
    
    /* Ensure containers don't exceed viewport */
    .featured-container,
    .games-grid,
    .section-title {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Sub navigation - scrollable */
    .sub-nav-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
        gap: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sub-nav-bar::-webkit-scrollbar {
        display: none;
    }
    
    .sub-nav-item {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    /* Hide search box on mobile */
    .search-box {
        display: none;
    }
    
    /* Section titles */
    .section-title {
        font-size: 16px;
        padding: 15px 10px 10px;
        margin: 0;
    }
    
    /* Featured section - Mobile optimization */
    .featured-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .featured-main-img {
        width: 100%;
        max-width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .featured-info {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: visible;
    }
    
    .featured-title {
        font-size: 20px;
        margin-bottom: 12px;
        white-space: normal;
    }
    
    .featured-screenshots {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        margin: 12px 0;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .featured-screenshots::-webkit-scrollbar {
        height: 4px;
    }
    
    .featured-screenshots::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .screenshot-item {
        flex-shrink: 0;
        width: 120px;
        height: 70px;
        border: 1px solid transparent;
    }
    
    .availability-text {
        font-size: 13px;
        margin: 10px 0;
    }
    
    .featured-tags {
        margin: 10px 0;
        gap: 6px;
    }
    
    .tag {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .featured-price-area {
        width: 100%;
        max-width: 100%;
        padding: 15px 0 0;
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .featured-price-action {
        flex-direction: column;
        gap: 12px;
    }
    
    .featured-price-action > div {
        width: 100%;
    }
    
    .discount-badge {
        font-size: 18px;
        padding: 5px 10px;
    }
    
    .price,
    .final-price {
        font-size: 16px;
    }
    
    .btn-steam-green {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        text-align: center;
    }
    
    /* Games grid - 2 columns on mobile */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card {
        width: 100%;
    }
    
    .game-cover {
        height: 200px;
    }
    
    /* Friends panel - hide on mobile */
    .friends-panel-container {
        display: none;
    }
    
    /* Footer - compact mobile version */
    .foot {
        height: 48px;
        flex-direction: row;
        padding: 0 10px;
        gap: 15px;
        justify-content: space-between;
        font-size: 11px;
    }
    
    .foot-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .foot-left svg {
        width: 14px;
        height: 14px;
    }
    
    .foot-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .download-text {
        font-size: 11px;
    }
    
    .separator {
        display: none;
    }
    
    /* Dropdown menus - mobile optimized */
    .notification-dropdown,
    .user-dropdown {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        transform: none;
        border-radius: 0;
        max-height: calc(100vh - 56px - 48px);
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        z-index: 9000;
    }
    
    .notification-dropdown {
        max-height: 400px;
    }
    
    .notification-list,
    .user-dropdown-menu {
        max-height: none;
    }
    
    .notification-item,
    .user-dropdown-item {
        padding: 15px 20px;
        min-height: 60px;
    }
    
    .user-dropdown-header {
        padding: 15px 20px;
    }
    
    .user-dropdown-item {
        font-size: 15px;
    }
    
    /* Touch-friendly buttons */
    .btn-steam-green,
    .sidebar-action-btn,
    .friends-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===================================
   Steam商店风格详情页样式
   =================================== */

.steam-detail-page {
    max-width: none;
    margin: 0;
    width: auto;
    color: #c6d4df;
    font-family: "Motiva Sans", Sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 面包屑导航 */
.steam-breadcrumbs {
    font-size: 14px;
    color: #8f98a0;
    margin-bottom: 10px;
}

.steam-breadcrumbs a {
    color: #8f98a0;
    text-decoration: none;
}

.steam-breadcrumbs a:hover {
    color: #ffffff;
}

/* 标题区域 */
.app-title-area h1 {
    font-family: "Motiva Sans", Sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    color: #ffffff;
    margin: 0 0 16px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hero区域 */
.steam-hero-area {
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 26px;
    display: flex;
    gap: 20px;
}

.hero-left-col {
    width: 68%;
    flex-shrink: 0;
    min-width: 500px;
}

.highlight-player {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 5px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* 模糊背景填充层 */
.highlight-player::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 0;
}

.highlight-player-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.highlight-strip {
    display: flex;
    gap: 4px;
    height: 80px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.strip-item {
    flex: 0 0 120px;
    width: 120px;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 1px solid transparent;
}

.strip-item:hover,
.strip-item.active {
    opacity: 1;
    border: 1px solid #fff;
}

.hero-right-col {
    flex: 1;
    min-width: 300px;
    font-size: 15px;
    font-family: "Motiva Sans", Sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.game-header-image {
    width: 100%;
    height: 0;
    padding-bottom: 46%; /* Maintain aspect ratio */
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.game-header-snippet {
    max-height: none;
    overflow: visible;
    margin-bottom: 10px;
    line-height: 20px;
    color: #c6d4df;
    display: block;
    font-size: 15px;
    padding-right: 16px;
}

.user-reviews-row,
.release-date-row,
.dev-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    line-height: 18px;
    background: transparent;
    padding: 0;
}

.subtitle.column {
    color: #556772;
    width: 110px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 13px;
    padding-right: 10px;
    line-height: 20px;
    padding-top: 2px;
}

.summary.column,
.date.column {
    color: #67c1f5;
    font-size: 14px;
    line-height: 20px;
}

.summary.column a {
    color: #67c1f5;
    text-decoration: none;
}

.summary.column a:hover {
    color: #fff;
}

.game_review_summary {
    font-weight: bold;
    cursor: help;
}

.game_review_summary.positive {
    color: #66C0F4;
}

.glance_tags_ctn {
    margin-top: 15px;
}

.glance_tags_label {
    color: #556772;
    margin-bottom: 5px;
    font-size: 13px;
}

.glance_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.app_tag {
    background-color: rgba( 103, 193, 245, 0.2 );
    color: #67c1f5;
    padding: 2px 7px;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 2px;
    white-space: nowrap;
    line-height: 20px;
    text-decoration: none;
    font-size: 13px;
    box-shadow: none;
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0);
}

.app_tag:hover {
    background-color: #67c1f5;
    color: #fff;
    border-color: #67c1f5;
}

/* 页面内容布局 */
.page-content-layout {
    display: flex;
    gap: 20px;
}

.page-left-col {
    width: 68%;
    flex-shrink: 0;
    min-width: 500px;
}

.page-right-col {
    flex: 1;
}

/* 购买/下载区域 */
.game-area-purchase {
    background: linear-gradient(135deg, rgba(97, 100, 101, 0.3) 0%, rgba(226, 244, 255, 0.1) 100%);
    border-radius: 4px;
    padding: 1px;
    margin-bottom: 28px;
    position: relative;
}

/* 标准购买区域（独立样式 - Steam原版风格） */
.game-area-purchase-standard {
    background: linear-gradient(135deg, rgba(97, 100, 101, 0.3) 0%, rgba(226, 244, 255, 0.1) 100%);
    border-radius: 4px;
    padding: 1px;
    margin-bottom: 28px;
    position: relative;
}

.game-area-purchase-standard .game_area_purchase_game {
    background: linear-gradient(to right, rgb(125 125 125 / 47%) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 16px 20px;
    border-radius: 4px;
}

.game-area-purchase-standard .game_purchase_action {
    background: #000000;
    padding: 2px;
    border-radius: 2px;
    display: flex;
    align-items: center;
}

.game-area-purchase-standard .game_purchase_price {
    color: #BEEE11;
    font-size: 16px;
    font-weight: bold;
    padding: 0 16px;
    line-height: 30px;
}

/* 特惠折扣样式 */
.game-area-purchase-standard .discount_block {
    display: flex;
    height: 34px;
    margin-right: 2px;
}

.game-area-purchase-standard .discount_pct {
    background: #4c6b22;
    color: #beee11;
    font-size: 24px;
    font-weight: bold;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-area-purchase-standard .discount_prices {
    background: #344654;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 8px;
}

.game-area-purchase-standard .discount_original_price {
    font-size: 11px;
    color: #738895;
    text-decoration: line-through;
    line-height: 12px;
}

.game-area-purchase-standard .discount_final_price {
    font-size: 15px;
    color: #beee11;
    line-height: 16px;
    font-weight: bold;
}

.game-area-purchase-standard .btn_addtocart {
    border: none;
}

.game_area_purchase_game {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 16px 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    position: relative;
}

.game_area_purchase_platform {
    width: 24px;
    margin-right: 16px;
    opacity: 0.5;
}

.game_area_purchase_game_wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game_area_purchase_game_info h1 {
    font-family: "Motiva Sans", Sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 26px;
    text-shadow: 1px 1px 0px rgba( 0, 0, 0, 0.3 );
}

.package-info {
    color: #acb2b8;
    font-size: 14px;
    margin: 0;
}

.game_purchase_action {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 2px;
    border-radius: 2px;
    height: auto;
    margin-left: 10px;
}

.game_purchase_price {
    padding: 0 12px;
    color: #c6d4df;
    font-size: 14px;
    line-height: 30px;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
}

.btn_addtocart {
    display: inline-block;
}

.btn_green_steamui {
    border-radius: 2px;
    border: none;
    padding: 0 15px;
    display: inline-block;
    cursor: pointer;
    text-decoration: none !important;
    color: #D2E885 !important;
    background: linear-gradient( to bottom, #799905 5%, #536904 95%);
    text-shadow: 1px 1px 0px rgba( 0, 0, 0, 0.3 );
    height: 32px;
    line-height: 32px;
    font-size: 15px;
    font-family: "Motiva Sans", Sans-serif;
    font-weight: normal;
}

.btn_green_steamui:hover {
    background: linear-gradient( to bottom, #a4d007 5%, #536904 95%);
    color: #fff !important;
}

.btn_green_steamui span {
    position: relative;
    top: -1px;
}

/* 下载更新说明 */
.download-update-notice {
    padding: 10px 20px 16px 20px;
    background: transparent;
}

.download-update-notice p {
    color: #8f98a0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.download-update-notice strong {
    color: #c7d5e0;
    font-weight: bold;
}

/* 章节标题 */
.game-page-section-header {
    background-image: url('https://store.cloudflare.steamstatic.com/public/images/v6/main_col_gradient_rule.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
    margin-bottom: 10px;
    margin-top: 30px;
}

.game-page-section-header h2 {
    font-weight: normal;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    font-family: "Motiva Sans", Sans-serif;
}

.game-description-snippet {
    color: #acb2b8;
    font-size: 15px;
    line-height: 1.6;
}

.bb_tag {
    color: #fff;
}

.bb_ul {
    padding-left: 20px;
    margin: 10px 0;
}

.bb_ul li {
    margin-bottom: 6px;
    list-style-type: square;
}

/* 快捷键表格 */
.hotkeys-table {
    display: grid;
    gap: 8px;
    max-width: 400px;
}

.hotkey-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 2px;
}

.key-badge {
    background: #3d4450;
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 12px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
    box-shadow: 1px 1px 0 #000;
}

.function-desc {
    color: #c6d4df;
    font-size: 13px;
}

/* 系统需求 */
.sysreq-container {
    background: inherit;
    font-size: 12px;
    color: #acb2b8;
}

.sysreq-container strong {
    color: #61686D;
}

/* 右侧边栏 */
.block {
    margin-bottom: 20px;
}

.block-header {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.block-content {
    background-color: rgba( 0, 0, 0, 0.2 );
    padding: 10px;
    font-size: 12px;
    color: #8f98a0;
}

.btn_grey_steamui {
    display: block;
    background: rgba( 103, 193, 245, 0.2 );
    padding: 6px 12px;
    color: #67c1f5;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.btn_grey_steamui:hover {
    background: #67c1f5;
    color: #fff;
}

.game-details-block {
    background-color: rgba( 0, 0, 0, 0.2 );
    padding: 12px;
    border-radius: 2px;
}

.game-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.game-details-row:last-child {
    margin-bottom: 0;
}

.game-details-row .label {
    font-size: 12px;
    color: #67c1f5;
    background: #252e37;
    padding: 2px 8px;
    border-radius: 2px;
    flex: 1;
}

.languages-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.languages-table th {
    text-align: left;
    color: #566468;
    font-weight: normal;
    padding: 4px;
    border-bottom: 1px solid #3A3F44;
}

.languages-table td {
    padding: 4px;
    color: #acb2b8;
}

.languages-table tr:nth-child(even) {
    background-color: rgba( 0, 0, 0, 0.2 );
}

.highlight-player-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    object-fit: contain; /* Ensure video fits within container */
}

/* 移动端适配优化 */
@media screen and (max-width: 960px) {
    .steam-detail-page {
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .steam-hero-area,
    .page-content-layout {
        flex-direction: column;
        gap: 20px;
    }

    .hero-left-col,
    .page-left-col {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-basis: auto;
    }

    .hero-right-col,
    .page-right-col {
        width: 100%;
        min-width: 0;
    }

    /* 媒体播放器适配 */
    .highlight-player {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 */
        position: relative;
    }

    .highlight-player-item {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
    
    .highlight-strip {
        height: 50px;
        margin-top: 5px;
    }
    
    .strip-item {
        flex: 0 0 80px;
        width: 80px;
    }

    /* 购买区域适配 */
    .game_area_purchase_game {
        padding: 12px;
    }

    .game_area_purchase_game_wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .game_area_purchase_game_info {
        width: 100%;
    }

    .game_area_purchase_game_info h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    .game_purchase_action {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 5px;
        box-sizing: border-box;
    }

    /* 防止表格溢出 */
    .hotkeys-table {
        max-width: 100%;
        width: 100%;
    }

    .hotkey-row {
        flex-wrap: wrap;
    }
    
    .sysreq-container {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    /* Extra small devices */
    .main-nav {
        font-size: 12px;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Single column for games */
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-cover {
        height: 250px;
    }
    
    /* Featured section smaller */
    .featured-main-img {
        height: 150px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    /* Smaller text */
    .section-title {
        font-size: 18px;
    }
}

/* 购买弹窗样式 */
.lhshop-purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lhshop-purchase-modal-content {
    width: 90%;
    max-width: 600px;
}

.lhshop-account-info-header {
    background-color: #3a5572;
    color: #FFFFFF;
    font-family: "Motiva Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 31px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* .lhshop-modal-close 样式已统一到 mobile.css */

.lhshop-account-info-block {
    background: linear-gradient(to bottom, rgb(47, 63, 78) 5%, rgb(34, 45, 56) 95%);
    color: #8F98A0;
    font-size: 12px;
    padding: 15px;
}

.lhshop-account-info-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;
}

.lhshop-account-info-title {
    color: #66C0F4;
    font-size: 14px;
    margin-bottom: 10px;
}

.lhshop-account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lhshop-account-info-label {
    color: #C6D4DF;
    font-size: 13px;
}

.lhshop-account-info-value {
    color: #66C0F4;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.lhshop-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lhshop-quantity-btn {
    background: rgba(240, 248, 255, 0.07);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.lhshop-quantity-btn:hover {
    background: rgba(240, 248, 255, 0.153);
}

.lhshop-quantity-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 24px;
    text-align: center;
    font-size: 13px;
    border-radius: 2px;
}

.lhshop-quantity-input:focus {
    border-color: #66C0F4;
    outline: none;
}

.lhshop-form-item {
    margin-bottom: 15px;
}

.lhshop-form-label {
    display: block;
    color: #C6D4DF;
    font-size: 13px;
    margin-bottom: 5px;
}

.lhshop-form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
}

.lhshop-form-input:focus {
    border-color: #66C0F4;
    outline: none;
}

.lhshop-submit-btn {
    background: rgba(240, 248, 255, 0.07);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 28px;
    line-height: 16px;
    width: 100%;
    margin-top: 15px;
}

.lhshop-submit-btn:hover {
    background: rgba(240, 248, 255, 0.153);
}

.lhshop-spec-options {
    margin-top: 5px;
}

.lhshop-spec-group {
    margin-bottom: 10px;
}

.lhshop-spec-title {
    color: #C6D4DF;
    font-size: 12px;
    margin-bottom: 5px;
}

.lhshop-spec-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lhshop-spec-value {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.lhshop-spec-value:hover {
    border-color: #66C0F4;
}

.lhshop-spec-value input {
    margin: 0;
}

.lhshop-spec-value input:checked+span {
    color: #66C0F4;
}

.lhshop-spec-value span {
    color: #C6D4DF;
    font-size: 12px;
}

.lhshop-qrcode-container {
    text-align: center;
    padding: 20px 0;
}

.lhshop-qrcode {
    display: inline-block;
    position: relative;
    margin: 0 auto 15px;
}

.lhshop-qrcode-tips {
    color: #C6D4DF;
    font-size: 13px;
}

.lhshop-pay-status {
    color: #ffa500;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .lhshop-purchase-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .lhshop-account-info-block {
        padding: 10px;
    }

    .lhshop-account-info-section {
        padding: 10px;
    }
}
