/* 响应式适配CSS - PC端和H5端 */

/* 基础响应式设置 */
.wrap_w {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 平板端适配 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .wrap_w {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 头部适配 */
    .header {
        height: auto;
        padding: 15px 0;
    }
    .header .logo {
        width: 150px;
        height: 50px;
        margin: 0;
    }
    .header-search {
        width: 300px;
        margin: 10px 50px 0 150px;
    }
    .header-flash {
        width: 280px;
        height: 70px;
    }
    .header-flash img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 菜单适配 */
    .menu ul {
        height: auto;
        line-height: normal;
    }
    .menu ul li {
        width: 16.66%;
        height: auto;
    }
    .menu ul li a {
        font-size: 14px;
        padding: 0 10px;
        height: 50px;
        line-height: 50px;
        white-space: nowrap;
    }

    /* 第一列: 轮播图和头条 */
    .col_1 .l {
        width: 68%;
        height: auto;
    }
    .slide-cont {
        width: 100%;
        height: 280px;
    }
    .slide-item img {
        width: 100%;
        height: 280px;
    }
    .slide-txt, .slide-mask {
        width: 100%;
    }
    .col_1 .headlines {
        width: 32%;
    }
    .headlines h3 a {
        font-size: 16px;
    }
    .headlines p {
        width: 90%;
        font-size: 12px;
    }
    .headlines .hl3 li {
        width: 90%;
        font-size: 12px;
    }

    /* 推荐游戏 */
    .col_2 ul {
        width: 100%;
    }
    .col_2 li {
        width: 30%;
        height: 180px;
        margin: 15px 1.5% 0 0;
    }
    .col_2 li:nth-child(4n) {
        margin-right: 1.5%;
    }
    .col_2 li img.gpic {
        width: 100%;
        height: 140px;
    }
    .col_2 li .bg, .col_2 li .img_hover {
        width: 100%;
        height: 140px;
    }
    .col_2 li .img_hover {
        height: 180px;
    }

    /* 热门游戏 */
    .col_3 .l {
        width: 68%;
    }
    .col_3 .mcs dl {
        width: 32%;
        padding: 20px 0 20px 15px;
    }
    .col_3 .mcs dt img {
        width: 60px;
    }
    .col_3 .mcs dd h3 {
        font-size: 14px;
    }
    .col_3 .r {
        width: 30%;
    }

    /* 活动 */
    .col_4 .l {
        width: 68%;
    }
    .col_4 .l ul {
        width: 100%;
    }
    .col_4 .l li {
        width: 30%;
        margin: 15px 1.5% 0 0;
    }
    .col_4 .l li:nth-child(4n) {
        margin-right: 1.5%;
    }
    .col_4 .l li img.gpic {
        width: 100%;
        height: 140px;
    }
    .col_4 .l li p, .col_4 .l li .cover {
        width: 100%;
    }
    .col_4 .r {
        width: 30%;
    }

    /* 悬浮窗口 */
    .vivo-search {
        height: 80px;
        background-size: contain;
    }
    .vivo-search .guide-app-link {
        width: 600px;
        top: -25px;
    }
}

/* 手机端适配 (最大768px) */
@media screen and (max-width: 768px) {
    /* 通用样式 */
    body {
        font-size: 14px;
        background: #f8f9fa;
    }
    .wrap_w {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    .main {
        margin-top: 10px;
    }

    /* 顶部栏 */
    .topbar {
        height: auto;
        padding: 8px 0;
        display: none;
    }
    .topleft {
        display: none;
    }
    .top {
        float: none;
        text-align: center;
    }

    /* 头部 */
    .header {
        height: auto;
        padding: 12px;
        background: #fff;
        box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    }
    .header .logo {
        width: 120px;
        height: 42px;
        margin: 0;
        float: none;
    }
    .header .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .header-search {
        width: 100%;
        margin: 10px 0 0 0;
        float: none;
    }
    .header-flash {
        display: none;
    }
    .searchbar {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 8px;
        overflow: visible;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: box-shadow 0.3s;
    }
    .searchbar:focus-within {
        box-shadow: 0 4px 16px rgba(220,45,17,0.15);
    }
    .searchstyle {
        flex: 1;
        height: 44px;
        border: 2px solid #e8e8e8;
        border-right: none;
        border-radius: 8px 0 0 8px;
        padding: 0 14px;
        font-size: 14px;
        background: #fff;
        color: #333;
        outline: none;
        transition: border-color 0.3s, box-shadow 0.3s;
    }
    .searchstyle::placeholder {
        color: #999;
    }
    .searchstyle:focus {
        border-color: #DC2D11;
    }
    .searchebtn {
        height: 44px;
        font-size: 14px;
        border-radius: 0 8px 8px 0;
        padding: 0 24px;
        background: linear-gradient(135deg, #DC2D11 0%, #e6452f 100%);
        border: 2px solid #DC2D11;
        color: #fff;
        font-weight: 500;
        transition: all 0.3s;
        cursor: pointer;
        box-shadow: none;
    }
    .searchebtn:hover {
        box-shadow: 0 2px 8px rgba(220,45,17,0.3);
    }
    .searchebtn:active {
        transform: scale(0.98);
    }

    /* 菜单 - 改为水平滚动 */
    .menu {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #DC2D11;
        box-shadow: 0 2px 8px rgba(220,45,17,0.2);
    }
    .menu ul {
        height: 46px;
        line-height: 46px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
    }
    .menu ul::-webkit-scrollbar {
        display: none;
    }
    .menu ul li {
        float: none;
        display: inline-block;
        height: 46px;
        min-width: 75px;
        text-align: center;
    }
    .menu ul li a {
        font-size: 14px;
        padding: 0 14px;
        height: 46px;
        line-height: 46px;
        color: #fff;
        opacity: 0.85;
        transition: opacity 0.3s;
    }
    .menu ul li a:active {
        opacity: 1;
    }
    .menu ul li.cur a {
        background: #BE1A00;
        opacity: 1;
        font-weight: 500;
    }

    /* 第一列: 轮播图和头条 - 改为垂直排列 */
    .col_1 .l {
        width: 100%;
        height: auto;
        float: none;
        margin-bottom: 10px;
        background: none;
        padding: 0;
    }
    .slide {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        margin: 0 10px;
    }
    .slide-cont {
        width: 100%;
        height: 175px;
    }
    .slide-item img {
        width: 100%;
        height: 175px;
        object-fit: cover;
    }
    .slide-txt, .slide-mask {
        width: 100%;
        height: 44px;
        line-height: 44px;
    }
    .slide-tit {
        font-size: 13px;
        padding-left: 14px;
        font-weight: 500;
    }
    .slide-nav {
        bottom: 14px;
        right: 14px;
        padding: 6px 10px;
        background: rgba(0,0,0,0.3);
        border-radius: 12px;
    }
    .slide-nav a {
        width: 6px;
        height: 6px;
        margin: 0 4px;
        background: rgba(255,255,255,0.5);
    }
    .slide-nav .nownav {
        width: 18px;
        border-radius: 3px;
        background: #fff;
    }
    #prev, #next {
        width: 32px;
        height: 55px;
        top: 60px;
        opacity: 0.7;
        transition: opacity 0.3s;
    }
    #prev:hover, #next:hover {
        opacity: 1;
    }
    
    /* 头条区域 - 卡片式设计 */
    .col_1 .headlines {
        width: 100%;
        float: none;
        border: none;
        background: #fff;
        padding: 14px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        margin: 0 10px 10px;
    }
    .headlines h3 a {
        font-size: 15px;
        height: auto;
        line-height: 26px;
        text-align: left;
        padding: 0;
        color: #333;
        font-weight: 600;
        transition: color 0.3s;
    }
    .headlines h3 a:hover {
        color: #DC2D11;
    }
    .headlines p {
        width: 100%;
        font-size: 13px;
        height: auto;
        line-height: 22px;
        white-space: normal;
        margin: 10px 0;
        color: #666;
    }
    .headlines p span {
        float: none;
        color: #DC2D11;
        font-weight: 500;
    }
    .headlines .hl3 {
        margin: 12px 0 0 0;
        padding: 12px 0 0 0;
        border-top: 1px solid #f0f0f0;
    }
    .headlines .hl3 li {
        width: 100%;
        height: auto;
        line-height: 30px;
        white-space: normal;
        overflow: visible;
        font-size: 13px;
        display: flex;
        align-items: center;
    }
    .headlines .hl3 li em {
        width: 42px;
        height: 22px;
        line-height: 22px;
        font-size: 11px;
        margin-right: 10px;
        border-radius: 4px;
        font-weight: 500;
    }

    /* 标题样式 */
    .title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px;
        background: #fff;
        margin-bottom: 10px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .title span {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        position: relative;
        padding-left: 12px;
    }
    .title span::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        background: #DC2D11;
        border-radius: 2px;
    }
    .title em a {
        font-size: 12px;
        padding: 0 10px;
        color: #999;
        transition: color 0.3s;
    }
    .title em a:hover {
        color: #DC2D11;
    }

    /* 推荐游戏 - 网格布局 */
    .col_2 {
        margin-top: 0;
    }
    .col_2 ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    .col_2 li {
        width: 100%;
        height: auto;
        margin: 0;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .col_2 li:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .col_2 li img.gpic {
        width: 100%;
        height: 135px;
        object-fit: cover;
    }
    .col_2 li p {
        font-size: 14px;
        line-height: 40px;
        height: 40px;
        padding: 0 10px;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }
    .col_2 li .bg, .col_2 li .img_hover {
        display: none;
    }

    /* 热门游戏 - 垂直排列 */
    .col_3 {
        margin-top: 15px;
    }
    .col_3 .l {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    .col_3 .mcs {
        border: none;
        padding: 0 10px;
    }
    .col_3 .mcs dl {
        width: 100%;
        height: auto;
        padding: 14px;
        border: none;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }
    .col_3 .mcs dt {
        width: 70px;
        flex-shrink: 0;
    }
    .col_3 .mcs dt img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        object-fit: cover;
    }
    .col_3 .mcs dd {
        width: calc(100% - 80px);
    }
    .col_3 .mcs dd h3 {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 600;
        color: #333;
    }
    .col_3 .mcs dd .gamestyle {
        padding: 4px 0 10px 0;
        color: #999;
        font-size: 12px;
    }
    .col_3 .mcs dd .gamedown {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .col_3 .mcs dd .gamedown a {
        font-size: 12px;
        padding: 6px 14px;
        height: 30px;
        line-height: 18px;
        border-radius: 6px;
        text-align: center;
        transition: opacity 0.3s;
    }
    .col_3 .mcs dd .gamedown a:active {
        opacity: 0.8;
    }
    .col_3 .r {
        width: 100%;
        float: none;
        padding: 0 10px;
    }
    .col_3 .r .tabs {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        overflow: hidden;
    }
    .col_3 .r .tabNavigation {
        border-bottom: 1px solid #f0f0f0;
    }
    .col_3 .r .tabNavigation li {
        width: 33.33%;
        text-align: center;
    }
    .col_3 .r .tabNavigation li.big {
        font-size: 16px;
        font-weight: 600;
        color: #DC2D11;
    }
    .col_3 .r .tabNavigation li.nor a {
        font-size: 13px;
        color: #999;
        transition: color 0.3s;
    }
    .col_3 .r .tabNavigation li.nor a.on {
        color: #DC2D11;
        font-weight: 600;
    }
    .col_3 .r .tabcon {
        border: none;
        margin-top: 0;
    }
    .col_3 .r .tabcon ul {
        height: auto;
        max-height: 380px;
        overflow-y: auto;
        padding: 0;
    }
    .col_3 .r .tabcon ul::-webkit-scrollbar {
        width: 4px;
    }
    .col_3 .r .tabcon ul::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 2px;
    }
    .col_3 .r .game-package-now {
        padding: 12px 14px;
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .col_3 .r .game-package-now a.name {
        font-size: 13px;
        color: #333;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }
    .col_3 .r .game-package-now span a {
        padding: 5px 14px;
        font-size: 12px;
        transition: opacity 0.3s;
    }
    .col_3 .r .game-package-now span a:active {
        opacity: 0.8;
    }
    .col_3 .r .tabcon dl {
        padding: 12px 14px;
        background: none;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f5f5f5;
    }
    .col_3 .r .tabcon dl:last-child {
        border-bottom: none;
    }
    .col_3 .r .tabcon dl dt {
        width: 58px;
        height: 58px;
        flex-shrink: 0;
    }
    .col_3 .r .tabcon dl dt img {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        object-fit: cover;
    }
    .col_3 .r .tabcon dl dd {
        width: calc(100% - 68px);
    }
    .col_3 .r .tabcon dl dd h3 {
        font-size: 14px;
        margin-bottom: 4px;
        font-weight: 500;
    }
    .col_3 .r .tabcon dl dd p {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
    }
    .col_3 .r .tabcon dl dd a.package-btn {
        position: static;
        padding: 5px 14px;
        font-size: 12px;
        margin: 0;
        transition: opacity 0.3s;
    }
    .col_3 .r .tabcon dl dd a.package-btn:active {
        opacity: 0.8;
    }
    .col_3 .r #kaifu dl {
        display: flex;
        padding: 12px 14px;
    }
    .col_3 .r #kaifu dl dd p {
        margin-top: 2px;
        font-size: 12px;
        line-height: 1.6;
    }
    .col_3 .r #kaifu li {
        border-bottom: none;
    }

    /* 活动 */
    .col_4 {
        margin-top: 15px;
    }
    .col_4 .l {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    .col_4 .l .lcons {
        border: none;
        padding: 0 10px;
    }
    .col_4 .l ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .col_4 .l li {
        width: 100%;
        height: auto;
        margin: 0;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .col_4 .l li:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .col_4 .l li img.gpic {
        width: 100%;
        height: 108px;
        object-fit: cover;
    }
    .col_4 .l li p {
        width: 100%;
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }
    .col_4 .l li p a {
        color: #333;
        transition: color 0.3s;
    }
    .col_4 .l li p a:hover {
        color: #DC2D11;
    }
    .col_4 .l li .cover {
        display: none;
    }
    .col_4 .r {
        width: 100%;
        float: none;
        padding: 0 10px;
    }
    .col_4 .r .cons {
        height: auto;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .col_4 .r .cons .mc {
        height: auto;
        padding: 18px 0 18px 58px;
        background-position: 0 18px;
        background-size: 42px 42px;
        margin: 0 14px;
        border-bottom: 1px solid #f0f0f0;
    }
    .col_4 .r .cons .mc span {
        font-size: 20px;
        font-weight: 700;
        color: #DC2D11;
    }
    .col_4 .r .cons .mc p {
        font-size: 12px;
        color: #999;
        margin-top: 6px;
    }
    .col_4 .r .cons .ot {
        font-size: 13px;
        padding: 14px;
        line-height: 2.2;
        color: #666;
    }

    /* 底部 */
    .footer {
        padding: 30px 0;
        margin-top: 30px;
        background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    }
    .f-links {
        height: auto;
        padding: 0 15px 25px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 25px;
    }
    .f-links span {
        position: static;
        display: block;
        margin-bottom: 14px;
        color: #bbb;
        font-size: 13px;
        font-weight: 500;
    }
    .f-links .roll {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .f-links .roll li {
        float: none;
        display: inline-block;
        width: auto;
        padding-right: 20px;
        padding-bottom: 0;
    }
    .f-links .roll li a {
        color: #888;
        transition: color 0.3s;
        font-size: 12px;
    }
    .f-links .roll li a:hover {
        color: #fff;
    }
    .infoot {
        height: auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .infoot .ifl {
        width: 100px;
        height: 40px;
        padding-top: 0;
        float: none;
        margin-bottom: 20px;
        opacity: 0.9;
    }
    .infoot .ifl img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .infoot .ifc {
        width: 100%;
        padding-left: 0;
        float: none;
        order: 2;
        margin-bottom: 20px;
    }
    .infoot .ifc p {
        font-size: 11px;
        color: #777;
        line-height: 1.9;
        margin-bottom: 4px;
    }
    .infoot .ifc p a {
        color: #999;
        transition: color 0.3s;
    }
    .infoot .ifc p a:hover {
        color: #DC2D11;
    }
    .infoot .ifr {
        width: 80px;
        height: 80px;
        padding: 8px;
        float: none;
        background: #fff !important;
        border-radius: 8px;
        order: 1;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .infoot .ifr p {
        display: none;
    }

    /* 悬浮窗口 */
    .vivo-search {
        height: 52px;
        background-size: cover;
        background-position: center bottom;
    }
    .vivo-search .guide-app-link {
        width: 220px;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .vivo-search .guide-app-link img {
        height: 42px;
        width: auto;
    }
    .vivo-search .search-box {
        display: none;
    }

    /* 登录/注册弹窗 */
    .g-login-pop .m-box,
    .g-register-pop .m-register-box {
        width: 90%;
        max-width: 330px;
        left: 5%;
        top: 12%;
        margin-left: 0;
    }
    .g-login-pop .form-box,
    .g-register-pop .m-register-box .form-box {
        padding-left: 18px;
        padding-right: 18px;
    }
    .g-login-pop input,
    .g-register-pop .m-register-box .form-box input {
        width: 100%;
        box-sizing: border-box;
    }
    .g-login-pop .login-btn,
    .g-register-pop .m-register-box .form-box .register-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 小屏手机适配 (最大480px) */
@media screen and (max-width: 480px) {
    .wrap_w {
        padding: 0;
    }

    /* 头部 */
    .header {
        padding: 10px;
    }
    .header .logo {
        width: 110px;
        height: 38px;
    }
    .searchbar {
        border-radius: 8px;
    }
    .searchstyle {
        height: 40px;
        border: 2px solid #e8e8e8;
        border-right: none;
        border-radius: 8px 0 0 8px;
        font-size: 13px;
        padding: 0 12px;
    }
    .searchstyle:focus {
        border-color: #DC2D11;
    }
    .searchebtn {
        height: 40px;
        font-size: 13px;
        padding: 0 20px;
        border-radius: 0 8px 8px 0;
        border: 2px solid #DC2D11;
    }

    /* 菜单 */
    .menu ul {
        height: 44px;
        line-height: 44px;
    }
    .menu ul li {
        min-width: 70px;
    }
    .menu ul li a {
        font-size: 13px;
        padding: 0 12px;
    }

    /* 轮播图 */
    .slide-cont {
        height: 160px;
    }
    .slide-item img {
        height: 160px;
    }
    .slide-tit {
        font-size: 12px;
        padding-left: 12px;
    }

    /* 标题 */
    .title {
        padding: 12px;
    }
    .title span {
        font-size: 15px;
    }

    /* 推荐游戏 */
    .col_2 ul {
        gap: 10px;
    }
    .col_2 li img.gpic {
        height: 125px;
    }
    .col_2 li p {
        font-size: 13px;
        line-height: 38px;
        height: 38px;
    }

    /* 活动 */
    .col_4 .l ul {
        gap: 10px;
    }
    .col_4 .l li img.gpic {
        height: 100px;
    }
    .col_4 .l li p {
        font-size: 13px;
        line-height: 38px;
        height: 38px;
    }

    /* 热门游戏列表 */
    .col_3 .mcs dl {
        padding: 12px;
    }
    .col_3 .mcs dt {
        width: 60px;
    }
    .col_3 .mcs dt img {
        width: 54px;
        height: 54px;
    }
    .col_3 .mcs dd h3 {
        font-size: 13px;
    }
    .col_3 .mcs dd .gamedown a {
        font-size: 11px;
        padding: 5px 12px;
        height: 28px;
    }

    /* 礼包/开服标签 */
    .col_3 .r .tabNavigation li.big {
        font-size: 15px;
    }
    .col_3 .r .tabNavigation li.nor a {
        font-size: 12px;
    }
    .col_3 .r .tabcon dl {
        padding: 10px 12px;
    }
    .col_3 .r .tabcon dl dt {
        width: 52px;
        height: 52px;
    }

    /* 客服 */
    .col_4 .r .cons .mc {
        padding: 14px 0 14px 54px;
    }
    .col_4 .r .cons .mc span {
        font-size: 18px;
    }
    .col_4 .r .cons .ot {
        font-size: 12px;
        padding: 12px;
    }

    /* 底部 */
    .footer {
        padding: 25px 0;
    }
    .f-links {
        padding: 0 12px 20px 12px;
        margin-bottom: 20px;
    }
    .f-links span {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .f-links .roll li {
        padding-right: 16px;
    }
    .infoot {
        padding: 0 12px;
    }
    .infoot .ifl {
        width: 90px;
        height: 36px;
        margin-bottom: 16px;
    }
    .infoot .ifr {
        width: 72px;
        height: 72px;
        padding: 6px;
        margin-bottom: 16px;
    }
    .infoot .ifc p {
        font-size: 10px;
    }
}

/* 超小屏手机适配 (最大375px) */
@media screen and (max-width: 375px) {
    /* 推荐游戏改为单列 */
    .col_2 ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .col_2 li img.gpic {
        height: 145px;
    }
    .col_2 li p {
        font-size: 14px;
        line-height: 40px;
        height: 40px;
    }

    /* 活动改为单列 */
    .col_4 .l ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .col_4 .l li img.gpic {
        height: 125px;
    }

    /* 搜索栏 */
    .header {
        padding: 8px;
    }
    .header .logo {
        width: 100px;
        height: 35px;
    }
    .searchbar {
        border-radius: 8px;
    }
    .searchstyle {
        height: 38px;
        border: 2px solid #e8e8e8;
        border-right: none;
        border-radius: 8px 0 0 8px;
        font-size: 13px;
        padding: 0 10px;
    }
    .searchstyle:focus {
        border-color: #DC2D11;
    }
    .searchebtn {
        height: 38px;
        font-size: 13px;
        padding: 0 18px;
        border-radius: 0 8px 8px 0;
        border: 2px solid #DC2D11;
    }

    /* 底部 */
    .footer {
        padding: 20px 0;
    }
    .f-links {
        padding: 0 10px 15px 10px;
        margin-bottom: 15px;
    }
    .f-links span {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .f-links .roll li {
        padding-right: 14px;
    }
    .infoot {
        padding: 0 10px;
    }
    .infoot .ifl {
        width: 80px;
        height: 32px;
        margin-bottom: 14px;
    }
    .infoot .ifr {
        width: 64px;
        height: 64px;
        padding: 5px;
        margin-bottom: 14px;
    }
    .infoot .ifc p {
        font-size: 10px;
        line-height: 1.7;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .col_2 li .img_hover,
    .col_4 .l li .cover {
        transition: none;
    }
    .col_2 li:hover img,
    .col_4 .l li:hover img {
        transform: none;
    }
}

/* 横屏模式适配 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .slide-cont {
        height: 140px;
    }
    .slide-item img {
        height: 140px;
    }
    .col_2 li img.gpic {
        height: 105px;
    }
    .col_4 .l li img.gpic {
        height: 95px;
    }
    .col_3 .r .tabcon ul {
        max-height: 280px;
    }
}