/* ========== 手机版样式 ==========
   仿 game.youxin75.com/mobile.php
   独立手机版页面样式
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 60px;
}
a { text-decoration: none; color: #333; }
ul, li { list-style: none; }
img { max-width: 100%; vertical-align: middle; display: block; }

/* ===== Banner ===== */
.m-banner { width: 100%; overflow: hidden; position: relative; }
.m-banner .swiper { width: 100%; position: relative; }
.m-banner .swiper-slide { width: 100%; }
.m-banner .swiper-slide img { width: 100%; height: auto; display: block; }
.m-banner .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}
.m-banner .dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
}
.m-banner .dots span.on { background: #03b4f5; width: 20px; border-radius: 4px; }

/* ===== 快捷入口 ===== */
.m-quick {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 10px;
}
.m-quick ul { display: flex; }
.m-quick li { flex: 1; text-align: center; }
.m-quick li a { display: block; }
.m-quick li i {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    border-radius: 12px;
}
.m-quick li p { font-size: 12px; color: #333; }
.m-quick .icon-1 i { background: #ff6b6b url(../images/i-gift-w.png) center/24px no-repeat; }
.m-quick .icon-2 i { background: #4ecdc4 url(../images/i-cat-w.png) center/24px no-repeat; }
.m-quick .icon-3 i { background: #ffe66d url(../images/i-rank-w.png) center/24px no-repeat; }
.m-quick .icon-4 i { background: #1dd1a1 url(../images/i-kf-w.png) center/24px no-repeat; }

/* ===== 游戏列表模块 ===== */
.m-section {
    background: #fff;
    margin-bottom: 10px;
}
.m-section-hd {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m-section-hd h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 10px;
}
.m-section-hd h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #03b4f5;
    border-radius: 2px;
}
.m-section-hd .more {
    font-size: 12px;
    color: #999;
}
.m-section-hd .more::after { content: ' >'; }

.m-game-list li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.m-game-list li:last-child { border-bottom: 0; }
.m-game-list .g-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}
.m-game-list .g-icon img { width: 100%; height: 100%; }
.m-game-list .g-info { flex: 1; min-width: 0; }
.m-game-list .g-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-game-list .g-meta {
    font-size: 11px;
    color: #999;
}
.m-game-list .g-meta span { margin-right: 8px; }
.m-game-list .g-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #03b4f5;
    color: #fff !important;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

/* ===== 资讯列表 ===== */
.m-news-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.m-news-list li:last-child { border-bottom: 0; }
.m-news-list .n-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m-news-list .n-meta {
    font-size: 11px;
    color: #999;
}
.m-news-list .n-meta .tag {
    display: inline-block;
    padding: 1px 6px;
    background: #e8f7ff;
    color: #03b4f5;
    border-radius: 3px;
    margin-right: 8px;
    font-size: 10px;
}

/* ===== 礼包列表 ===== */
.m-gift-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.m-gift-list li:last-child { border-bottom: 0; }
.m-gift-list .gift-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6c00, #ff9500);
    border-radius: 10px;
    margin-right: 12px;
    flex-shrink: 0;
    text-align: center;
    line-height: 50px;
    color: #fff;
    font-size: 12px;
}
.m-gift-list .gift-info { flex: 1; min-width: 0; }
.m-gift-list .gift-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}
.m-gift-list .gift-desc {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-gift-list .gift-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #ff6c00;
    color: #fff !important;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

/* ===== 底部Tab导航 ===== */
.m-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    height: 55px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    z-index: 100;
}
.m-tabbar a {
    flex: 1;
    text-align: center;
    padding-top: 6px;
    color: #999;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.m-tabbar a i {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}
.m-tabbar a.active { color: #03b4f5; }
/* 底部Tab图标 - 用内联SVG base64，不依赖图片文件 */
.m-tabbar .tab-kf i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
}
.m-tabbar .tab-gift i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'%3E%3C/polyline%3E%3Crect x='2' y='7' width='20' height='5'%3E%3C/rect%3E%3Cline x1='12' y1='22' x2='12' y2='7'%3E%3C/line%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'%3E%3C/path%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'%3E%3C/path%3E%3C/svg%3E");
}
.m-tabbar .tab-home i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}
.m-tabbar .tab-news i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.m-tabbar .tab-user i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}
.m-tabbar .tab-kf.active i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303b4f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
}
.m-tabbar .tab-gift.active i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303b4f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'%3E%3C/polyline%3E%3Crect x='2' y='7' width='20' height='5'%3E%3C/rect%3E%3Cline x1='12' y1='22' x2='12' y2='7'%3E%3C/line%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'%3E%3C/path%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'%3E%3C/path%3E%3C/svg%3E");
}
.m-tabbar .tab-home.active i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303b4f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
}
.m-tabbar .tab-news.active i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303b4f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.m-tabbar .tab-user.active i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303b4f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* 快捷入口图标 */
.m-quick .icon-1 i {
    background: #ff6b6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'%3E%3C/polyline%3E%3Crect x='2' y='7' width='20' height='5'%3E%3C/rect%3E%3Cline x1='12' y1='22' x2='12' y2='7'%3E%3C/line%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'%3E%3C/path%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'%3E%3C/path%3E%3C/svg%3E") center/22px no-repeat;
}
.m-quick .icon-2 i {
    background: #4ecdc4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E") center/22px no-repeat;
}
.m-quick .icon-3 i {
    background: #feca57 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E") center/22px no-repeat;
}
.m-quick .icon-4 i {
    background: #1dd1a1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'%3E%3C/path%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'%3E%3C/path%3E%3Cline x1='6' y1='1' x2='6' y2='4'%3E%3C/line%3E%3Cline x1='10' y1='1' x2='10' y2='4'%3E%3C/line%3E%3Cline x1='14' y1='1' x2='14' y2='4'%3E%3C/line%3E%3C/svg%3E") center/22px no-repeat;
}

