/* ============================================================
   前端全局样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #f0f2f5;
    color: #333;
    font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 120px;
}

a { text-decoration: none; color: inherit; }

/* ── 主容器 ── */
.page-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* ── 头部 ── */
.nav-top {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    background: #D045B9;
    z-index: 10000;
    display: flex;
    justify-content: center;
}

.nav-top-inner {
    width: 100%;
    max-width: 750px;
    height: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-top .site-logo {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
}

.nav-top .btn-apply {
    font-size: 18px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all .2s;
}

.nav-top .btn-apply:hover {
    background: #fff;
    color: #D045B9;
}

/* ── 公告 ── */
.notice-marquee-wrapper {
    width: 702px;
    height: 50px;
    background: #FF86EB;
    margin: 15px auto 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.notice-marquee-wrapper p {
    margin: 0;
    white-space: nowrap;
    position: absolute;
    color: #fff;
    font-size: 28px;
    font-family: "Microsoft Yahei";
    font-weight: bold;
    padding-left: 702px;
    animation: marquee linear infinite;
}

@keyframes marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ── 头部轮播 ── */
.banner-slider-container {
    width: 702px;
    height: 116px;
    margin: 20px auto;
    background: #F1F1F1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .5s ease-in-out;
}

.slider-item {
    min-width: 100%;
    height: 100%;
    display: block;
}

/* ── Tab 标签 ── */
.list-tabs-header {
    width: 750px;
    height: 60px;
    margin: 10px auto 20px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
}

.tab-btn {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6A6A6A;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s;
    border-bottom: 4px solid transparent;
}

.tab-btn.active {
    color: #94BDD3;
    border-bottom: 4px solid #94BDD3;
}

/* ── 卡片网格 ── */
.list-block {
    width: 750px;
    margin: 0 auto;
    display: none;
}

.list-block.active {
    display: block;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 0;
    gap: 14px;
}

.list-item {
    width: 177px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 12px 21px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    transition: transform .2s;
}

.list-item:hover {
    transform: translateY(-3px);
    background: #f1f3f5;
}

.list-item .icon-box {
    width: 135px;
    height: 135px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    background: #e9ecef;
}

.list-item .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item .item-title {
    font-size: 16px;
    color: #6A6A6A;
    font-weight: bold;
    margin: 12px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.list-item .btn-enter {
    width: 135px;
    height: 42.4px;
    line-height: 40.4px;
    background: transparent;
    border: 1px solid #94BDD3;
    color: #94BDD3;
    font-size: 16px;
    text-align: center;
    border-radius: 22px;
    font-weight: bold;
    transition: all .2s;
    box-sizing: border-box;
}

.list-item:hover .btn-enter {
    background: #94BDD3;
    color: #fff;
}

/* ── 底部大轮播 ── */
.ad-1-wrap {
    width: 702px;
    height: 350px;
    margin: 10px auto 20px;
    background: #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.ad-1-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.25, 1, .5, 1);
}

.ad-1-slider-item {
    min-width: 100%;
    height: 100%;
    display: block;
}

/* ── 下载推荐 ── */
.download-recommend-section {
    width: 750px;
    margin: 10px auto 30px;
    display: none;
}

.download-recommend-section.show {
    display: block;
}

.recommend-title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.recommend-title-wrap .fire-icon {
    color: #ff4d4f;
    font-size: 20px;
    margin-right: 6px;
}

.recommend-title-wrap .title-text {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recommend-row-link {
    display: block;
    width: 750px;
    height: 172px;
    transition: transform .2s;
}

.recommend-row-link:hover {
    transform: translateY(-2px);
}

.recommend-row-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 18px;
    padding: 0 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.02);
    transition: background .2s;
}

.recommend-row-link:hover .recommend-row-item {
    background: #f1f3f5;
}

.recommend-row-item .row-avatar {
    width: 124px;
    height: 124px;
    border-radius: 20px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    margin-right: 20px;
    flex-shrink: 0;
}

.recommend-row-item .row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-row-item .row-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommend-row-item .info-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.recommend-row-item .app-name {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-right: 10px;
}

.recommend-row-item .app-badge {
    background: #ff85c0;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 5px;
}

.recommend-row-item .download-count {
    font-size: 15px;
    color: #999;
}

.recommend-row-item .btn-download {
    background: linear-gradient(135deg, #ff76df, #f73199);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(247,49,153,.25);
    flex-shrink: 0;
}

/* ── 底飘广告 ── */
.fixed-bottom-float-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 810px;
    height: 108px;
    z-index: 9999;
    transition: opacity .25s;
}

.fixed-bottom-float-ad .ad-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 -4px 15px rgba(0,0,0,.15);
}

.fixed-bottom-float-ad .btn-close-ad {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.3);
    user-select: none;
    transition: background .2s;
}

.fixed-bottom-float-ad .btn-close-ad:hover {
    background: rgba(0,0,0,.8);
}

/* ── 底部 ── */
.site-footer {
    background: #fff;
    border-top: 1px solid #eaeaea;
    padding: 25px 15px;
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: auto;
}
