/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 100px; /* 根据header高度调整 */
    padding-top: 20px;
}

/* Header & Navigation */
.header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand a {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-brand a:hover {
    color: #e74c3c;
    transform: scale(1.05);
}

.nav-brand a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-brand a:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* 确保在移动端也能正确显示 */
    transition: all 0.3s ease;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Dropdown Menu Styles */
.nav-item-has-dropdown {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    border-top: 3px solid #e74c3c;
}

.nav-item-has-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: #e74c3c;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.nav-submenu a:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 1.5rem;
}

.nav-submenu a:hover::before {
    height: 70%;
}

.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: 1.5rem; /* 增加与导航菜单的间距 */
}

.nav-lang-item > a {
    color: #0c10d3; /* 改变语言菜单主链接的颜色为蓝色 */
    background-color: rgba(52, 152, 219, 0.1); /* 添加淡蓝色背景 */
    border-radius: 4px;
}

.nav-lang-item > a:hover {
    color: #2980b9; /* 悬停时加深蓝色 */
    background-color: rgba(52, 152, 219, 0.2); /* 悬停时加深背景色 */
}

.nav-lang-item .nav-submenu {
    border-top: 3px solid #3498db; /* 改变下拉菜单顶部边框颜色为蓝色 */
}

.nav-lang-item .nav-submenu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-lang-item .nav-submenu a:hover {
    background: #f8f9fa;
    color: #3498db; /* 改变悬停时的颜色为蓝色 */
    padding-left: 1.5rem;
}

.nav-lang-item .nav-submenu a:hover::before {
    height: 70%;
    background: #3498db; /* 改变悬停时的指示条颜色为蓝色 */
}

.nav-lang-item .nav-submenu a.active {
    color: #0c10d3; /* 改变激活状态的颜色为蓝色 */
    font-weight: bold;
}

.nav-lang-item .nav-submenu a.active::before {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db; /* 改变激活状态勾选标记的颜色为蓝色 */
}