/* ===== 搜索栏 ===== */
.m-search {
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
}
.m-search-bar {
    display: flex;
    align-items: center;
    height: 36px;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 0 15px;
}
.m-search-bar::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url(../images/search_btn.png) center/contain no-repeat;
    margin-right: 8px;
    flex-shrink: 0;
}
.m-search-bar input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 13px;
    outline: none;
}

/* ===== 内页头部 ===== */
.m-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 44px;
    background: #03b4f5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}
.m-header .back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    font-size: 18px;
}
.m-header .back::before { content: '‹'; font-size: 24px; }

/* ===== 游戏详情 ===== */
.m-game-detail .game-top {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
}
.m-game-detail .game-top .icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}
.m-game-detail .game-top .icon img { width: 100%; height: 100%; }
.m-game-detail .game-top .info { flex: 1; min-width: 0; }
.m-game-detail .game-top h1 {
    font-size: 18px;
    margin-bottom: 6px;
}
.m-game-detail .game-top .meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}
.m-game-detail .game-top .btn-download {
    display: inline-block;
    padding: 8px 30px;
    background: #03b4f5;
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
}
.m-game-detail .detail-body {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
    line-height: 1.8;
    font-size: 13px;
}
.m-game-detail .detail-body h2 {
    font-size: 15px;
    margin: 15px 0 8px;
    color: #03b4f5;
}
.m-game-detail .detail-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 8px 0;
}

/* ===== 文章详情 ===== */
.m-article .article-header {
    background: #fff;
    padding: 15px;
}
.m-article .article-header h1 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.m-article .article-header .meta {
    font-size: 11px;
    color: #999;
}
.m-article .article-body {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
    line-height: 1.8;
    font-size: 14px;
}
.m-article .article-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

/* ===== 筛选栏 ===== */
.m-filter {
    background: #fff;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
}
.m-filter span {
    display: inline-block;
    padding: 5px 14px;
    margin: 0 4px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
}
.m-filter span.active {
    background: #e8f7ff;
    color: #03b4f5;
}

/* ===== 分页 ===== */
.m-pagination {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}
.m-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    background: #fff;
}
.m-pagination .page-numbers.current {
    background: #03b4f5;
    color: #fff;
    border-color: #03b4f5;
}
