/**
 * 购彩首页 / 比分 / 我的中心 — Tab 主入口页
 */
@import url('frontend_tokens.css');

/* ══════════════════════════════════════
   购彩首页 hi-page
   ══════════════════════════════════════ */
body.hi-page {
    background: var(--fe-bg-page);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    padding: 14px 12px calc(70px + env(safe-area-inset-bottom));
    margin: 0;
}
body.hi-page * {
    box-sizing: border-box;
}

.hi-banner-wrap {
    border-radius: var(--fe-radius-lg);
    overflow: hidden;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-md);
}
.hi-banner-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.hi-banner-scroll::-webkit-scrollbar { display: none; }
.hi-banner-inner { display: flex; width: max-content; }
.hi-banner-item {
    width: calc(100vw - 24px);
    height: 200px;
    flex-shrink: 0;
}
.hi-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.hi-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hi-menu-container {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-lg);
    margin-top: 16px;
    padding: 20px 10px;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
}
.hi-menu-row { display: flex; flex-wrap: wrap; }
.hi-menu-col { width: 25%; padding: 8px; }
.hi-menu-item {
    text-align: center;
    padding: 10px 4px;
    border-radius: var(--fe-radius-md);
    transition: background 0.2s ease, transform 0.15s ease;
}
.hi-menu-item:active {
    background: var(--fe-primary-soft);
    transform: scale(0.97);
}
.hi-menu-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hi-menu-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.hi-menu-name {
    font-size: 13px;
    color: var(--fe-text-primary);
    font-weight: 500;
}
.hi-menu-link {
    text-decoration: none;
    color: inherit;
}

/* ══════════════════════════════════════
   比分页 sc-page
   ══════════════════════════════════════ */
body.sc-page {
    margin: 0;
    padding: 0;
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fe-bg-page);
}

.sc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-sm);
    z-index: 1000;
}
.sc-header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
}

.sc-main {
    margin-top: calc(var(--fe-header-h) + 8px);
    padding: 0 12px 20px;
}

.sc-match-item {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
}
.sc-match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--fe-text-secondary);
    font-size: 13px;
}
.sc-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}
.sc-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}
.sc-team img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--fe-radius-sm);
    margin-bottom: 6px;
    border: 1px solid var(--fe-border-light);
}
.sc-team-name {
    font-size: 14px;
    color: var(--fe-text-primary);
    text-align: center;
    font-weight: 500;
}
.sc-vs {
    color: var(--fe-text-muted);
    font-weight: 600;
    font-size: 13px;
}
.sc-odds {
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--fe-border);
}
.sc-odd-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--fe-radius-sm);
    transition: background 0.15s ease;
}
.sc-odd-item:active {
    background: var(--fe-primary-soft);
}
.sc-odd-label {
    font-size: 12px;
    color: var(--fe-text-muted);
}
.sc-odd-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--fe-primary);
    margin-top: 4px;
}
.sc-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--fe-radius-pill);
    font-size: 12px;
    font-weight: 500;
}
.sc-status.未开始 {
    background: var(--fe-primary-soft);
    color: var(--fe-primary);
}
.sc-status.进行中 {
    background: var(--fe-warning-soft);
    color: var(--fe-warning-text);
}
.sc-status.已结束 {
    background: var(--fe-success-soft);
    color: var(--fe-success-text);
}
.sc-empty {
    text-align: center;
    color: var(--fe-text-muted);
    padding: 48px 0;
    font-size: 14px;
}
.sc-odds-mask-hint {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--fe-text-muted);
    font-size: 12px;
    transform: translateY(-50%);
}

