/* Reset and Base Styles */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --accent: #F59E0B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-dark: #1e293b;
    --text: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --bg: #f8fafc;
    
    --dark-primary: #10B981;
    --dark-accent: #F59E0B;
    --dark-success: #10B981;
    --dark-warning: #F59E0B;
    --dark-danger: #EF4444;
    --dark-bg: #111827;
    --dark-bg-card: #1F2937;
    --dark-bg-hover: #374151;
    --dark-text-title: #F9FAFB;
    --dark-text-primary: #E5E7EB;
    --dark-text-secondary: #B0B8C4;
    --dark-text-placeholder: #9CA3AF;
    --dark-border: #374151;
    --dark-button-primary: #10B981;
    --dark-button-primary-hover: #059669;
    --dark-button-secondary: #374151;
    --dark-button-secondary-hover: #4B5563;
    
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-hero: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* 图片加载优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.lazy-image.loaded {
    opacity: 1;
}

.img-error {
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 80px;
    padding-top: 20px;
}

/* Header & Navigation */
.header {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text-title);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--dark-primary);
}

.nav-brand a:hover {
    color: var(--dark-primary);
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text-primary);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--dark-primary);
    background-color: rgba(16, 185, 129, 0.1);
}

.nav-menu a.active {
    color: var(--dark-primary);
    background-color: rgba(16, 185, 129, 0.15);
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-item-has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-bg-card);
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--dark-border);
}

.nav-item-has-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border: 8px solid transparent;
    border-bottom-color: var(--dark-bg-card);
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--dark-text-primary);
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    border-radius: 0;
}

.nav-submenu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dark-primary);
}

.nav-submenu a.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--dark-primary);
}

.menu-icon {
    font-size: 1rem;
}

.nav-auth-item .login-link {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
}

.nav-auth-item .login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.user-info-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark-primary);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-text-title);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item-has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 多语言菜单样式 - 桌面版 */
.nav-lang-item {
    margin-left: 0.5rem;
}

.nav-lang-item > a {
    color: var(--dark-text-primary);
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-lang-item > a:hover {
    color: var(--dark-primary);
    background-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.nav-lang-item .nav-submenu {
    border-top: 3px solid var(--dark-primary);
}

.nav-lang-item .nav-submenu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    color: var(--dark-text-primary);
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.nav-lang-item .nav-submenu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dark-primary);
}

.nav-lang-item .nav-submenu a.active {
    color: var(--dark-primary);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    position: relative;
    color: var(--dark-text-title);
    padding: 160px 20px 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--dark-text-title) 0%, var(--dark-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--dark-text-secondary);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text-title);
    border: 2px solid var(--dark-border);
}

.btn-secondary:hover {
    background: var(--dark-bg-card);
    border-color: var(--dark-primary);
    color: var(--dark-primary);
}

/* Hero Search */
.hero-search {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--dark-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    background: transparent;
    color: var(--dark-text-title);
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--dark-text-placeholder);
}

.search-btn {
    padding: 18px 28px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--dark-button-primary-hover);
}

.search-btn svg {
    width: 22px;
    height: 22px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    border: 1px solid var(--dark-border);
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark-text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--dark-border);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(16, 185, 129, 0.15);
}

.search-suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.search-suggestion-title {
    font-weight: 700;
    color: var(--dark-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

.search-suggestion-category {
    font-size: 0.85rem;
    color: var(--dark-text-secondary);
    margin-top: 4px;
}

.search-no-suggestions {
    padding: 20px;
    text-align: center;
    color: var(--dark-text-secondary);
    font-size: 0.95rem;
}

/* Search Page */
.search-page {
    padding: 40px 0 60px;
    min-height: 60vh;
    background: var(--dark-bg);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2rem;
    color: var(--dark-text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.search-keyword {
    color: var(--dark-primary);
    font-weight: 700;
}

.search-box-large {
    max-width: 600px;
    margin: 0 auto 16px;
}

.search-box-large .search-input-wrapper {
    background: var(--dark-bg-card);
    border: 2px solid var(--dark-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box-large .search-input-wrapper:focus-within {
    border-color: var(--dark-primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.search-box-large .search-input {
    color: var(--dark-text-primary);
}

.search-box-large .search-input::placeholder {
    color: var(--dark-text-muted);
}

.search-count {
    color: var(--dark-text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.search-count strong {
    color: var(--dark-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-results h2 {
    color: var(--dark-text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.no-results p {
    color: var(--dark-text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Search Tips */
.search-tips {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-tips h2 {
    color: var(--dark-text-title);
    margin-bottom: 20px;
    font-weight: 700;
}

.search-tips ul {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.search-tips li {
    padding: 12px 0;
    color: var(--dark-text-secondary);
    border-bottom: 1px solid var(--dark-border);
    position: relative;
    padding-left: 24px;
    font-size: 1rem;
}

.search-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.popular-searches h3 {
    color: var(--dark-text-title);
    margin-bottom: 16px;
    font-weight: 700;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-tag {
    padding: 8px 16px;
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid var(--dark-border);
    font-weight: 500;
}

.popular-tag:hover {
    background: var(--dark-primary);
    color: var(--dark-text-title);
    border-color: var(--dark-primary);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 10px 0 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 300px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.feature-item h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover p {
    color: #333;
}

/* Products Section */
.products-preview {
    padding: 20px 0 20px;
    background: #fff;
    position: relative;
}

.products-preview::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, transparent 49.5%, #f8f9fa 49.5%, #f8f9fa 50.5%, transparent 50.5%);
    z-index: 1;
}

.products-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    height: 180px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 确保在所有情况下nav-toggle都能正常工作 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1001 !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
    }
    
    /* 确保导航菜单在移动端正确显示 */
    .header {
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(180deg, var(--dark-bg-card) 0%, var(--dark-bg) 100%);
        width: 100%;
        text-align: left;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        padding: 0.75rem 0;
        z-index: 999;
        margin: 0;
        display: none;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
        }
    
    .nav-menu.active {
        display: flex;
        left: 0;
        }
    
    .nav-item-has-dropdown:hover .nav-submenu {
        display: none;
        }
    
    .nav-item-has-dropdown.active .nav-submenu {
        display: block;
        }
    
    /* 确保下拉菜单项在移动端正确显示 */
    .nav-submenu li {
        margin: 0;
        padding: 0;
        }
    
    .nav-submenu a {
        display: block;
        padding: 0.75rem 1.75rem;
        color: var(--dark-text-secondary);
        text-decoration: none;
        transition: all 0.25s ease;
        font-size: 0.95rem;
        }
    
    .nav-submenu a:hover {
        background-color: rgba(16, 185, 129, 0.12);
        color: var(--dark-primary);
        }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(55, 65, 81, 0.4);
        }
    
    .nav-menu li:last-child {
        border-bottom: none;
        }
    
    .nav-menu a {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        color: var(--dark-text-primary);
        font-weight: 500;
        display: flex;
        align-items: center;
        transition: all 0.25s ease;
        }
    
    .nav-menu a:hover {
        background-color: rgba(16, 185, 129, 0.1);
        color: var(--dark-primary);
        }
    
    .nav-menu a.active {
        background-color: rgba(16, 185, 129, 0.15);
        color: var(--dark-primary);
        }
    
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(55, 65, 81, 0.35);
        margin: 0;
        padding: 0;
        display: none; /* 默认隐藏子菜单 */
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(55, 65, 81, 0.4);
        }
    
    /* 将多语言菜单移动到导航菜单内部 */
    .nav-lang-item {
        margin: 0;
        padding: 0;
        background: transparent;
        border-top: 1px solid rgba(55, 65, 81, 0.4);
        border-bottom: none;
        }
    
    /* 语言下拉菜单在移动端的样式 */
    .nav-lang-item .nav-submenu {
        background: rgba(55, 65, 81, 0.35);
        padding: 0;
        margin: 0;
        display: none;
        }
    
    .nav-lang-item.active .nav-submenu {
        display: block;
        }
    
    .nav-lang-item .nav-submenu a {
        display: block;
        padding: 0.75rem 1.75rem;
        color: var(--dark-text-secondary);
        font-weight: 500;
        transition: all 0.25s ease;
        position: relative;
        }
    
    .nav-lang-item .nav-submenu a:hover {
        background-color: rgba(16, 185, 129, 0.12);
        color: var(--dark-primary);
        }
    
    .nav-lang-item .nav-submenu a.active {
        background-color: rgba(16, 185, 129, 0.2);
        color: var(--dark-primary);
        }
    
    .nav-lang-item .nav-submenu a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--dark-primary);
        }
    
    .nav-lang-item .nav-submenu a.active {
        color: var(--dark-primary);
        font-weight: 600;
        }
    
    .nav-lang-item .nav-submenu a.active::after {
        content: '✓';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dark-primary);
        font-size: 0.9rem;
        }
    
    /* 登录链接在移动端 */
    .login-link {
        width: calc(100% - 3rem);
        margin: 0.75rem 1.5rem;
        justify-content: center;
        background: var(--gradient-primary);
        color: #ffffff;
        border-radius: 10px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        transition: all 0.25s ease;
        }
    
    .login-link:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        color: #ffffff;
        }
    
    .nav-auth-item {
        margin: 0;
        padding: 0.25rem 0;
        }
    
    /* 确保导航菜单在移动端正确显示 */
    .nav {
        position: relative;
        padding: 0.5rem 1rem;
    }
    
    .nav-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .nav-brand {
        max-width: calc(100% - 60px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 移动端下拉菜单样式 */
    .nav-item-has-dropdown {
        position: relative;
    }
    
    .nav-item-has-dropdown.active .nav-submenu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 15px;
        margin-top: 70px;
        padding-top: 15px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d1117 100%);
    color: var(--dark-text-primary);
    padding: 60px 0 0;
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-primary), var(--dark-accent), var(--dark-primary));
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--dark-text-title);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--dark-primary), var(--dark-accent));
    border-radius: 2px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--dark-text-title);
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--dark-primary);
    border-radius: 2px;
}

.footer-section p {
    color: var(--dark-text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--dark-primary);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-section a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dark-primary);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--dark-primary);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--dark-border);
    padding: 20px 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.8;
}

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

.footer-bottom a:hover {
    color: var(--dark-primary);
}

.footer-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--dark-primary), var(--dark-accent));
    border-radius: 12px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-button-secondary);
    border-radius: 10px;
    color: var(--dark-text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--dark-primary);
    color: var(--dark-text-title);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--dark-button-secondary);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: var(--dark-bg-hover);
}

