/* tpl01 经典蓝白：白顶条 + 渐变横幅 + 四宫格 + 八宫格 */
.c1-top{position:sticky;top:0;z-index:50;background:var(--nav-bg);border-bottom:1px solid var(--border);}
.c1-top-in{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;}
.c1-logo{font-size:18px;font-weight:800;color:var(--primary);}
.c1-top-r{display:flex;align-items:center;gap:10px;}
.c1-link{font-size:13px;color:var(--muted);}
.c1-hero{margin:10px 12px 0;border-radius:14px;padding:20px 16px;color:var(--toptext);background:var(--banner);box-shadow:0 4px 14px var(--shadow);}
.c1-hero-t{font-size:16px;font-weight:700;}
.c1-hero-s{font-size:12px;opacity:.85;margin-top:6px;}
.c1-body{padding:12px;}
.c1-bal{display:flex;align-items:center;justify-content:space-between;background:var(--card);border-radius:14px;padding:16px;box-shadow:0 2px 10px rgba(0,0,0,.05);}
.c1-bal-label{font-size:12px;color:var(--muted);}
.c1-bal-num{font-size:26px;font-weight:800;color:var(--text);font-family:Consolas,monospace;margin-top:4px;}
.c1-bal-sub{font-size:11px;color:var(--muted);margin-top:2px;}
.c1-bal-r{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.c1-bal-user{font-size:13px;color:var(--text);}
.c1-btn{padding:8px 14px;border-radius:8px;font-size:13px;}
.c1-btn.pri{background:var(--grad1);color:#fff;}
.c1-btn.ghost{border:1px solid var(--primary);color:var(--primary);}
.c1-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px;}
.c1-g4{background:var(--card);border-radius:12px;padding:14px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.c1-g4-n{font-size:12px;color:var(--text);}
.c1-sec{font-size:15px;font-weight:700;color:var(--text);margin:16px 2px 10px;padding-left:8px;border-left:3px solid var(--primary);}
.c1-grid8{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.c1-g8{background:var(--card);border-radius:10px;padding:12px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 1px 6px rgba(0,0,0,.04);}
.c1-g8-n{font-size:11px;color:var(--text);}
.c1-kefu{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:12px;padding:14px;margin-top:12px;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.c1-kefu-i{width:42px;height:42px;border-radius:10px;background:var(--primary-light);display:flex;align-items:center;justify-content:center;color:var(--primary);}
.c1-kefu-m{flex:1;}
.c1-kefu-t{font-size:14px;font-weight:600;color:var(--text);}
.c1-kefu-s{font-size:12px;color:var(--muted);margin-top:2px;}
.c1-arrow{font-size:20px;color:var(--muted);}





/* ================= 参考页面完整样式 ================= */
.ref-home {
    min-height: 100vh;
    background: #f5f7fa;
    padding-bottom: 60px;
}

/* 顶部蓝色渐变条 */
.rh-header {
    background: linear-gradient(180deg, #4a90d9 0%, #6ba3e0 100%);
    padding: 10px 14px;
}
.rh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rh-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.rh-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rh-logout {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

/* 轮播图 */
.rh-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}
.rh-banner-slide img {
    width: 100%;
    display: block;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}
.rh-banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.rh-banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.rh-banner-dots .dot.active {
    background: #ffd700;
    width: 16px;
    border-radius: 4px;
}

/* 滚动公告 */
.rh-notice {
    display: flex;
    align-items: center;
    background: #fff;
    margin: 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
}
.rh-notice-icon img {
    height: 20px;
    margin-right: 8px;
}
.rh-notice-text {
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    color: #333;
}
.rh-notice-msg {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: #1677FF;
    font-size: 13px;
}
.rh-notice-msg img {
    height: 20px;
}

/* 用户信息模块 */
.rh-userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    margin: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rh-user-left {
    flex: 1;
}
.rh-user-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}
.rh-user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rh-balance-num {
    font-size: 22px;
    font-weight: 700;
    color: #1677FF;
    font-family: Consolas, monospace;
}
.rh-balance-unit {
    font-size: 12px;
    color: #999;
}
.rh-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
}
.rh-refresh-btn img {
    height: 16px;
}
.rh-user-btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.rh-login-btn {
    padding: 6px 16px;
    border: 1px solid #1677FF;
    border-radius: 4px;
    color: #1677FF;
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}
.rh-user-right {
    flex-shrink: 0;
}

/* 功能图标 */
.rh-func-icons {
    display: flex;
    gap: 20px;
}
.rh-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #333;
}
.rh-func-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.rh-func-item em {
    font-style: normal;
    font-size: 12px;
    color: #1677FF;
}

/* 游戏大厅 */
.rh-game-wrapper {
    display: flex;
    background: #fff;
    margin: 0 8px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 400px;
}

/* 左侧分类菜单 */
.rh-sidebar {
    width: 52px;
    background: #f5f7fa;
    flex-shrink: 0;
    padding: 0 0 80px;
}
.rh-side-item {
    width: 52px;
    height: 76px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 10px;
    box-sizing: border-box;
}
.rh-side-item.active {
    background: #1677FF;
}
.rh-side-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.rh-side-item span {
    font-size: 12px;
    color: #666;
}
.rh-side-item.active span {
    color: #fff;
    font-weight: 600;
}

/* 右侧游戏容器 */
.rh-game-container {
    flex: 1;
    padding: 10px;
    overflow: hidden;
}

/* 游戏列表 - 所有分类都是单列横向布局 */
.rh-game-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 游戏卡片 - 背景图方式 */
.rh-game-card {
    display: block;
    width: 100%;
    height: 90px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.rh-game-card:active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* 加载更多 */
.rh-load-more {
    text-align: center;
    padding: 14px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}
.rh-load-more:active {
    color: #1677FF;
}

/* 底部导航 */
.rh-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    padding: 6px 0;
    z-index: 100;
}
.rh-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    padding: 4px 0;
}
.rh-nav-item.active {
    color: #1677FF;
}
.rh-nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.rh-nav-item span {
    font-size: 11px;
}

/* 响应式适配 */
@media (max-width: 360px) {
    .rh-func-icons {
        gap: 12px;
    }
    .rh-game-card {
        height: 80px;
    }
}