.sc-bet-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2000;
}
.sc-bet-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-lg) var(--fe-radius-lg) 0 0;
    box-shadow: var(--fe-shadow-lg);
    z-index: 2001;
    max-height: 60vh;
    overflow: hidden;
}
.sc-bet-header {
    padding: 16px 20px 12px;
    position: relative;
    border-bottom: 1px solid var(--fe-border-light);
}
.sc-bet-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    color: var(--fe-text-muted);
    cursor: pointer;
    line-height: 1;
}
.sc-bet-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
    text-align: center;
}
.sc-bet-body {
    padding: 0 20px 20px;
    max-height: calc(60vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.sc-bet-info {
    display: flex;
    justify-content: space-between;
    margin: 16px 0 20px;
    font-size: 15px;
    color: var(--fe-text-primary);
}
.sc-bet-amount-input {
    margin-bottom: 20px;
}
.sc-bet-amount-input input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-md);
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    background: var(--fe-bg-subtle);
}
.sc-bet-amount-input input:focus {
    border-color: var(--fe-primary-light);
    box-shadow: 0 0 0 3px var(--fe-primary-ring);
}
.sc-bet-submit {
    width: 100%;
    height: 48px;
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    border: none;
    border-radius: var(--fe-radius-pill);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--fe-primary-ring);
}
.sc-bet-submit:active {
    background: var(--fe-primary-dark);
}

/* ══════════════════════════════════════
   我的中心 uc-page
   ══════════════════════════════════════ */
body.uc-page {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fe-bg-page);
}

.uc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-sm);
    z-index: 1000;
}
.uc-header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
}

.uc-main {
    margin-top: calc(var(--fe-header-h) + 8px);
    padding: 0 12px calc(70px + env(safe-area-inset-bottom));
    min-height: calc(100vh - var(--fe-header-h));
}

.uc-panel {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-xl);
    padding: 24px;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
}

.uc-user-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.uc-avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.uc-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fe-bg-card);
    box-shadow: 0 4px 12px var(--fe-primary-ring);
    display: block;
}
.uc-user-text { flex: 1; min-width: 0; }
.uc-user-text h4 {
    font-size: 19px;
    font-weight: 600;
    margin: 4px 0 6px;
    line-height: 1.3;
}
.uc-user-text h4 a {
    color: var(--fe-text-primary);
    text-decoration: none;
}
.uc-user-bio {
    color: var(--fe-text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.uc-agent-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--fe-bg-subtle);
    border-radius: var(--fe-radius-md);
    border: 1px solid var(--fe-border);
}
.uc-agent-label {
    font-size: 13px;
    color: var(--fe-text-secondary);
    margin-bottom: 6px;
}
.uc-agent-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--fe-text-primary);
}
.uc-agent-meta {
    font-size: 12px;
    color: var(--fe-text-secondary);
    margin-top: 6px;
    line-height: 1.6;
}

.uc-wallet {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--fe-primary-dark), var(--fe-primary));
    border-radius: var(--fe-radius-lg);
    padding: 24px;
    color: var(--fe-text-inverse);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--fe-primary-ring);
}
.uc-wallet::after,
.uc-wallet::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.uc-wallet::after {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    right: -80px;
    top: -60px;
}
.uc-wallet::before {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    left: -40px;
    bottom: -30px;
}
.uc-wallet-top h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.92;
    position: relative;
    z-index: 2;
}
.uc-wallet-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.uc-wallet-balance .label,
.uc-wallet-balance .value {
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
}
.uc-wallet-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}
.uc-wallet-actions a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    border-radius: var(--fe-radius-md);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
.uc-btn-recharge {
    background: var(--fe-bg-card);
    color: var(--fe-primary);
}
.uc-btn-withdraw {
    background: rgba(255, 255, 255, 0.16);
    color: var(--fe-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.uc-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.uc-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--fe-text-primary);
}
.uc-menu-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
}
.uc-menu-text {
    font-size: 13px;
    color: var(--fe-text-primary);
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

/* 菜单图标 — 统一主色蓝 */
.uc-icon-settings {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cpath d='M19.4 15a8 8 0 0 1-1.1-3 8 8 0 0 1 1.1-3m-17.6 6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1Z' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}
.uc-icon-service {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s8-4 8-10V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v6c0 6 8 10 8 10Z' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}
.uc-icon-promotion {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 21v-8a3 3 0 0 0-3-3H7a3 3 0 0 0-3 3v8' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v4' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}
.uc-icon-orders {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}
.uc-icon-profit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6' fill='none' stroke='%23F59E0B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.uc-icon-follow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Ccircle cx='9' cy='7' r='4' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}
.uc-icon-moneylog {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='2' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cpath d='M2 10h20M7 15h.01M11 15h2' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.uc-icon-logout {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cpolyline points='16 17 21 12 16 7' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3Cline x1='21' y1='12' x2='9' y2='12' fill='none' stroke='%232563EB' stroke-width='2'/%3E%3C/svg%3E");
}

@media screen and (max-width: 767px) {
    .uc-panel { padding: 20px 16px; }
    .uc-avatar { width: 68px; height: 68px; }
    .uc-wallet-balance .label,
    .uc-wallet-balance .value { font-size: 24px; }
    .uc-wallet-actions { flex-direction: column; gap: 10px; }
    .uc-menu-grid { gap: 16px; }
    .uc-menu-icon { width: 36px; height: 36px; }
    .uc-menu-text { font-size: 12px; }
}

/* ══════════════════════════════════════
   冠军专区 cp-page
   ══════════════════════════════════════ */
body.cp-page {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fe-bg-page);
    padding-bottom: env(safe-area-inset-bottom);
}
body.cp-page * { box-sizing: border-box; }

body.cp-page .nav,
body.cp-page .fe-subpage-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-sm);
    z-index: 1000;
}
body.cp-page .back,
body.cp-page .fe-subpage-back {
    position: absolute;
    left: 12px;
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}
body.cp-page .title,
body.cp-page .fe-subpage-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
}

