/* 手机端现代化布局补充 */
body.wap-body {
    background: #f4f6f9;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

.wap-page {
    padding-bottom: 12px;
}

/* 头部占位（iOS 17 含热门词时略增高，JS 会再动态校准） */
.wap-head-placeholder { height: 84px; }
.wap-head-placeholder.has-sub { height: 120px; }
.wap-head-placeholder.has-hot { height: 128px; }
.wap-head-placeholder.has-sub.has-hot { height: 164px; }

/* 热门搜索单行 */
.wap-hot-keywords {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 8px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    white-space: nowrap;
}

.wap-hot-keywords > span {
    flex-shrink: 0;
    font-size: 11px;
    color: #999;
}

.wap-hot-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    min-width: 0;
}

.wap-hot-tags a {
    flex-shrink: 0;
    font-size: 11px;
    color: #666;
    background: #f4f6f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.wap-hot-tags a:hover {
    color: var(--wap-accent, #19b5fe);
}

/* 轮播 */
.wap-banner-wrap {
    padding: 10px 12px 0;
    background: #f4f6f9;
    box-sizing: border-box;
}

body.wap-body .wap-banner.slideBox {
    margin: 0;
    padding: 0;
    background: #dfe3e8;
    position: relative;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.wap-body .wap-banner.slideBox .bd {
    position: relative;
    width: 100% !important;
    height: 42vw !important;
    max-height: 200px !important;
    min-height: 136px !important;
    margin: 0;
    padding: 0;
    z-index: 0;
    overflow: hidden;
}

body.wap-body .wap-banner .bd ul {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

body.wap-body .wap-banner .bd li {
    width: 100%;
    height: 100% !important;
    margin: 0;
    padding: 0;
    line-height: 0;
    float: left;
    overflow: hidden;
}

body.wap-body .wap-banner .bd li a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

body.wap-body .wap-banner .bd img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}

body.wap-body .wap-banner.slideBox .hdli {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: auto;
    width: auto;
    line-height: 0;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

body.wap-body .wap-banner.slideBox .hdli ul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 12px;
    list-style: none;
}

body.wap-body .wap-banner.slideBox .hdli ul li {
    display: block !important;
    float: none !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55) !important;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    transition: width 0.2s, background 0.2s;
}

body.wap-body .wap-banner.slideBox .hdli ul li.on {
    width: 16px !important;
    border-radius: 4px;
    background: #fff !important;
}

body.wap-body .wap-page {
    padding-top: 0;
}

/* 快捷入口（首页：必做/排行/更新/专题，勿与旧版 .nav-head 混用） */
body.wap-body .wap-quick-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    height: auto !important;
    min-height: 0;
    padding: 12px !important;
    margin: 0 0 8px !important;
    border-bottom: none !important;
    background: #fff;
    box-sizing: border-box;
    -webkit-box-orient: unset !important;
    -webkit-box-direction: unset !important;
    width: 100%;
    overflow: hidden;
}

body.wap-body .wap-quick-nav a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px !important;
    line-height: 1.2;
    color: #444;
    padding: 4px 0;
    min-width: 0;
    -webkit-box-flex: initial !important;
    box-flex: initial !important;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

body.wap-body .wap-quick-nav a em {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 6px !important;
    border-radius: 12px !important;
    flex-shrink: 0;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    font-style: normal;
    overflow: hidden;
}

