/* 链接状态优化（遵循LVHA顺序）[5](@ref) */
a {
    text-decoration: none;
    color: inherit;
}

a:link,
a:visited {
    color: inherit;
}

a:hover {
    color: #D1FE17;
}

a:active {
    color: #b8e000;
}

body,
h1,
h2,
h5,
h3,
h4,
li,
ol,
p,
ul {
    margin: 0;
    padding: 0;
}

/* 基础变量和重置 */
:root {
    --base-unit: 8px;
    --primary-color: #638331;
    --accent-color: #D1FE17;
    --text-color: #F9FAFF;
}

@font-face {
    font-family: 'lunsisdemo';
    src: url('../fonts/luneisdemo-1jxlz.ttf') format('opentype');
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    background: #fafafa;
}

.detail-banner-ad {
    text-align: center;
    margin: 10px 0;
    font-size: 12px;
}



/* 页脚响应式设计 */
.footer_main {
    width: 100%;
    font-size: 1rem;
    padding: 20px 0;
}

.footer_content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.foot_pd {
    padding: 0.8rem 1rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.foot_pd:hover {
    color: #D1FE17;
}

/* 移动端页脚调整 */
@media (max-width: 768px) {
    .footer_content {
        gap: 10px;
    }

    .foot_pd {
        padding: 0.4rem 0.8rem;
    }
}

.play_game {
    width: 100%;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #cccccc;
    z-index: 9999;
}

.left_back {
    width: 65px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    position: fixed;
    border-radius: 0 50% 50% 0;
    top: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.left_back_image {
    width: 50px;
    height: 50px;
    margin-right: -20%;
    border-radius: 50%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 99;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
}

.swiper {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    margin: 14px 0;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-section {
    padding: 16px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.categories-img {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.cat-card {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
}

.cat-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    padding: 0 16px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    padding: 0 16px;
}

.game-item {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.game-item img {
    width: 100%;
    border-radius: 12px;
}

.title {
    margin-top: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}