@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;700&display=swap');

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #d4af37;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('path/to/chinese-pattern-background.jpg');
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden; 
}

.container {
    width: 95%;
    max-width: 1600px;
    margin: auto;
    overflow: hidden;
    padding: 10px;
}

header {
    background: url('../img_art_videocover_6.png') no-repeat center center;
    background-size: cover;
    color: #d4af37;
    padding-top: 20px;
    min-height: 60px;
    border-bottom: #8b0000 2px solid;
}

header h1 {
    margin: 0;
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

nav {
    background: rgba(52, 73, 94, 0.8);
    padding: 10px 0;
    z-index: 1000;
    width: 100%;
    transition: position 0.3s ease;
}

nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    display: inline;
    margin: 0 10px;
}

nav a {
    color: #d4af37;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

nav a:hover {
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
    background-color: rgba(139, 0, 0, 0.2);
}

main {
    flex-grow: 1;
    padding: 20px 0;
}
.floor {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    width: 80%; /* 将卡片宽度改为80% */
    margin-left: auto;
    margin-right: auto;
}

.floor:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: rgba(0, 0, 0, 0.9);
}

.floor h2 {
    color: #ffd700;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 15px;
    letter-spacing: 1px;
}


.floor ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.floor ul li {
    margin-bottom: 0; /* 移除之前的下边距 */
}

.floor ul li a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(139, 0, 0, 0.6);
    font-size: 1em; /* 稍微减小字体大小 */
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center; /* 文字居中 */
    height: 100%; /* 使链接填满整个网格单元格 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #ffd700;
    background: rgba(139, 0, 0, 0.3);
    transform: translateY(-3px); /* 改为向上移动而不是向右 */
}

.news-feed {
    max-height: none; /* 移除最大高度限制 */
    overflow-y: visible; /* 移除滚动条 */
    margin-top: 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.4);
    padding-top: 15px;
}

/* 移除滚动条相关样式 */
.news-feed::-webkit-scrollbar,
.news-feed::-webkit-scrollbar-track,
.news-feed::-webkit-scrollbar-thumb,
.news-feed::-webkit-scrollbar-thumb:hover {
    display: none;
}

.news-item {
    margin-bottom: 15px;
    font-size: 0.95em; /* 稍微增加字体大小 */
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    line-height: 1.6;
}

.news-item .date {
    font-size: 0.8em;
    color: #ffd700;
    font-weight: bold;
}

.news-item a {
    font-size: 0.8em;
    color: #ffd700;
}

footer {
    background: rgba(44, 62, 80, 0.9);
    color: #ffd700;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.language-selector {
    text-align: right;
    padding: 10px;
}

#language-select {
    padding: 6px;
    border-radius: 5px;
    background-color: rgba(236, 240, 241, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
    font-family: 'Noto Serif SC', serif;
    font-size: 1em;
}

.steam-stats {
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 15px;
    font-size: 1em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
}

.steam-stats span {
    margin-right: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.floor .news-feed {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.activation-codes a{
    font-size: 0.8em!important;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 8px 0;
    }

    .steam-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .steam-stats span {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .language-selector {
        text-align: left;
        margin-top: 15px;
    }

    .floor {
        padding: 20px;
        width: 90%; /* 在移动设备上稍微增加宽度 */
    }

    .floor h2 {
        font-size: 1.8em;
    }

    .floor ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 在移动设备上减小最小宽度 */
    }

    .floor ul li a {
        font-size: 0.9em; /* 在移动设备上进一步减小字体大小 */
        padding: 8px 10px; /* 在移动设备上减小内边距 */
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 550px; /* Set a fixed height for all cards */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
    color: #d4af37;
}

.product-card p {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 15px;
    color: #cccccc;
    flex-grow: 1; /* Allow description to grow and push button to bottom */
    overflow: hidden; /* Hide overflow text */
}

.buy-button {
    background-color: #d4af37;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px; /* Position button at the bottom */
    left: 50%;
    transform: translateX(-50%);
}

.buy-button:hover {
    background-color: #b8960f;
}