/* 图标资源缺失时用渐变色块 + 单字标识（避免 iOS 上空白/错位） */
body.wap-body .wap-quick-nav .nav-btn4 em {
    background: linear-gradient(145deg, #ff690b, #ffb347) !important;
}
body.wap-body .wap-quick-nav .nav-btn4 em::before {
    content: '荐';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

body.wap-body .wap-quick-nav .nav-btn3 em {
    background: linear-gradient(145deg, #19b5fe, #5ecaff) !important;
}
body.wap-body .wap-quick-nav .nav-btn3 em::before {
    content: '榜';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

body.wap-body .wap-quick-nav .nav-btn1 em {
    background: linear-gradient(145deg, #34c759, #7dde98) !important;
}
body.wap-body .wap-quick-nav .nav-btn1 em::before {
    content: '新';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

body.wap-body .wap-quick-nav .nav-btn8 em {
    background: linear-gradient(145deg, #8b5cf6, #b794f6) !important;
}
body.wap-body .wap-quick-nav .nav-btn8 em::before {
    content: '题';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.wap-quick-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    height: auto !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
    background: #fff;
    box-sizing: border-box;
}

.wap-quick-nav a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    font-size: 12px !important;
    color: #444;
    padding: 4px 0;
}

.wap-quick-nav a em {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 6px !important;
    border-radius: 12px !important;
}

/* 区块 */
.wap-section {
    background: #fff;
    margin-bottom: 8px;
    border-bottom: none !important;
}

.wap-section .title {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #f0f0f0;
}

.wap-section .title h2 {
    position: static;
    float: none;
    margin: 0;
    padding: 14px 12px;
    line-height: 16px;
    font-size: 15px;
    font-weight: 600;
}

/* 站长推荐横向滑动 */
.m-slide-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
}

.m-slide-box::-webkit-scrollbar { display: none; }

.app-slide {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 12px;
    width: max-content;
}

.app-slide li {
    width: 88px;
    flex-shrink: 0;
    text-align: center;
    list-style: none;
}

.app-slide li img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: block;
    margin: 0 auto 6px;
}

.app-slide li figcaption {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 6px;
}

.app-slide li .down {
    width: 56px;
    margin: 0 auto;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
}

/* 应用列表（首页 + 内页通用） */
body.wap-body .app-list li.box {
    display: flex;
    align-items: center;
    width: 100% !important;
    float: none !important;
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    position: relative;
    clear: both;
}

body.wap-body .app-list .rank-num-1,
body.wap-body .app-list .rank-num-2,
body.wap-body .app-list .rank-num-3,
body.wap-body .app-list .rank-num-grey {
    flex-shrink: 0;
    margin-right: 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 18px;
}

body.wap-body .app-list .app-icon {
    float: none;
    width: 56px;
    margin: 0 12px 0 0;
    flex-shrink: 0;
}

body.wap-body .app-list .app-icon img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

body.wap-body .app-list .app-info {
    float: none;
    flex: 1;
    min-width: 0;
    width: auto !important;
    position: static;
}

body.wap-body .app-list .app-name {
    height: auto;
    line-height: 1.3;
    margin-bottom: 4px;
}

body.wap-body .app-list .app-name a {
    font-size: 14px;
    color: #222;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.wap-body .app-list .b-v,
body.wap-body .app-list .app-desc {
    height: auto;
    line-height: 1.4;
    font-size: 12px;
    color: #999;
}

body.wap-body .app-list .app-btn-down {
    position: static !important;
    float: none !important;
    flex-shrink: 0;
    order: 3;
    margin: 0 0 0 auto !important;
    width: 56px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    border-radius: 15px;
    text-align: center;
    background: var(--wap-accent, #19b5fe);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(25, 181, 254, 0.25);
}

body.wap-body .app-list .app-icon {
    order: 1;
}

body.wap-body .app-list .app-info {
    order: 2;
}

/* 首页区块内列表 */
.wap-section .app-list {
    padding: 0;
}

/* Tab 切换 */
#tab.tabBox {
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}

#tab .hd {
    height: auto;
    border-bottom: 1px solid #eee;
    box-shadow: none;
}

#tab .hd ul {
    display: flex;
    width: 100%;
}

#tab .hd ul li {
    float: none !important;
    flex: 1;
    width: auto !important;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    color: #666;
}

#tab .hd ul li.on {
    color: var(--wap-accent, #19b5fe);
    font-weight: 600;
    border-bottom: 2px solid var(--wap-accent, #19b5fe);
}

#tab .bd {
    overflow: hidden;
}

/* TouchSlide 会横向排列 .con，勿设置 display:none */
#tab .bd .con {
    box-sizing: border-box;
}

.app-array {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 4px;
    box-sizing: border-box;
}

.app-array li {
    width: 25%;
    padding: 8px 4px;
    box-sizing: border-box;
    text-align: center;
    list-style: none;
}

.app-array li .app-btn {
    display: block;
}

.app-array li img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: block;
    margin: 0 auto 6px;
}

.app-array li figcaption {
    font-size: 11px;
    color: #444;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

/* 专题标签 */
.tags-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px !important;
}

.tags-ul li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 14px;
    overflow: hidden;
}

.tags-ul li a {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    color: #fff !important;
    border-radius: 14px;
}

/* 资讯列表 */
.info-list3 ul {
    padding: 0;
}

.info-list3 li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.info-list3 li a {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: flex-start;
}

.info-list3 li img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.info-list3 li h2 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.info-list3 li p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

/* 页脚 */
.wap-footer {
    background: #fff;
    padding: 20px 12px 24px;
    margin-top: 8px;
    border-top: 1px solid #eee;
    text-align: center;
}

.wap-footer-copy {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.wap-footer-copy a {
    color: #666;
}

.wap-footer-meta {
    font-size: 11px;
    color: #aaa;
}

/* 返回顶部 */
#back-top {
    position: fixed;
    right: 12px;
    bottom: 20px;
    z-index: 999;
    width: auto;
}