.footer-contact-item i {
    color: var(--dark-primary);
    font-size: 1rem;
}

.footer-contact-item span {
    color: var(--dark-text-primary);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
    }
    
    .footer-section h3 {
        font-size: 1.35rem;
    }
    
    .footer-section h4 {
        font-size: 1.05rem;
    }
    
    .footer-bottom {
        padding: 18px 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        padding: 0 1rem 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 15px 1rem;
    }
}

/* Call to Action Section */
.cta-section {
    padding: 80px 20px;
    background: var(--dark-bg);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg-card);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--dark-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.cta-content h2 {
    color: var(--dark-text-title);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.cta-content p {
    color: var(--dark-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* 添加按钮样式 */
.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: #6366f1;
    color: #ffffff;
}

/* Products Page Styles */
.products-page {
    margin: 2rem 0;
}

.products-main-full {
    width: 100%;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark-text-title);
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-border);
}

.breadcrumb a {
    color: var(--dark-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

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

.breadcrumb > span:not(:last-child) {
    flex-shrink: 0;
}

.breadcrumb span:last-child {
    color: var(--dark-text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    min-width: 0;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        gap: 0.3rem;
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .breadcrumb span:last-child {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .breadcrumb span:last-child {
        max-width: 100px;
    }
}

/* Sidebar */
.products-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list li.active a {
    background: #e74c3c;
    color: white;
}

/* Games Grid */
.games-filter-bar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--dark-bg-card) 0%, rgba(31, 41, 55, 0.95) 100%);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(16, 185, 129, 0.08);
    border: 1px solid var(--dark-border);
    overflow: visible;
    gap: 16px;
}

.games-filter-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.7;
    border-radius: 16px 16px 0 0;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.platform-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 4px;
}

.filter-label {
    color: var(--dark-text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-right: 4px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--dark-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: rgba(55, 65, 81, 0.4);
    white-space: nowrap;
}

.filter-tab svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.filter-tab.active svg {
    opacity: 1;
}

.filter-tab:hover {
    background: rgba(55, 65, 81, 0.6);
    color: var(--dark-text-title);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.filter-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    color: var(--dark-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(55, 65, 81, 0.4);
    border: 1px solid transparent;
    white-space: nowrap;
}

.platform-btn svg {
    flex-shrink: 0;
}

.platform-btn:hover {
    background: rgba(55, 65, 81, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
}

.platform-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    font-weight: 600;
}

.platform-btn svg {
    flex-shrink: 0;
}

.filter-tab-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.filter-tab-more .filter-tab {
    margin: 0;
    overflow: visible;
}

.filter-tab-more .more-categories-dropdown{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, var(--dark-bg-card) 0%, #252f3f 100%);
    min-width: 180px;
    max-width: 280px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid var(--dark-border);
    overflow: visible;
}

.more-categories-dropdown .filter-tab {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    border: none;
    margin: 0;
    text-align: left;
    width: 100%;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-categories-dropdown .filter-tab:hover {
    background: rgba(16, 185, 129, 0.12);
    color: var(--dark-primary);
    transform: translateX(3px);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark-text-primary);
    font-weight: 500;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-title);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.sort-select:hover {
    border-color: var(--dark-primary);
    background: rgba(55, 65, 81, 0.6);
}

.sort-select:focus {
    outline: none;
    border-color: var(--dark-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.sort-select option {
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    padding: 8px;
}

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

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dark-border);
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-btn:hover {
    background: rgba(55, 65, 81, 0.6);
    color: var(--dark-text-title);
    transform: translateY(-1px);
}

.view-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.view-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.games-main-full {
    background: var(--dark-bg);
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
}

.games-main-full .games-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.games-preview {
    padding: 80px 20px 100px;
    background: var(--dark-bg);
    position: relative;
}

.games-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

.games-preview .container {
    max-width: 1400px;
    margin: 0 auto;
}

.games-preview h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-text-title);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.games-preview h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.games-preview h2::before {
    content: '';
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 12px;
    vertical-align: middle;
    background-image: url('/ico/3.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.game-card {
    background: var(--dark-bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 1px solid var(--dark-border);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.25);
}

.game-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.game-card:active {
    transform: translateY(-3px);
    transition-duration: 0.1s;
}

.game-image {
    position: relative;
    width: 100%;
    padding-bottom: 45%;
    background: #0a0a0a;
    overflow: hidden;
}

.game-image::after {
    content: '🎮';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.game-card:hover .game-image::before {
    opacity: 1;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.game-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg-card) 0%, rgba(31, 41, 55, 0.98) 100%);
}

.game-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    max-height: 22px;
    overflow: hidden;
}

.game-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.2px;
    width: fit-content;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.game-category-tag.tag-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
}