body.cp-page .game-tab {
    position: fixed;
    top: var(--fe-header-h);
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--fe-border-light);
    z-index: 999;
}
body.cp-page .tab-item {
    flex: 1;
    text-align: center;
    font-size: 15px;
    color: var(--fe-text-secondary);
    cursor: pointer;
    position: relative;
    height: 100%;
    line-height: var(--fe-header-h);
    font-weight: 500;
}
body.cp-page .tab-item.active {
    color: var(--fe-primary);
    font-weight: 600;
}
body.cp-page .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--fe-primary);
    border-radius: var(--fe-radius-pill);
}

body.cp-page .main-container {
    margin-top: calc(var(--fe-header-h) * 2 + 8px);
    padding: 0 12px 20px;
}
body.cp-page .team-container {
    display: grid;
    gap: 12px;
}
body.cp-page .team-container.cp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
body.cp-page .team-container.cp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
body.cp-page .team-card {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-lg);
    padding: 16px 8px;
    text-align: center;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.cp-page .team-card:active {
    transform: translateY(-1px);
    box-shadow: var(--fe-shadow-md);
}
body.cp-page .flag-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 2px solid var(--fe-border);
}
body.cp-page .flag-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
body.cp-page .flag-row .flag-circle {
    width: 44px;
    height: 44px;
    margin: 0;
}
body.cp-page .flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.cp-page .split-text {
    color: var(--fe-text-muted);
    font-weight: 600;
}
body.cp-page .team-name {
    font-size: 14px;
    color: var(--fe-text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}
body.cp-page .team-odds {
    font-size: 16px;
    font-weight: 700;
    color: var(--fe-primary);
}
body.cp-page .team-status {
    font-size: 12px;
    color: var(--fe-text-muted);
    margin-top: 4px;
}
body.cp-page .empty-tips {
    text-align: center;
    color: var(--fe-text-muted);
    padding: 48px 0;
    font-size: 14px;
}

body.cp-page .bet-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2000;
}
body.cp-page .bet-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--fe-bg-card);
    border-top-left-radius: var(--fe-radius-lg);
    border-top-right-radius: var(--fe-radius-lg);
    box-shadow: var(--fe-shadow-lg);
    z-index: 2001;
    max-height: 70vh;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}