.nav-lang-item .nav-submenu a.active::before {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #9d62dd 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

/* 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: 80px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
        margin: 0;
        display: none;
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .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.5rem 0;
        padding: 0.25rem 0;
    }
    
    .nav-submenu a {
        display: block;
        padding: 0.5rem 1rem;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-submenu a:hover {
        background-color: #e74c3c;
        color: white;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        padding-left: 1rem;
        display: none; /* 默认隐藏子菜单 */
        width: 100%;
        text-align: left;
    }
    
    /* 将多语言菜单移动到导航菜单内部 */
    .nav-lang-item {
        margin: 1rem 0;
        padding: 0.5rem 0;
        background: #f8f9fa;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    /* 语言下拉菜单在移动端的样式 */
    .nav-lang-item .nav-submenu {
        background: #fff;
        padding: 0;
        margin-top: 0.5rem;
        display: none;
    }
    
    .nav-lang-item.active .nav-submenu {
        display: block;
    }
    
    .nav-lang-item .nav-submenu a {
        display: block;
        padding: 0.7rem 1.2rem;
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-lang-item .nav-submenu a.active {
        color: #0c10d3;
        font-weight: bold;
    }
    
    .nav-lang-item .nav-submenu a.active::before {
        content: '✓';
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #e74c3c;
    }
    
    /* 确保导航菜单在移动端正确显示 */
    .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(to bottom, #033361 0%, #022247 100%);
    color: white;
    padding: 0px 0 10px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, transparent 49.5%, #fff 49.5%, #fff 50.5%, transparent 50.5%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Call to Action Section */
.cta-section {
    padding: 40px 0;
    background: #f8f9fa;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 添加按钮样式 */
.btn-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

/* Products Page Styles */
.products-page {
    margin: 2rem 0;
}

.products-main-full {
    width: 100%;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.breadcrumb span:last-child {
    color: #333;
    font-weight: 500;
}

/* 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;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.filter-left {
    flex: 1;
}

.filter-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.filter-tab.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

/* 更多分类功能样式 */
.filter-tab-more {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-tab-more .filter-tab {
    margin: 0;
}

.filter-tab-more .more-categories-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.more-categories-dropdown .filter-tab {
    display: block;
    padding: 8px 16px;
    border-radius: 0;
    border: none;
    margin: 0;
    text-align: left;
    width: 100%;
}

.more-categories-dropdown .filter-tab:hover {
    background: #f5f5f5;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f5f5f5;
}

.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.games-main-full {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.game-card {
    background: #fff;
    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 #eaeaea;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-image {
    position: relative;
    height: 140px;
    
    background: #f0f0f0;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-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;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    flex: 1 0 100%;
    position: relative;
}

.game-info h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.game-info a {
    text-decoration: none !important;
}

.game-info h3 a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s;
    display: block;
    width: 100%;
}

.game-info h3 a:hover {
    color: #3498db;
}

.game-description {
    color: #666;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 0 0 auto;
    width: 100%;
}

.game-spec {
    margin-bottom: 10px;
    font-size: 11px;
    color: #777;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-category {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.game-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.game-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* 游戏标签 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-tag {
    font-size: 10px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 8px;
}

/* 游戏评分 */
.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-rating .stars {
    color: #ffc107;
    font-size: 12px;
}

.game-rating .score {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* 游戏大小和下载量 */
.game-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #777;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 列表视图样式 */
.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: 160px !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;
}

.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-bottom: 8px !important;
    display: flex !important;
    gap: 15px !important;
}

.games-grid.list-view .game-tags {
    margin-bottom: 8px !important;
}

.games-grid.list-view .game-meta {
    margin-top: auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.games-grid.list-view .game-actions {
    margin-top: 0 !important;
    display: flex !important;
    gap: 10px !important;
}

.games-grid.list-view .game-rating {
    margin-bottom: 8px !important;
}

.games-grid.list-view .game-overlay {
    display: none !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: 140px !important;
    
    background: #f0f0f0;
}

.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 {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.game-gallery {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.game-detail .game-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 350px;
}

/* 全宽内容区域 */
.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: #fff;
    box-shadow: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    min-width: 100%;
    min-height: 100%;
}

.main-image img:hover {
    transform: scale(1.02);
}

/* Game Info Section Styles */
.game-info h1 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #2c3e50;
    font-weight: 700;
}

.game-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.7rem;
}

.game-description {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #555;
    margin-bottom: 0.7rem;
    max-height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.game-basic-info {
    background: #f8f9fa;
    padding: 0.7rem;
    border-radius: 0;
    margin-bottom: 0.7rem;
}

.game-basic-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #2c3e50;
}

.game-basic-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.game-basic-info li {
    padding: 0.2rem 0.4rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    flex: 0 0 calc(50% - 0.15rem);
    background: #fff;
    border-radius: 0;
}

.game-basic-info li:last-child {
    border-bottom: none;
}

/* Download Section */
.download-section {
    margin-top: 0.7rem;
    padding: 0.7rem;
    background-color: #f8f9fa;
    border-radius: 0;
    text-align: center;
    border: none;
}

.download-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
    margin: 4px auto;
    display: block;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.no-download {
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
    margin: 4px auto;
    display: block;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: default;
}

/* Game Content Section */
.game-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.game-content h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.content-wrapper {
    line-height: 1.8;
    color: #555;
}

/* Game Tags */
.game-tags {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Game Screenshots */
.game-screenshots {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.game-screenshots h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 300px;
    width: 300px;
    height: 150px;
    cursor: pointer;
}

.carousel-slide img {
    width: 300px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #e74c3c;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #e74c3c;
}

/* Screenshot Lightbox */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.screenshot-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #e74c3c;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Game Tags */
.game-tags {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.game-tags h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.3rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Related Games */
.related-games {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-games h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
}

/* Game Specifications */
.game-specifications {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.game-specifications h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid #e74c3c;
    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 #ddd;
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 30%;
    color: #2c3e50;
}

.specs-table td {
    background: #fff;
    color: #555;
}

/* Game Info Section */
.game-detail .game-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 0px;
}

.game-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.game-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.game-info .info-item:last-child {
    border-bottom: none;
}

.game-info .info-label {
    font-weight: 600;
    color: #666;
}

.game-info .info-value {
    color: #333;
}

/* 响应式分页调整 */
@media (max-width: 768px) {
    /* Game Detail Page Responsive Layout */
    .game-gallery,
    .game-info {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .game-detail {
        margin: 1rem 0;
    }
    
    .game-gallery,
    .game-info,
    .game-content,
    .game-tags,
    .game-screenshots,
    .game-specifications,
    .related-games {
        padding: 1rem;
    }
    
    .game-detail .game-info {
        height: auto;
    }
    
    .game-gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .game-detail .game-info {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .game-info h1 {
        font-size: 1.5rem;
    }
    
    .game-price {
        font-size: 1.4rem;
    }
    
    .game-content h3,
    .game-tags h3,
    .game-specifications h2,
    .related-games h2 {
        font-size: 1.3rem;
    }
    
    .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;
    }
}

/* 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: #2c3e50;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-container .tag {
    background: #e74c3c;
    color: white;
    border: none;
    transition: all 0.3s;
    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-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.related-articles h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.related-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.related-articles .article-card {
    background: #fff;
    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 #eaeaea;
    display: flex;
    flex-direction: column;
}

.related-articles .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.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: #2c3e50;
    text-decoration: none !important;
    transition: color 0.3s;
}

.related-articles .article-info h3 a:hover {
    color: #e74c3c;
    text-decoration: none !important;
}

.related-articles .article-excerpt {
    color: #666;
    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: #999;
    font-size: 0.75rem;
}

/* Related Games in Article Detail */
.related-games {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.related-games h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.related-games .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.related-games .game-card {
    background: #fff;
    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 #eaeaea;
    display: flex;
    flex-direction: column;
}

.related-games .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-games .game-image {
    position: relative;
    height: 140px;
    background: #f0f0f0;
    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-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-games .game-card:hover .game-overlay {
    opacity: 1;
}

.related-games .game-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-games .game-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-games .game-info h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.related-games .game-info h3 a:hover {
    color: #e74c3c;
}

.related-games .game-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.related-games .game-description {
    color: #666;
    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: 3rem;
    color: #666;
}

.no-articles h3,
.no-products h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 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;
    }
    
    .game-actions .btn {
        display: inline-block;
        width: auto;
        margin-bottom: 0;
    }
    
    .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;
}

.content-wrapper {
    line-height: 1.8;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper h2, 
.content-wrapper h3, 
.content-wrapper h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.content-wrapper ul, 
.content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-wrapper blockquote {
    border-left: 4px solid #e74c3c;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 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;
}