.game-category-tag.tag-secondary {
    background: rgba(55, 65, 81, 0.5);
    color: var(--dark-text-secondary);
}

.game-category-tag::before {
    content: '';
    display: none;
}

.game-card:hover .game-category-tag.tag-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.game-card:hover .game-category-tag.tag-secondary {
    background: rgba(55, 65, 81, 0.7);
    color: var(--dark-primary);
}

.game-info h3 {
    color: var(--dark-text-title);
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    transition: color 0.25s ease;
}

.game-card:hover .game-info h3 {
    color: var(--dark-primary);
}

.game-info a {
    text-decoration: none !important;
}

.game-info h3 a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.25s ease;
    display: block;
    width: 100%;
}

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

.game-description {
    color: var(--dark-text-secondary);
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 0 0 auto;
    width: 100%;
}

.game-card .game-description {
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-spec {
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--dark-text-primary);
    padding: 6px 10px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 6px;
    border-left: 2px solid var(--dark-primary);
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-card:hover .game-spec {
    background: rgba(55, 65, 81, 0.7);
}

.game-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-category {
    font-size: 11px;
    color: var(--dark-text-primary);
    background: rgba(55, 65, 81, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    font-weight: 500;
    text-align: center;
}

.game-card:hover .game-category {
    background: rgba(16, 185, 129, 0.15);
    color: var(--dark-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--dark-primary);
    border: 1px solid var(--dark-primary);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dark-primary);
    transform: translateY(-1px);
}

/* 游戏标签 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-tag {
    font-size: 10px;
    color: var(--dark-text-primary);
    background: rgba(55, 65, 81, 0.4);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.game-card:hover .game-tag {
    background: rgba(55, 65, 81, 0.6);
}

/* 游戏评分 */
.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;

    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-rating .stars {
    color: #F59E0B;
    font-size: 11px;
}

.game-rating .score {
    font-size: 11px;
    color: var(--dark-text-primary);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 6px;
    border-radius: 8px;
}

/* 游戏统计信息 */
.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 6px 0 0;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--dark-text-secondary);
    flex: 1;
    justify-content: center;
}

.stat-icon {
    width: 12px;
    height: 12px;
    color: var(--dark-primary);
    flex-shrink: 0;
}

.game-card:hover .game-stats {
    border-color: rgba(16, 185, 129, 0.2);
}

.game-card:hover .stat-icon {
    color: var(--dark-primary);
}

/* 游戏卡片响应式布局 */
@media (max-width: 1399px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .games-preview {
        padding: 50px 0 70px;
    }
    
    .games-preview h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
}