body.cp-page .bet-header {
    padding: 16px 20px 12px;
    position: relative;
    border-bottom: 1px solid var(--fe-border-light);
}
body.cp-page .close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    color: var(--fe-text-muted);
    cursor: pointer;
    line-height: 1;
}
body.cp-page .bet-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
    text-align: center;
}
body.cp-page .bet-body {
    padding: 0 20px 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.cp-page .bet-info {
    display: flex;
    justify-content: space-between;
    margin: 16px 0 20px;
    font-size: 15px;
    color: var(--fe-text-primary);
}
body.cp-page .multiplier-input { margin-bottom: 20px; }
body.cp-page #betMultiplier {
    width: 100%;
    height: 44px;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-md);
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: var(--fe-bg-subtle);
}
body.cp-page #betMultiplier:focus {
    border-color: var(--fe-primary-light);
    box-shadow: 0 0 0 3px var(--fe-primary-ring);
}
body.cp-page .calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--fe-text-secondary);
    margin-bottom: 8px;
}
body.cp-page .btn-submit {
    width: 100%;
    height: 48px;
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    border: none;
    border-radius: var(--fe-radius-pill);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--fe-primary-ring);
}
body.cp-page .btn-submit:active { background: var(--fe-primary-dark); }
body.cp-page .btn-submit:disabled {
    background: var(--fe-bg-muted) !important;
    color: var(--fe-text-muted) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body.cp-page .tip-dialog-title {
    font-size: 17px;
    color: var(--fe-text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

/* ══════════════════════════════════════
   充值 / 提现 wl-page
   ══════════════════════════════════════ */
body.wl-page {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fe-bg-page);
}
body.wl-page * { box-sizing: border-box; }

body.wl-page .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-sm);
    z-index: 1000;
}
body.wl-page .back {
    position: absolute;
    left: 12px;
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}
body.wl-page .title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
}
body.wl-page .main-container {
    margin-top: calc(var(--fe-header-h) + 8px);
    padding: 0 12px 24px;
}
body.wl-page .wl-panel {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-xl);
    padding: 24px;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
}

body.wl-page .recharge-card,
body.wl-page .withdraw-card {
    background: linear-gradient(135deg, var(--fe-primary-dark), var(--fe-primary));
    border-radius: var(--fe-radius-lg);
    padding: 28px 24px;
    color: var(--fe-text-inverse);
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--fe-primary-ring);
}
body.wl-page .recharge-card::after,
body.wl-page .withdraw-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -60px;
    top: -50px;
    pointer-events: none;
}
body.wl-page .recharge-card h4,
body.wl-page .withdraw-card h4 {
    font-size: 16px;
    opacity: 0.92;
    margin: 0 0 12px;
    font-weight: 500;
}
body.wl-page .recharge-card .balance,
body.wl-page .withdraw-card .balance {
    font-size: 32px;
    font-weight: 700;
}

body.wl-page .amount-box,
body.wl-page .pay-box { margin-bottom: 24px; }
body.wl-page .amount-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fe-text-primary);
}
body.wl-page .amount-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
body.wl-page .amount-item {
    background: var(--fe-bg-subtle);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-md);
    padding: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--fe-text-primary);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.wl-page .amount-item.active {
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    border-color: var(--fe-primary);
    box-shadow: 0 2px 8px var(--fe-primary-ring);
}
body.wl-page .pay-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
body.wl-page .pay-item {
    background: var(--fe-bg-subtle);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-md);
    padding: 14px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