.wap-back-top,
#totop.wap-back-top {
    display: block !important;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--wap-accent, #19b5fe) !important;
    color: #fff !important;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-indent: 0 !important;
    background-image: none !important;
    position: static !important;
}

/* 内页通用 */
.wap-top-head .header .header-search {
    flex: 1;
    max-width: none;
    width: auto;
    margin-left: 8px;
}

.wap-top-head .header .header-search-input {
    font-size: 13px;
}

.part,
.column-wrap > .part {
    display: none;
}

/* 内页 Tab */
body.wap-body .info-tab {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}

body.wap-body .info-tab a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
}

body.wap-body .info-tab a.t-sel {
    color: var(--wap-accent, #19b5fe);
    font-weight: 600;
    border-bottom-color: var(--wap-accent, #19b5fe);
}

body.wap-body .wrap-content,
body.wap-body .app-area {
    background: #fff;
}

body.wap-body .pager {
    background: #fff;
    padding: 16px 0;
    margin-top: 8px;
}

body.wap-body .wrap-footer {
    margin-top: 8px;
}

/* ========== WAP 内页列表 ========== */
.wap-list-page {
    padding-bottom: 12px;
}

.wap-list-page .wap-section {
    margin-bottom: 0;
    overflow: hidden;
}

.wap-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.wap-list-head .title {
    border-bottom: 0;
    flex: 1;
    min-width: 0;
}

.wap-list-head .title h2 {
    padding-left: 10px;
    border-left: 3px solid var(--wap-accent, #19b5fe);
}

.wap-list-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    padding-right: 4px;
}

body.wap-body .wap-list-page .app-list {
    overflow: visible;
    zoom: normal;
    padding: 0;
    margin: 0;
}

body.wap-body .wap-list-page .app-list li.box {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    width: 100% !important;
    padding: 14px 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    position: relative !important;
    clear: both;
    min-height: 72px;
}

body.wap-body .wap-list-page .app-list .app-icon {
    display: block !important;
    float: none !important;
    order: 1;
    width: 56px !important;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0;
}

body.wap-body .wap-list-page .app-list .app-icon img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px;
}

body.wap-body .wap-list-page .app-list .app-info {
    display: block !important;
    float: none !important;
    order: 2;
    flex: 1;
    min-width: 0;
    width: auto !important;
    position: static !important;
}

body.wap-body .wap-list-page .app-list .app-name,
body.wap-body .wap-list-page .app-list .app-name a {
    height: auto !important;
    line-height: 1.35 !important;
    font-size: 15px !important;
    font-weight: 600;
    color: #222 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.wap-body .wap-list-page .app-list .app-desc {
    display: block !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 12px !important;
    color: #888 !important;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.wap-body .wap-list-page .app-list .b-v {
    display: block !important;
    height: auto !important;
    line-height: 1.3 !important;
    font-size: 11px !important;
    color: #aaa !important;
}

body.wap-body .wap-list-page .app-list .app-btn-down {
    position: static !important;
    float: none !important;
    order: 3;
    flex-shrink: 0;
    margin: 0 0 0 8px !important;
    width: 58px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 13px !important;
    border-radius: 15px !important;
    border: none !important;
    background: var(--wap-accent, #19b5fe) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(25, 181, 254, 0.28);
    text-align: center;
}

.wap-list-apps .app-desc {
    display: block;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 2px 0 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wap-empty-tip {
    display: block;
    text-align: center;
    padding: 40px 16px;
    color: #999;
    font-size: 14px;
    list-style: none;
}

body.wap-body .pager {
    background: #fff;
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

body.wap-body .pager a {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    color: #666;
    border-radius: 4px;
}

body.wap-body .pager a:hover,
body.wap-body .pager .current {
    color: var(--wap-accent, #19b5fe);
    font-weight: 600;
}

/* 资讯列表内页 */
.wap-info-list li {
    list-style: none;
}

.wap-info-views {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.wap-info-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--wap-accent, #19b5fe);
}

/* 专题列表 */
.wap-special-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wap-special-list > li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.wap-special-list > li:last-child {
    border-bottom: 0;
}

.wap-special-card {
    display: flex;
    gap: 12px;
    padding: 14px 12px;
    align-items: flex-start;
}

.wap-special-thumb {
    width: 96px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.wap-special-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wap-special-body {
    flex: 1;
    min-width: 0;
}

.wap-special-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.35;
}

.wap-special-body p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wap-special-apps {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wap-special-apps img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* 专题详情内页 */
.wap-special-detail-intro {
    display: flex;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.wap-special-detail-thumb {
    width: 96px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.wap-special-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wap-special-detail-body h2 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.35;
}

.wap-special-detail-body .wap-special-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

.wap-special-detail-body .wap-special-desc img {
    max-width: 100%;
    height: auto;
}