@media (max-width: 1199px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .games-preview {
        padding: 45px 0 60px;
    }
    
    .game-card {
        border-radius: 14px;
    }
    
    .game-info {
        padding: 14px;
        gap: 8px;
    }
    
    .game-info h3 {
        font-size: 14px;
    }
    
    .game-tags-container {
        gap: 5px;
    }
    
    .game-category-tag {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 991px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .games-preview {
        padding: 40px 0 50px;
    }
    
    .games-preview h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .game-info h3 {
        font-size: 14px;
    }
    
    .game-category-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .game-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .games-filter-bar {
        flex-direction: column;
        gap: 18px;
        padding: 18px 20px;
    }
    
    .platform-filter {
        justify-content: flex-start;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    
    .filter-left,
    .filter-right {
        width: 100%;
    }
    
    .filter-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-tabs {
        gap: 8px;
        justify-content: flex-start;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .filter-right {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    
    .sort-options {
        flex: 1;
        min-width: 150px;
        flex-wrap: nowrap;
    }
    
    .sort-select {
        flex: 1;
    }
    
    .view-options {
        flex-shrink: 0;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-search {
        margin-bottom: 1.5rem;
    }
    
    .search-input {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 14px 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .search-page {
        padding: 30px 0 40px;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-suggestions {
        max-height: 300px;
    }
    
    .search-suggestion-item {
        padding: 10px 12px;
    }
    
    .search-suggestion-item img {
        width: 40px;
        height: 40px;
    }
    
    .popular-tags {
        gap: 8px;
    }
    
    .popular-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .games-preview {
        padding: 35px 0 45px;
    }
    
    .games-preview h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .games-preview h2::before {
        font-size: 1.4rem;
    }
    
    .games-filter-bar {
        flex-direction: column;
        padding: 14px 16px;
        border-radius: 14px;
        gap: 12px;
    }
    
    .games-filter-bar::before {
        height: 1px;
    }
    
    .platform-filter {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .platform-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .platform-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-left {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-tabs {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .filter-tab {
        padding: 7px 12px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    .filter-right {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .sort-options {
        flex: 1;
        min-width: 120px;
        gap: 6px;
        font-size: 11px;
        flex-wrap: nowrap;
    }
    
    .sort-select {
        flex: 1;
        min-width: 80px;
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .view-options {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .view-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .game-card {
        border-radius: 12px;
    }
    
    .game-image {
        padding-bottom: 45%;
    }
    
    .game-info {
        padding: 8px 10px;
        gap: 4px;
    }
    
    .game-info h3 {
        font-size: 12px;
        line-height: 1.25;
        margin: 0;
        padding: 0;
        -webkit-line-clamp: 1;
    }
    
    .game-tags-container {
        gap: 3px;
        margin: 0;
        padding: 0;
        max-height: 20px;
        overflow: hidden;
    }
    
    .game-category-tag {
        font-size: 7px;
        padding: 1.5px 4px;
        border-radius: 6px;
    }
    
    .game-category-tag::before {
        display: none;
    }
    
    .game-description {
        font-size: 10px;
        height: 32px;
        margin: 0;
        padding: 0;
    }
    
    .game-stats {
        gap: 3px;
        padding: 4px 0 0;
    }
    
    .game-stat-item {
        font-size: 9px;
        gap: 2px;
    }
    
    .stat-icon {
        width: 10px;
        height: 10px;
    }
    
    .game-rating {
        margin: 0;
        padding: 0;
    }
    
    .game-rating .stars {
        font-size: 10px;
    }
    
    .game-rating .score {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .game-meta {
        padding-top: 4px;
        margin-top: 0;
    }
    
    .game-category {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .game-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .game-card::before {
        height: 2px;
    }
}

@media (max-width: 400px) {
    .games-grid {
        gap: 8px;
    }
    
    .game-image {
        padding-bottom: 42%;
    }
    
    .game-info {
        padding: 7px 9px;
        gap: 3px;
    }
    
    .game-info h3 {
        font-size: 11px;
        line-height: 1.2;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .game-tags-container {
        gap: 2px;
        max-height: 18px;
        margin: 0;
        padding: 0;
    }
    
    .game-category-tag {
        font-size: 6.5px;
        padding: 1px 3px;
    }
    
    .game-description {
        font-size: 9px;
        height: 28px;
        margin: 0;
        padding: 0;
    }
    
    .game-stats {
        gap: 2px;
        padding: 3px 0 0;
    }
    
    .game-stat-item {
        font-size: 8px;
        gap: 1px;
    }
    
    .stat-icon {
        width: 8px;
        height: 8px;
    }
    
    .game-meta {
        padding-top: 3px;
        margin-top: 0;
    }
    
    .game-category {
        font-size: 8px;
        padding: 2px 5px;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .game-card:active {
        transform: translateY(-3px) scale(0.98);
        transition-duration: 0.1s;
    }
    
    .btn:active,
    .btn-primary:active,
    .btn-outline:active {
        transform: scale(0.95);
    }
    
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* 触摸设备悬停优化 */
@media (hover: none) {
    .game-card:hover {
        transform: none;
        box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    }
    
    .game-card:active {
        transform: scale(0.98);
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e293b;
        --text-dark: #f1f5f9;
        --text: #cbd5e1;
        --text-light: #94a3b8;
        --border: #334155;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .scroll-progress {
        display: none !important;
    }
    
    .container {
        margin-top: 0;
        padding-top: 0;
    }
    
    .game-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 列表视图样式 */
.games-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 15px;
}

.games-grid.list-view .game-card {
    display: flex !important;
    flex-direction: row !important;
    height: 160px !important;
    padding: 15px !important;
}

.games-grid.list-view .game-image {
    width: 240px !important;
    height: 107px !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
    border-radius: 8px !important;
}

.games-grid.list-view .game-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.games-grid.list-view .game-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
}

.games-grid.list-view .game-info h3 {
    height: auto !important;
    -webkit-line-clamp: 1 !important;
    font-size: 18px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.games-grid.list-view .game-description {
    height: auto !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.games-grid.list-view .game-stats {
    margin-top: 8px !important;
    display: flex !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    padding: 8px 0 0 !important;
}

.games-grid.list-view .game-tags {
    margin-bottom: 8px !important;
}

.games-grid.list-view .game-meta {
    margin-top: -7px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.games-grid.list-view .game-rating {
    margin-bottom: 8px !important;
}

/* Products Grid */
.products-main {
    min-height: 500px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.product-info {
    flex: 1; /* 让信息区域占据一半宽度 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 内容从顶部开始排列 */
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-spec {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #555;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Product Detail Page */
.product-detail {
    display: flex;
    flex-wrap: wrap; /* 允许内容换行 */
    margin: 2rem 0;
    position: relative; /* 为内容区域定位提供参考 */
}

.product-gallery {
    flex: 0 0 45%; /* 固定宽度，不伸缩 */
    max-width: 45%;
    padding-right: 3rem; /* 右侧间距 */
}

.product-info {
    flex: 0 0 55%; /* 固定宽度，不伸缩 */
    max-width: 100%;
}

/* 当内容超过图片高度时，延伸到整个宽度 */
.product-info-full-width {
    flex: 0 0 100%; /* 占据整个宽度 */
    max-width: 100%;
    margin-top: 2rem; /* 与上方内容的间距 */
    padding-left: 0; /* 移除左侧内边距 */
    padding-right: 0; /* 移除右侧内边距 */
}

.main-image {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    /* 移除固定高度，让图片自然显示 */
    min-height: 300px; /* 设置最小高度，确保图片区域不会太小 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-image img {
    max-width: 100%;
    height: auto; /* 恢复自动高度 */
    display: block;
    /* 确保图片适应容器 */
    object-fit: contain;
}

.key-features {
    margin: 1.5rem 0;
}

.key-features ul {
    list-style: none;
    padding-left: 0;
}

.key-features li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.key-features li:before {
    content: '✓';
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Inquiry Form */
.inquiry-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.inquiry-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Specifications */
.product-specifications {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

/* Related Products */
.related-products {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-products h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

/* Game Image on List Page - Additional Styles */
.game-image {
    position: relative;
    height: 93px !important;
    
    background: #0a0a0a;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Game Detail Page Layout - Fixed */
.game-detail {
    flex-wrap: wrap;
    background: var(--dark-bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.game-gallery {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
}

.game-detail .game-info {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    overflow: visible;
}

/* 全宽内容区域 */
.game-content,
.game-tags,
.game-screenshots,
.game-specifications,
.related-games {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 2rem;
    margin: 0;
}

/* Main Image on Detail Page */
.main-image {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    box-shadow: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Game Info Section Styles */
.game-info h1 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--dark-text-title);
    font-weight: 700;
    flex-shrink: 0;
}

.game-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-primary);
    margin-bottom: 0.7rem;
    flex-shrink: 0;
}

.game-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-text-primary);
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.game-detail .game-description {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 200px;
    min-height: 80px;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.game-detail .game-description::-webkit-scrollbar {
    width: 4px;
}

.game-detail .game-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.game-detail .game-description::-webkit-scrollbar-track {
    background: transparent;
}

.game-info-bottom {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.75rem;
    align-items: stretch;
}

.game-info-bottom .game-basic-info {
    flex: 0 0 auto;
    width: 38%;
    margin-bottom: 0;
}

.game-info-bottom .download-section {
    flex: 1;
    margin-top: 0;
}

.game-basic-info {
    background: linear-gradient(145deg, rgba(55, 65, 81, 0.5) 0%, rgba(40, 48, 60, 0.4) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 110, 126, 0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.game-basic-info h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--dark-text-title);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 110, 126, 0.2);
}

.game-basic-info h3::before {
    content: '📋';
    font-size: 1rem;
}

.game-basic-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.game-basic-info li {
    padding: 0.65rem 1rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(30, 36, 44, 0.4);
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.game-basic-info li:hover {
    border-color: var(--dark-primary);
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
    transform: translateX(3px);
}

.game-basic-info li strong {
    font-size: 0.8rem;
    color: var(--dark-text-secondary);
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.game-basic-info li span {
    color: var(--dark-text-primary);
    font-weight: 600;
    text-align: right;
}

.game-basic-info li:last-child {
    border-bottom: none;
}

/* Download Section */
.download-section {
    margin-top: auto;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(55, 65, 81, 0.5) 0%, rgba(40, 48, 60, 0.4) 100%);
    border-radius: 14px;
    text-align: left;
    border: 1px solid rgba(99, 110, 126, 0.3);
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.download-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
    margin: 4px auto;
    display: block;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.no-download {
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
    margin: 4px auto;
    display: block;
    background: rgba(55, 65, 81, 0.6);
    color: var(--dark-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    cursor: default;
    border: 1px solid var(--dark-border);
}

/* Download Options - 多下载选项样式 */
.download-options {
    width: 100%;
    padding: 0;
}

.download-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text-title);
    margin-bottom: 0.875rem;
    text-align: left;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 110, 126, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-title::before {
    content: '📥';
    font-size: 1rem;
}

.download-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    width: 100%;
}

.download-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: var(--card-bg, linear-gradient(135deg, #6366f1 0%, #4f46e5 100%));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 90px;
}

.download-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    pointer-events: none;
}

.download-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.download-option-card:active {
    transform: translateY(-1px);
}

.download-platform-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.download-platform-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.download-action {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .download-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .download-option-card {
        padding: 18px 12px;
        min-height: 110px;
    }
    
    .download-platform-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .download-platform-name {
        font-size: 0.8rem;
    }
    
    .download-action {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .download-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .download-option-card {
        padding: 12px 8px;
        min-height: 80px;
        border-radius: 10px;
    }
    
    .download-platform-icon {
        font-size: 1.4rem;
    }
    
    .download-platform-name {
        font-size: 0.75rem;
    }
}

/* Game Content Section */
.game-content {
    background: var(--dark-bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--dark-border);
}

.game-content h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-text-title);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 0.5rem;
}

.content-wrapper {
    line-height: 1.8;
    color: var(--dark-text-primary);
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-wrapper p {
    margin-bottom: 1rem;
}

.content-wrapper h2 { 
    color: var(--dark-text-title);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.content-wrapper h3 {
    color: var(--dark-text-title);
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.content-wrapper h4 {
    color: var(--dark-text-title);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.content-wrapper ul, 
.content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-wrapper ol {
    list-style: decimal;
}

.content-wrapper ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.watermark-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 1rem auto;
}

.watermark-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content-wrapper video {
    position: relative;
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

.video-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-container {
    display: block;
    width: 100%;
}

.video-container video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.content-wrapper blockquote {
    border-left: 4px solid #e74c3c;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content-wrapper th, 
.content-wrapper td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content-wrapper th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.content-wrapper a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.content-wrapper a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.content-wrapper hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 1.5rem 0;
}

.content-wrapper code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

/* Game Tags */
.game-tags {
    background: var(--dark-bg-card);
    padding: 24px 28px;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.game-tags h3 {
    margin: 0 0 16px 0;
    color: var(--dark-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    width: 100%;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.tags-container .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(55, 65, 81, 0.5);
    color: var(--dark-text-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(55, 65, 81, 0.6);
    white-space: nowrap;
}

.tags-container .tag:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--dark-primary);
    border-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .game-tags {
        padding: 16px 18px;
    }
    
    .game-tags h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .tags-container {
        gap: 8px;
    }
    
    .tags-container .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Game Screenshots */
.game-screenshots {
    background: var(--dark-bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.game-screenshots h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-text-title);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 0.5rem;
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 50px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: var(--dark-bg-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px 0;
}

.carousel-slide {
    flex: 0 0 280px;
    width: 280px;
    height: 180px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--dark-border);
    background: #0a0a0a;
}

.carousel-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: var(--dark-primary);
    color: var(--dark-text-title);
    border-color: var(--dark-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--dark-primary);
    transform: scale(1.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.carousel-dot:hover {
    background: var(--dark-primary);
    transform: scale(1.2);
}

/* Screenshot Lightbox */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.screenshot-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 32px;
    padding: 0;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Game Tags */
.game-tags {
    background: var(--dark-bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.game-tags h3 {
    margin-bottom: 1rem;
    color: var(--dark-text-title);
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-tags h3::before {
    content: '🏷️';
    font-size: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-primary);
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid var(--dark-border);
    white-space: nowrap;
}

.tag:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--dark-primary);
    border-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Related Games */
.related-games {
    background: var(--dark-bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.related-games h2 {
    margin-bottom: 2rem;
    color: var(--dark-text-title);
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 1rem;
}

/* Game Specifications */
.game-specifications {
    background: var(--dark-bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.game-specifications h2 {
    margin-bottom: 2rem;
    color: var(--dark-text-title);
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 1rem;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    border: 1px solid var(--dark-border);
    text-align: left;
}

.specs-table th {
    background: rgba(55, 65, 81, 0.4);
    font-weight: 600;
    width: 30%;
    color: var(--dark-text-title);
}

.specs-table td {
    background: rgba(55, 65, 81, 0.2);
    color: var(--dark-text-primary);
}

/* Game Info Section */
.game-detail .game-info {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 0px;
}



.game-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border);
}

.game-info .info-item:last-child {
    border-bottom: none;
}

.game-info .info-label {
    font-weight: 600;
    color: var(--dark-text-secondary);
}

.game-info .info-value {
    color: var(--dark-text-primary);
}

/* 响应式分页调整 */
@media (max-width: 768px) {
    /* Game Detail Page Responsive Layout */
    .game-gallery,
    .game-info {
        max-width: 100%;
    }
    
    .game-detail {
        margin: 1rem 0;
    }
    
    .game-gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .game-detail .game-info {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        padding: 1rem;
    }
    
    .game-gallery,
    .game-info,
    .game-content,
    .game-tags,
    .game-screenshots,
    .game-specifications,
  
    
    .game-detail .game-description {
        max-height: none;
        overflow-y: visible;
    }
    
    .game-info-bottom {
        flex-direction: column;
    }
    
    .game-info-bottom .game-basic-info {
        width: 100%;
        flex: 1;
    }
    
    .game-info-bottom .download-section {
        flex: 1;
    }
    
    .game-basic-info {
        padding: 0.75rem 1rem;
    }
    
    .game-basic-info ul {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .game-basic-info li {
        padding: 0.4rem 0.6rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .game-basic-info li strong {
        margin-bottom: 0;
    }
    
    .game-info h1 {
        font-size: 1.5rem;
    }
    
    /* 游戏卡片标题响应式 */
    .game-info h3 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .game-info h3 a::after {
        height: 1.5px;
    }
    
    .game-price {
        font-size: 1.4rem;
    }
    
    .game-content h3,
    .game-tags h3,
    .game-specifications h2,
    .related-games h2 {
        font-size: 1.1rem;
    }
    
    .game-tags {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .tags-container {
        gap: 0.4rem;
    }
    
    .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .game-screenshots h3 {
        font-size: 1.2rem;
    }
    
    .screenshot-carousel {
        padding: 0 40px;
    }
    
    .carousel-slide {
        flex: 0 0 240px;
        width: 240px;
        height: 150px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .tags-container {
        justify-content: center;
    }
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .page-ellipsis {
        padding: 0.4rem 0.3rem;
        font-size: 0.9rem;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .game-info h3 {
        font-size: 13px;
        height: 36px;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    
    .game-info h3 a:hover {
        transform: translateX(1px);
    }
}

/* No Products */
.no-products {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        flex-direction: column; /* 在移动设备上改为垂直布局 */
    }
    
    .product-gallery {
        flex: 0 0 100%; /* 在移动设备上占据整个宽度 */
        max-width: 100%;
        padding-right: 0; /* 移除右侧间距 */
        margin-bottom: 2rem; /* 添加下方间距 */
    }
    
    .product-info {
        flex: 0 0 100%; /* 在移动设备上占据整个宽度 */
        max-width: 100%;
    }
    
    .product-info-full-width {
        margin-top: 2rem; /* 与上方内容的间距 */
        padding-left: 1rem; /* 在移动设备上添加左侧内边距 */
        padding-right: 1rem; /* 在移动设备上添加右侧内边距 */
    }
    
    .main-image {
        min-height: 250px; /* 在移动设备上减小最小高度 */
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* 移动端产品卡片调整 */
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* 移动端产品详情页图片缩略图调整 */
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

/* 产品图片占位符 */
.product-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-image:before {
    content: "📦";
    font-size: 3rem;
    color: #ddd;
    position: absolute;
    z-index: 1;
    display: none;
}

.product-image img[src*="placeholder"] {
    opacity: 0.3;
}

.product-image:has(img[src*="placeholder"]):before {
    display: block;
}

/* Articles Page Styles */
.articles-page {
    margin: 2rem 0;
}



/* Articles Grid - List View */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.article-image {
    width: 240px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 0.3rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 140px;
    justify-content: flex-start;
}

.article-meta {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1;
}

.category {
    background: #e74c3c;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

.date {
    color: #666;
}

.article-title {
    margin: -0.5rem 0 0 0 !important;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
}

.article-title a:hover {
    color: #e74c3c;
}

.article-excerpt {
    color: #666;
    line-height: 1.2;
    margin-bottom: 0;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.2rem;
    margin-top: 0.2rem;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.read-more:hover {
    text-decoration: underline;
}

.views {
    color: #666;
    font-size: 0.85rem;
}

/* Article Detail Page */
.article-detail {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-header .article-meta {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.8rem;
}

.article-meta span {
    margin: 0 0.5rem;
}

.article-featured-image {
    margin: 2rem 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.article-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.article-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.article-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

/* 产品标签样式 */
.product-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-tags h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 游戏标签标题对齐 */
.game-tags h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--dark-text-title);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-container .tag {
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-primary);
    border: 1px solid var(--dark-border);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    height: 24px;
    line-height: 1;
    vertical-align: top;
    margin: 0;
    white-space: nowrap;
}

.tags-container .tag:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--dark-bg-card);
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.related-articles h2 {
    color: var(--dark-text-title);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 1rem;
}

.related-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.related-articles .article-card {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
}

.related-articles .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--dark-primary);
}

.related-articles .article-image {
    position: relative;
    height: 140px;
    background: #f0f0f0;
    overflow: hidden;
    width: 100%;
}

.related-articles .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-articles .article-card:hover .article-image img {
    transform: scale(1.05);
}

.related-articles .article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-articles .article-card:hover .article-overlay {
    opacity: 1;
}

.related-articles .article-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-articles .article-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-articles .article-info h3 a {
    color: var(--dark-text-title);
    text-decoration: none !important;
    transition: color 0.3s;
}

.related-articles .article-info h3 a:hover {
    color: var(--dark-primary);
    text-decoration: none !important;
}

.related-articles .article-excerpt {
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}

.related-articles .article-meta {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
}

.related-articles .article-date {
    color: var(--dark-text-secondary);
    font-size: 0.8rem;
}

/* Related Games in Article Detail */
.related-games {
    margin-top: 2rem;
    padding: 1.5rem;
    border-top: none;
    background: var(--dark-bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
}

.related-games h2 {
    color: var(--dark-text-title);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--dark-primary);
    padding-bottom: 0.5rem;
}

.related-games .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.related-games .game-card {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
}

.related-games .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    border-color: var(--dark-primary);
}

.related-games .game-image {
    position: relative;
    height: 120px;
    background: #0a0a0a;
    overflow: hidden;
}

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

.related-games .game-card:hover .game-image img {
    transform: scale(1.05);
}

.related-games .game-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-games .game-info h3 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-games .game-info h3 a {
    color: var(--dark-text-title);
    text-decoration: none;
    transition: color 0.3s;
}

.related-games .game-info h3 a:hover {
    color: var(--dark-primary);
}

.related-games .game-price {
    color: var(--dark-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.related-games .game-description {
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-image {
    height: 150px;
    overflow: hidden;
    width: 100%;
}

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

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin-bottom: 0.75rem;
}

.related-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
}

.related-content h3 a:hover {
    color: #e74c3c;
}

.related-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* No Articles/Products */
.no-articles,
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-text-secondary);
    background: var(--dark-bg-card);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dark-border);
}

.no-articles h3,
.no-products h3 {
    margin-bottom: 1rem;
    color: var(--dark-text-title);
    font-size: 1.5rem;
    font-weight: 700;
}

.no-articles p,
.no-products p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--dark-text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.no-articles .btn,
.no-products .btn {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.no-articles .btn:hover,
.no-products .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .articles-page {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-card {
        flex-direction: column;
        height: auto;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* 通用移动端调整 */
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* 表单元素移动端调整 */
    input, textarea, select {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 按钮移动端调整 */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* 表格移动端调整 */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* 图片移动端调整 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 轮播图移动端调整 */
    .carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 180px;
    }
    
    .carousel-slide img {
        width: 100%;
        height: 180px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 文章图片占位符 */
.article-image {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image:before {
    content: "📄";
    font-size: 3rem;
    color: #ddd;
    position: absolute;
    z-index: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.article-image img[src*="placeholder"] {
    opacity: 0;
}

/* 分享按钮样式 */
.share-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.share-buttons strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.share-btn {
    display: inline-block;
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Product Content Styles */
.product-content {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

/* 全宽产品内容样式 */
.product-content.product-info-full-width {
    /* 计算左边距，与图片左侧对齐 */
    margin-left: 0;
    /* 计算右边距，与描述右侧对齐 */
    margin-right: 0;
}

.product-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 空状态样式 - 游戏列表 */
.no-games {
    text-align: center;
    padding: 60px 20px;
    background: var(--dark-bg-card);
    border-radius: 16px;
    margin: 20px 0;
    border: 2px dashed var(--dark-border);
    position: relative;
    overflow: hidden;
}

.no-games::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.no-games-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-games-icon svg {
    color: white;
    opacity: 0.95;
}

.no-games h3 {
    font-size: 1.8rem;
    color: var(--dark-text-title);
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.no-games-subtitle {
    font-size: 1rem;
    color: var(--dark-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.no-games-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.no-games-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
}

.no-games-actions .btn .btn-icon {
    flex-shrink: 0;
    margin-right: 8px;
}

.no-games-actions .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.no-games-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.no-games-actions .btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.no-games-actions .btn-outline {
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-primary);
    border: 2px solid var(--dark-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-games-actions .btn-outline:hover {
    border-color: var(--dark-primary);
    color: var(--dark-primary);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.no-games-actions .btn-outline:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
}

.no-games-suggestions {
    background: rgba(55, 65, 81, 0.3);
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--dark-border);
}

.no-games-suggestions h4 {
    font-size: 1rem;
    color: var(--dark-text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.suggested-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.suggested-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(55, 65, 81, 0.4);
    color: var(--dark-text-primary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.suggested-category-tag:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--dark-primary);
    border-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* 响应式设计 - 空状态 */
@media (max-width: 768px) {
    .no-games {
        padding: 40px 16px;
        margin: 10px 0;
    }
    
    .no-games-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .no-games-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .no-games h3 {
        font-size: 1.5rem;
    }
    
    .no-games-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .no-games-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .no-games-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .no-games-suggestions {
        padding: 16px;
    }
    
    .suggested-categories {
        gap: 8px;
    }
    
    .suggested-category-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .no-games-icon {
        width: 80px;
        height: 80px;
    }
    
    .no-games-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .no-games h3 {
        font-size: 1.3rem;
    }
    
    .no-games-subtitle {
        font-size: 0.85rem;
    }
    
    .no-games-actions .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   User Authentication Styles
   用户认证样式
   ======================================== */

/* 用户认证导航项 */
.nav-auth-item {
    margin-left: 0.5rem;
}

.nav-auth-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.08);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.25s ease;
}

.nav-auth-item > a:hover {
    color: #2ecc71;
    background-color: rgba(39, 174, 96, 0.15);
    transform: translateY(-1px);
}

.nav-auth-item > a .menu-icon {
    font-size: 1rem;
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--gradient-primary);
    border-radius: 8px;
    padding: 0.55rem 1.3rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* 用户头像 */
.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #27ae60;
}

.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户菜单图标 */
.menu-icon {
    margin-right: 8px;
    font-size: 1rem;
}

/* 认证下拉菜单 */
.nav-auth-item .nav-submenu {
    border-top: 3px solid #27ae60;
}

.nav-auth-item .nav-submenu a:hover {
    color: #27ae60;
}

.nav-auth-item .nav-submenu a:hover::before {
    background: #27ae60;
}

/* 登录/注册下拉面板 */
.auth-dropdown {
    min-width: 320px !important;
    padding: 0 !important;
}

.auth-dropdown > li {
    padding: 0 !important;
}

.auth-modal-mini {
    padding: 20px;
    background: #fff;
}

/* 认证标签页 */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}


.auth-tab:hover {
    color: #333;
}

.auth-tab.active {
    color: #27ae60;
}

.auth-tab.active::after {
    width: 100%;
}

/* 认证表单 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-form input:focus {
    outline: none;
    border-color: #27ae60;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.auth-form input::placeholder {
    color: #adb5bd;
}

/* 密码输入框组 */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 5px;
}

.password-toggle:hover {
    opacity: 1;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #27ae60;
}

.forgot-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 同意协议 */
.agree-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.agree-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #27ae60;
    margin-top: 2px;
    flex-shrink: 0;
}

.agree-terms a {
    color: #27ae60;
    text-decoration: none;
}

.agree-terms a:hover {
    text-decoration: underline;
}

/* 验证消息 */
.validation-message {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 18px;
}

.validation-message.error {
    color: #e74c3c;
}

.validation-message.success {
    color: #27ae60;
}

/* 认证按钮 */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 认证消息提示 */
.auth-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.auth-message.success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.auth-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 退出登录按钮 */
.logout-btn {
    color: #e74c3c !important;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #c0392b !important;
}

/* 加载动画 */
.btn-auth .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* 移动端响应式 */
@media (max-width: 768px) {
    .nav-auth-item {
        margin: 0;
        padding: 0.25rem 0;
        background: transparent;
        border-top: 1px solid rgba(55, 65, 81, 0.4);
        border-bottom: none;
    }
    
    .nav-auth-item > a {
        background: var(--gradient-primary);
        color: #ffffff;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    
    .auth-dropdown {
        position: static;
        min-width: 100% !important;
        box-shadow: none;
        background: rgba(55, 65, 81, 0.35);
        padding: 0 !important;
        border-top: 1px solid rgba(55, 65, 81, 0.4);
    }
    
    .auth-dropdown > li {
        padding: 0 !important;
    }
    
    .auth-dropdown a {
        color: var(--dark-text-primary) !important;
        background: transparent !important;
    }
    
    .auth-dropdown a:hover {
        color: var(--dark-primary) !important;
        background: rgba(16, 185, 129, 0.12) !important;
    }
    
    .auth-modal-mini {
        padding: 15px;
    }
    
    .user-name {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .auth-modal-mini {
        padding: 12px;
    }
    
    .auth-tabs {
        margin-bottom: 15px;
    }
    
    .auth-tab {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .btn-auth {
        padding: 12px;
    }
}

/* 用户信息链接悬停效果 */
.user-info-link:hover .user-avatar-small {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.user-info-link:hover .user-avatar-placeholder {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 输入框焦点动画 */
.auth-form input:focus + .password-toggle {
    opacity: 1;
}

/* 表单验证状态 */
.auth-form .form-group.has-error input {
    border-color: #e74c3c;
}

.auth-form .form-group.has-success input {
    border-color: #27ae60;
}

/* 社交登录分隔线（预留） */
.social-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.social-divider span {
    padding: 0 15px;
}

/* 密码强度指示器 */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.password-strength-bar.weak {
    background: #e74c3c;
}

.password-strength-bar.medium {
    background: #f39c12;
}

.password-strength-bar.strong {
    background: #27ae60;
}

/* 用户角色徽章 */
.user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.user-role-badge.user {
    background: #e9ecef;
    color: #666;
}

.user-role-badge.vip {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.user-role-badge.moderator {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* 登录提示弹窗样式 */
#login-prompt-modal,
#download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.login-prompt-content {
    position: relative;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

.download-success-content {
    max-width: 360px;
    padding: 0;
    overflow: hidden;
}

.download-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 10px;
}

.download-success-icon {
    font-size: 1.8rem;
}

.download-success-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.download-game-name {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 20px 8px;
}

.download-game-name strong {
    color: #10B981;
}

.download-platform-tag {
    text-align: center;
    display: block;
    padding: 4px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    color: #10B981;
    font-size: 0.85rem;
    border-radius: 20px;
    margin: 0 20px 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.download-qrcode-container {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 0 20px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.download-qrcode-img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 12px;
}

.qrcode-loading {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.qrcode-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--dark-primary);
    border-radius: 50%;
    animation: qrcode-spin 0.8s linear infinite;
}

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

.download-scan-tip {
    text-align: center;
    margin: 14px 20px 6px;
    font-size: 0.95rem;
    color: var(--dark-text-primary);
    font-weight: 500;
}

.download-tip {
    text-align: center;
    font-size: 0.8rem;
    color: var(--dark-primary);
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 20px 16px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.download-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--dark-border);
}

.download-modal-footer .download-help-link {
    color: var(--dark-primary);
    font-size: 0.8rem;
    text-decoration: none;
    margin: 0;
    padding: 0;
    background: none;
    transition: color 0.2s;
}

.download-modal-footer .download-help-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.download-divider {
    color: var(--dark-text-secondary);
}

.download-modal-footer .download-copyright {
    color: var(--dark-text-secondary);
    font-size: 0.75rem;
    margin: 0;
    padding: 0;
    border: none;
}

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

.login-prompt-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    border-radius: 50%;
}

.login-prompt-icon svg {
    color: #10B981;
}

.login-prompt-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.login-prompt-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.login-prompt-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.login-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-prompt-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-prompt-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.login-prompt-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.login-prompt-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.login-prompt-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.login-prompt-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.login-prompt-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.download-success-content .login-prompt-icon {
    color: #10B981;
}

.download-success-content p strong {
    color: #ffffff;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .login-prompt-content {
        padding: 1.5rem;
    }
    
    .login-prompt-buttons {
        flex-direction: column;
    }
    
    .login-prompt-btn {
        width: 100%;
        text-align: center;
    }
    
    .download-modal-header {
        padding: 16px 16px 8px;
    }
    
    .download-success-icon {
        font-size: 1.5rem;
    }
    
    .download-success-title {
        font-size: 1.1rem;
    }
    
    .download-game-name {
        margin: 0 16px 6px;
        font-size: 0.95rem;
    }
    
    .download-platform-tag {
        margin: 0 16px 12px;
        font-size: 0.8rem;
    }
    
    .download-qrcode-container {
        padding: 12px;
        margin: 0 16px;
    }
    
    .download-qrcode-img {
        width: 150px;
        height: 150px;
    }
    
    .download-scan-tip {
        font-size: 0.85rem;
        margin: 10px 16px 4px;
    }
    
    .download-tip {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-bottom: 12px;
    }
}

/* ========================================
   防失联按钮
   ======================================== */
.contact-btn {
    position: fixed;
    right: 24px;
    bottom: 148px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
    border: 2px solid rgba(255, 179, 71, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
}

.contact-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.contact-btn-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.contact-btn-icon path {
    fill: #ffffff;
}

.contact-btn:hover .contact-btn-icon {
    transform: scale(1.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-btn {
        right: 16px;
        bottom: 120px;
        width: 48px;
        height: 48px;
    }
    
    .contact-btn-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        right: 12px;
        bottom: 106px;
        width: 44px;
        height: 44px;
    }
    
    .contact-btn-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: var(--dark-bg-card);
    border: 2px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    background: var(--dark-primary);
    border-color: var(--dark-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1);
}

.back-to-top-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.back-to-top:hover .back-to-top-icon path {
    fill: #ffffff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 60px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 12px;
        bottom: 50px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top-icon {
        width: 24px;
        height: 24px;
    }
}

.platform-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--tag-color, #6366f1);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.platform-tag-icon {
    font-size: 1rem;
}

.game-basic-info li strong {
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .game-basic-info li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    
    .game-basic-info li strong {
        min-width: 80px;
    }
}

/* Game Detail Two-Column Layout */
.game-detail-layout {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    align-items: flex-start;
}

.game-detail-main {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 0;
}

.game-detail-main .game-content,
.game-detail-main .game-tags,
.game-detail-main .game-screenshots,
.game-detail-main .game-specifications,
.game-detail-main .related-articles {
    flex: none !important;
    max-width: 100% !important;
}

.game-detail-sidebar .related-games {
    flex: none !important;
    max-width: 100% !important;
}

.game-detail-sidebar {
    flex: 0 0 calc(30% - 1.5rem);
    max-width: calc(30% - 1.5rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}

.game-detail-sidebar .related-games {
    margin: 0;
    padding: 1.25rem;
    border-radius: 14px;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.game-detail-sidebar .related-games h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dark-primary);
    text-align: center;
}

.game-detail-sidebar .related-games .games-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-detail-sidebar .related-games .game-card {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0;
    background: rgba(30, 36, 44, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.game-detail-sidebar .related-games .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
    border-color: var(--dark-primary);
}

.game-detail-sidebar .related-games .game-image {
    width: 100%;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.game-detail-sidebar .related-games .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-sidebar .related-games .game-info {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.game-detail-sidebar .related-games .game-info h3 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-detail-sidebar .related-games .game-price {
    font-size: 0.8rem;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Follow QQ Section */
.follow-qq-section {
    background: var(--dark-bg-card);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.follow-qq-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text-title);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dark-primary);
    text-align: center;
}

.follow-qq-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.follow-qq-carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    aspect-ratio: 16 / 9;
}

.follow-carousel-container {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.follow-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.follow-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.follow-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
}

.follow-qq-carousel:hover .follow-carousel-btn {
    opacity: 1;
}

.follow-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.follow-carousel-prev {
    left: 8px;
}

.follow-carousel-next {
    right: 8px;
}

.follow-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.follow-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-carousel-dot.active {
    background: var(--dark-primary);
    width: 20px;
    border-radius: 4px;
}

.follow-qq-text {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--dark-primary);
    font-weight: 600;
    padding: 8px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.follow-qq-link:hover .follow-qq-text {
    background: rgba(16, 185, 129, 0.15);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .game-detail-layout {
        flex-direction: column;
    }
    
    .game-detail-main {
        flex: 1;
        max-width: 100%;
    }
    
    .game-detail-sidebar {
        flex: 1;
        max-width: 100%;
        position: static;
    }
    
    .game-detail-sidebar .related-games .games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-detail-sidebar .related-games .game-card {
        flex-direction: column;
    }
    
    .game-detail-sidebar .related-games .game-image {
        width: 100%;
        height: 120px;
    }
}

/* Gallery Unified Carousel */
.gallery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-carousel-container {
    overflow: hidden;
    width: 100%;
}

.gallery-carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-carousel-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #000;
}

.gallery-slide-cover img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.gallery-slide-video .watermark-container {
    width: 100%;
    position: relative;
}

.gallery-slide-video video {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
    background: #000;
}

.gallery-slide-screenshot img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-carousel:hover .gallery-carousel-btn {
    opacity: 1;
}

.gallery-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-prev {
    left: 12px;
}

.gallery-carousel-next {
    right: 12px;
}

.gallery-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: rgba(30, 36, 44, 0.6);
}

.gallery-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-carousel-dot.active {
    background: var(--dark-primary);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .gallery-slide-video video {
        height: 220px;
    }
    
    .gallery-carousel-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

