
body {
    font-family: Arial, sans-serif;
    background-color: #00547c;
    color: #333333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 移动端头部 V8 --- */
.mobile-header-bar-v8 {
    display: none;
    background-color: #0080ff; /* 亮蓝色 */
    padding: 5px 10px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.mobile-header-bar-v8 .icon-v8 {
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.mobile-header-bar-v8 .yiv-logo-mobile-v8 {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 0 #333;
    margin: 0 auto;
}
.mobile-header-bar-v8 .yiv-logo-mobile-v8 span {
    color: #ffcc00; /* 黄色 Y */
}

/* 移动端搜索栏 V8 */
.mobile-search-bar-v8 {
    display: none;
    background-color: #0080ff;
    padding: 8px 10px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 40px;
    z-index: 90;
}
.mobile-search-bar-v8 input {
    flex-grow: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}
.mobile-search-bar-v8 button {
    background-color: #ffcc00;
    color: #333;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* 移动端侧边菜单 V8 */
#mobile-drawer-v8 {
    position: fixed;
    top: 40px;
    left: 0;
    width: 60%;
    height: calc(100% - 40px);
    background-color: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}
.drawer-item-v8 {
    display: block;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* --- PC 头部 V8 (包含搜索) --- */
.pc-top-nav-v8 {
    display: none;
    background-color: #0080ff; /* 亮蓝色 */
    color: white;
    padding: 8px 40px;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
}
.pc-top-nav-v8 .yiv-logo-pc-v8 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 0 #333;
    margin-right: 15px;
}
.pc-top-nav-v8 .yiv-logo-pc-v8 span {
    color: #ffcc00;
}
.pc-top-nav-v8 .nav-link-v8 {
    padding: 5px 8px;
    font-size: 13px;
    white-space: nowrap;
}
/* PC 搜索框样式 */
.pc-search-container-v8 {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
    flex-grow: 0.5; /* 允许搜索框占据一定空间 */
    max-width: 300px;
    margin-right: 15px;
}
.pc-search-container-v8 input {
    border: none;
    padding: 0 10px;
    font-size: 14px;
    flex-grow: 1;
    height: 100%;
    outline: none;
    color: #333;
}
.pc-search-container-v8 button {
    background-color: #f7f7f7; /* 浅灰色背景 */
    border: none;
    color: #333;
    padding: 0 10px;
    cursor: pointer;
    height: 100%;
    font-size: 16px;
}

.pc-top-nav-v8 .add-home-btn-v8 {
    margin-left: auto; /* 确保按钮推到最右边 */
    background-color: #ffcc00; /* 黄色按钮 */
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* 游戏区通用头部 V8 */
.game-section-header-v8 {
    background-color: #e0e0e0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 5px 0;
    margin-bottom: 5px;
    border-top: 1px solid #ccc;
}

/* --- 游戏网格和内容区 V8 --- */
.main-game-content-v8 {
    padding: 10px;
    background-color: #00547c;
}

.game-grid-v8 {
    display: grid;
    /* 移动端默认 3 列 */
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.game-tile-v8 {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
    position: relative;
}
.game-tile-v8 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* --- 底部信息块 V8 --- */
.info-block-v8 {
    background-color: #0080ff; /* 亮蓝色 */
    color: white;
    padding: 20px;
    font-size: 14px;
    position: relative;
}
.info-block-v8 p,
.info-block-v8 ol {
    margin: 5px 0;
}
.info-block-v8 .popular-games-list-v8 {
    padding-left: 20px;
}
.info-block-v8 .show-more-v8,
.info-block-v8 .show-less-v8 {
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    margin-top: 10px;
}

/* 返回顶部按钮 V8 */
.arrow-up-btn-v8 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #ffcc00; /* 黄色 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* --- 底部 Footer V8 --- */
.site-footer-v8 {
    background-color: #0080ff;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.site-footer-v8 a {
    color: white;
    margin: 0 5px;
    text-decoration: none;
}

/* --- 媒体查询：PC 端适配 V8 --- */
@media (min-width: 993px) {

    /* 隐藏移动端元素 */
    .mobile-header-bar-v8,
    .mobile-search-bar-v8 {
        display: none !important;
    }

    /* PC 元素显示和调整 */
    .pc-top-nav-v8 {
        display: flex !important;
    }
    .info-block-v8 {
        padding: 30px 40px;
    }
    .main-game-content-v8 {
        padding: 10px 40px;
    }
    .game-section-header-v8 {
        padding: 8px 40px;
    }

    /* PC 游戏网格调整 */
    .game-grid-v8 {
        grid-template-columns: repeat(10, 1fr); /* 10 列 */
        gap: 10px;
    }
    .arrow-up-btn-v8 {
        bottom: 20px;
    }
}

/* 强制确保移动端元素在小屏下显示 */
@media (max-width: 992px) {
    .mobile-header-bar-v8 {
        display: flex;
    }
    .pc-top-nav-v8 {
        display: none;
    }
    .arrow-up-btn-v8 {
        bottom: 70px;
    }
}