
body {
    font-family: 'Verdana', sans-serif;
    background-color: #ffffff;
    color: #1a1a2e; /* 略微调整颜色 */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}


.scroll-track-hider,
.nav-mobile-scroll,
.nav-desktop-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Desktop Topbar (默认显示) --- */
.topbar-desktop {
    display: flex;
    background-color: #1a1a2e;
    padding: 12px 40px;
    justify-content: space-between;
    align-items: center;
}
.topbar-desktop .site-logo img {
    height: 35px;
    width: auto;
    display: block;
}
.topbar-desktop .search-widget {
    flex-grow: 1;
    max-width: 350px;
    margin: 0 25px;
    position: relative;
}
.topbar-desktop .search-widget input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border-radius: 25px;
    border: none;
    background-color: #2c2c54;
    color: white;
    font-size: 15px;
}
.topbar-desktop .search-widget i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}
.topbar-desktop .auth-links {
    display: flex;
}
.topbar-desktop .auth-links a {
    padding: 9px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.topbar-desktop .app-install-btn {
    background-color: #5d5dff;
    color: white;
}
.topbar-desktop .user-login-btn {
    background-color: #f0f0f0;
    color: #1a1a2e;
}

/* Desktop Category Navigation */
.nav-desktop-scroll {
    background-color: #ffffff;
    padding: 10px 40px;
    display: flex;
    overflow-x: scroll;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.nav-button-desktop {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    background-color: #f0f0f0;
    color: #1a1a2e;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    gap: 10px;
}

/* --- Mobile Header (默认隐藏) --- */
#mobile-nav-top {
    display: none;
    background-color: #1a1a2e;
    padding: 12px 15px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
#mobile-nav-top .menu-toggle, #mobile-nav-top .search-trigger {
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 51;
}
#mobile-nav-top .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
#mobile-nav-top .site-logo img {
    height: 30px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* Mobile Menu Drawer */
#mobile-slide-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
#mobile-slide-drawer .drawer-close-btn {
    color: white;
    font-size: 26px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 52px;
    z-index: 201;
}
#mobile-slide-drawer .drawer-search-area {
    margin-bottom: 25px;
    margin-top: 25px;
    position: relative;
    padding-right: 35px;
}
#mobile-slide-drawer .drawer-search-area input {
    width: 79%;
    padding: 12px 55px 12px 20px;
    border-radius: 30px;
    border: none;
    background-color: white;
    color: #1a1a2e;
}
#mobile-slide-drawer .drawer-search-area i {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
#mobile-slide-drawer .drawer-nav-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#mobile-slide-drawer button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 20px;
    text-align: left;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}
#mobile-slide-drawer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Mobile Category Navigation (默认隐藏) */
.nav-mobile-scroll {
    display: none;
    background-color: #ffffff;
    padding: 12px 10px;
    overflow-x: scroll;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}
/* Mobile Category Card */
.category-item-mobile {
    background-color: #5d5dff;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    min-width: 85px;
    height: 85px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
}
.category-item-mobile i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* --- 主体内容样式 --- */
.main-container-pad {
    padding: 25px 40px;
}
.section-header {
    margin-top: 20px;
    margin-bottom: 15px;
}
.section-header h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}
.section-header p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 15px;
}
.tag-filter-list {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.tag-filter-list span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.h-scroll-panel {
    display: block;
    overflow-x: auto;
    padding-bottom: 20px;
    flex-shrink: 0;
    cursor: grab;
    margin-bottom: 35px;
}
.scroll-track-hider {
    display: flex;
    gap: 20px;
    width: fit-content;
    min-width: 1800px; /* PC 默认最小宽度 */
}

/* 游戏卡片基础样式 (PC 默认) */
.game-display-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    width: 140px; /* PC 默认宽度 */
    flex-shrink: 0;
    display: block;
    transition: transform 0.1s, box-shadow 0.1s;
}
.game-display-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.card-visual-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.card-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 游戏卡片内容区域 */
.card-details-box {
    padding: 12px;
    overflow: hidden;
    text-align: left;
}

.card-details-box h4 {
    font-size: 15px;
    margin: 0 0 5px 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-details-box p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    height: 32px;
    overflow: hidden;
    line-height: 1.25;
}
.card-details-box .card-tag-group {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
}
.card-details-box .card-tag-group span {
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 12px;
    line-height: 1;
}

/* 垂直网格布局 */
.grid-layout-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}
.grid-layout-vertical .game-display-card {
    width: auto;
}


/* 动作按钮 */
.site-action-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 60px;
}
.site-action-controls button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.site-action-controls .random-select-btn {
    background-color: #5d5dff;
    color: white;
}
.site-action-controls .scroll-top-btn {
    background-color: #f0f0f0;
    color: #1a1a2e;
}

/* 网站描述块 */
.info-panel-site {
    background-color: #f8f8ff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.info-panel-site h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.info-panel-site p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* --- Footer 样式 --- */
.page-footer-base {
    background-color: #1a1a2e;
    color: white;
    padding: 50px 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    text-align: center;
    justify-content: space-between;
}
.page-footer-base .site-logo img {
    height: 60px;
    display: block;
}
.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    font-size: 15px;
    flex-grow: 1;
}
.social-link-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 22px;
}
.social-link-icons a {
    color: white;
    transition: color 0.2s;
}
.social-link-icons a:hover {
    color: #5d5dff;
}

/* --- 媒体查询：移动端适配 (屏幕宽度小于等于 992px) --- */
@media (max-width: 992px) {

    /* 调整主要内容的 padding */
    .main-container-pad {
        padding: 15px 15px;
    }

    /* 调整 Footer 布局 */
    .page-footer-base {
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .footer-nav-links, .social-link-icons {
        justify-content: flex-start;
        width: 100%;
    }

    /* 强制 PC 元素隐藏 */
    .topbar-desktop, .nav-desktop-scroll {
        display: none;
    }
    /* 强制 Mobile 元素显示 */
    #mobile-nav-top, .nav-mobile-scroll {
        display: flex !important;
    }

    /* 移动端游戏卡片尺寸调整 */
    .game-display-card {
        width: 110px;
        border-radius: 12px;
    }
    .scroll-track-hider {
        min-width: auto;
        gap: 15px;
    }

    /* 移动端卡片内容优化 */
    .card-details-box {
        padding: 10px;
    }
    .card-details-box h4 {
        font-size: 14px;
    }
    .card-details-box p {
        font-size: 11px;
        height: 28px;
    }
    .card-details-box .card-tag-group span {
        padding: 2px 5px;
        font-size: 10px;
    }

    /* 移动端垂直网格布局卡片最小宽度调整 */
    .grid-layout-vertical {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 15px;
    }
}