body.wl-page .pay-item.active {
    background: var(--fe-primary-soft);
    border-color: var(--fe-primary);
    box-shadow: inset 0 0 0 1px var(--fe-primary);
}
body.wl-page .pay-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
body.wl-page .pay-logo-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--fe-radius-sm);
    overflow: hidden;
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fe-border-light);
}
body.wl-page .pay-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
body.wl-page .pay-item.disabled .pay-logo { opacity: 0.55; filter: grayscale(100%); }
body.wl-page .pay-body { flex: 1; min-width: 0; }
body.wl-page .pay-item .pay-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--fe-text-primary);
}
body.wl-page .pay-item .pay-hint {
    font-size: 12px;
    color: var(--fe-text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}
body.wl-page .pay-item .pay-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--fe-radius-pill);
    background: var(--fe-danger-soft);
    color: var(--fe-danger-text);
}
body.wl-page .auto-tip {
    font-size: 12px;
    color: var(--fe-text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}
body.wl-page .tips {
    background: var(--fe-bg-subtle);
    padding: 14px 16px;
    border-radius: var(--fe-radius-md);
    font-size: 13px;
    color: var(--fe-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    border: 1px solid var(--fe-border-light);
}
body.wl-page .form-group { margin-bottom: 20px; }
body.wl-page .form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--fe-text-primary);
}
body.wl-page .form-control {
    width: 100%;
    height: 44px;
    border-radius: var(--fe-radius-md);
    border: 1px solid var(--fe-border);
    box-shadow: none;
    font-size: 15px;
    padding: 0 12px;
    background: var(--fe-bg-subtle);
    color: var(--fe-text-primary);
}
body.wl-page .form-control:focus {
    outline: none;
    border-color: var(--fe-primary-light);
    box-shadow: 0 0 0 3px var(--fe-primary-ring);
    background: var(--fe-bg-card);
}
body.wl-page .btn-submit {
    width: 100%;
    height: 48px;
    border-radius: var(--fe-radius-md);
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    font-size: 16px;
    font-weight: 600;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--fe-primary-ring);
}
body.wl-page .btn-submit:active { background: var(--fe-primary-dark); }
body.wl-page .btn-submit:disabled {
    background: var(--fe-bg-muted);
    color: var(--fe-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ══════════════════════════════════════
   账号设置 pf-page
   ══════════════════════════════════════ */
body.pf-page {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fe-bg-page);
    color: var(--fe-text-primary);
}
body.pf-page * { box-sizing: border-box; }

body.pf-page .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fe-header-h);
    background: var(--fe-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-sm);
    z-index: 1000;
}
body.pf-page .back {
    position: absolute;
    left: 12px;
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}
body.pf-page .title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fe-text-primary);
}
body.pf-page .main-container {
    margin-top: calc(var(--fe-header-h) + 8px);
    padding: 0 12px 24px;
    min-height: calc(100vh - var(--fe-header-h));
}
body.pf-page .panel-body {
    background: var(--fe-bg-card);
    border-radius: var(--fe-radius-xl);
    padding: 24px;
    border: 1px solid var(--fe-border-light);
    box-shadow: var(--fe-shadow-sm);
}
body.pf-page .page-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--fe-text-primary);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fe-border-light);
}
body.pf-page .profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}
body.pf-page .profile-user-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fe-bg-card);
    box-shadow: 0 4px 12px var(--fe-primary-ring);
    display: block;
}
body.pf-page .profile-avatar-text {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    color: var(--fe-text-inverse);
    border-radius: 50%;
    line-height: 100px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}
body.pf-page .profile-avatar-container:hover .profile-avatar-text,
body.pf-page .profile-avatar-container:focus-within .profile-avatar-text {
    display: block;
}
body.pf-page .profile-avatar-container button {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
body.pf-page .form-group { margin-bottom: 22px; }
body.pf-page .control-label {
    font-size: 15px;
    color: var(--fe-text-primary);
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}
body.pf-page .form-control {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-md);
    font-size: 15px;
    background: var(--fe-bg-subtle);
    width: 100%;
    color: var(--fe-text-primary);
}
body.pf-page .form-control:focus {
    outline: none;
    border-color: var(--fe-primary-light);
    box-shadow: 0 0 0 3px var(--fe-primary-ring);
    background: var(--fe-bg-card);
}
body.pf-page .form-control:disabled {
    background: var(--fe-bg-muted);
    color: var(--fe-text-secondary);
    cursor: not-allowed;
}
body.pf-page .input-group {
    display: flex;
    align-items: stretch;
}
body.pf-page .input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
body.pf-page .btn-change {
    height: 44px;
    padding: 0 16px;
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    border: none;
    border-top-right-radius: var(--fe-radius-md);
    border-bottom-right-radius: var(--fe-radius-md);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.pf-page .form-footer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}
body.pf-page .btn {
    height: 46px;
    padding: 0 28px;
    border-radius: var(--fe-radius-pill);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.pf-page .btn-primary {
    background: var(--fe-primary);
    color: var(--fe-text-inverse);
    box-shadow: 0 2px 8px var(--fe-primary-ring);
}
body.pf-page .btn-default {
    background: var(--fe-bg-muted);
    color: var(--fe-text-primary);
}
body.pf-page .form-layer {
    height: 100%;
    min-height: 150px;
    min-width: 300px;
    position: relative;
}
body.pf-page .form-body {
    width: 100%;
    overflow: auto;
    position: absolute;
    top: 0;
    bottom: 50px;
    padding: 15px;
    z-index: 10;
}
body.pf-page .form-layer .form-footer {
    height: 50px;
    line-height: 50px;
    background: var(--fe-bg-subtle);
    width: 100%;
    position: absolute;
    bottom: 0;
    margin: 0;
    z-index: 200;
    border-top: 1px solid var(--fe-border-light);
}
body.pf-page .form-footer .form-group { margin: 0; }
