body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar h1 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #575757;
}

.content {
    flex-grow: 1;
    padding: 0;
    min-width: 0;
}

section {
    padding: 2rem;
    border-bottom: 1px solid #ddd;
}

h2 {
    color: #222;
}

/* 主题图片样式 */
.theme-image-container {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
    background-color: #f8f9fa;
    padding: 20px;
}

.theme-image {
    
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* 基本信息和游戏描述容器 */
.info-description-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.basic-info, .game-description {
    flex: 1;
}

.basic-info h2, .game-description h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #e94560;
    padding-bottom: 0.5rem;
}

.basic-info ul {
    list-style: none;
    padding: 0;
}

.basic-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.basic-info li:last-child {
    border-bottom: none;
}

.basic-info strong {
    color: #e94560;
    min-width: 80px;
    display: inline-block;
}

.game-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

/* 下载区域样式 */
#download a {
    color: #455ee9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

#download a:hover {
    text-decoration: underline;
}

/* 购买区块样式 - 沿用其他section的样式 */
#purchase h2 {
    color: #222;
}

/* Steam小部件样式 */
.steam-widget-container {
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.steam-widget {
    width: 100%;
    max-width: 646px;
    height: 190px;
    border: none;
}

.video-container {
    position: relative;
    width: 50%;
    height: auto;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin: 0 auto;
    padding-bottom: 28.125%; /* 16:9 比例的50% */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-gallery, .logo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img, .logo-gallery img {
    width: 30%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover, .logo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

/* 图片浮层样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #e94560;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(233, 69, 96, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.image-modal-nav:hover {
    background: rgba(233, 69, 96, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #222;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        width: 100%;
    }
    
    .info-description-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .basic-info, .game-description {
        width: 100%;
    }
    
    .theme-image-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .theme-image {
        width: 80%;
        max-width: 100%;
        max-height: 100%;
    }
    
    .video-container {
        width: 80%;
        padding-bottom: 45%; /* 16:9 比例的80% */
    }
    
    .image-gallery img, .logo-gallery img {
        width: 45%;
    }
    
    .steam-widget {
        max-width: 100%;
        height: 150px;
    }
}
