Files
thebet365/apps/player/src/styles/desktop/layout.css
Mars 8a1ba0fd95 feat(player): 新增桌面端 UI 与响应式双端路由架构
- 将原移动端页面重命名为 Mobile*,新增 22 个 Desktop* 视图与 DesktopShell 布局体系
- 路由入口改为 Wrapper 视图,通过 useViewport(≥1024px)自动切换移动/桌面端
- 新增投注单面板、盘口弹层、联赛侧栏、数据表格等桌面组件及独立样式令牌
- 扩展 betSlip store、串关筛选、冠军盘、Toast/悬浮信箱等交互与三语 i18n
- 公告/消息 Hub 拆分移动与桌面实现;API 投注/钱包/充值记录支持 pageSize 分页
2026-06-29 18:01:39 +08:00

185 lines
3.4 KiB
CSS

/* Desktop Global layout structure */
.desktop-shell {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
background-color: #000;
background-image: url('../../assets/images/pcbg.webp');
background-size: cover;
background-position: center;
background-attachment: fixed;
overflow: hidden;
}
.desktop-header-wrap {
flex-shrink: 0;
height: var(--desktop-header-h);
background: #111111;
border-bottom: 1px solid var(--border);
z-index: 120;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
}
.desktop-marquee-wrap {
flex-shrink: 0;
z-index: 110;
border-bottom: 1px solid var(--border);
background: #111;
}
.desktop-main-container {
flex: 1;
display: flex;
min-height: 0;
overflow: hidden;
position: relative;
}
/* Betting Layout: Sports bar + Left Sidebar + Center View + Right Betslip */
.desktop-layout-betting-wrap {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 0;
}
.desktop-betting-sports-row {
flex-shrink: 0;
width: 100%;
padding: 0 16px;
border-bottom: 1px solid var(--border);
background: rgba(14, 14, 14, 0.85);
}
.desktop-layout-betting {
display: grid;
grid-template-columns: var(--desktop-left-sidebar-w) 1fr var(--desktop-right-betslip-w);
flex: 1;
width: 100%;
min-height: 0;
}
.desktop-betting-left {
border-right: 1px solid var(--border);
background: rgba(14, 14, 14, 0.6);
overflow-y: auto;
}
.desktop-betting-center {
overflow-y: auto;
padding: 14px 16px;
min-width: 0;
}
.desktop-betting-center.is-betting-detail {
padding: 0;
}
.desktop-betting-right {
border-left: 1px solid var(--border);
background: rgba(14, 14, 14, 0.85);
overflow-y: auto;
}
/* Account Layout: full-width records center */
.desktop-layout-account {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 0;
}
.desktop-account-center {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
min-height: 0;
overflow: hidden;
padding: 28px 40px 40px;
}
.desktop-account-center > .desktop-records-page {
flex: 1;
min-height: 0;
}
.desktop-account-center > .desktop-account-page {
flex: 1;
min-height: 0;
overflow-y: auto;
}
.desktop-layout-hub-outer {
display: flex;
flex: 1;
width: 100%;
min-height: 0;
overflow: hidden;
}
/* Marketing / Home Layout: Single Column centered */
.desktop-layout-marketing {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow-y: auto;
align-items: center;
padding: 20px;
}
.desktop-marketing-content {
width: 100%;
max-width: 1400px;
}
/* Hub Layout: Left Sidebar (List) + Right Outlet (Detail) */
.desktop-layout-hub {
display: grid;
grid-template-columns: 320px 1fr;
width: 100%;
height: 100%;
}
.desktop-hub-left {
border-right: 1px solid var(--border);
background: rgba(14, 14, 14, 0.6);
overflow: hidden;
display: flex;
flex-direction: column;
}
.desktop-hub-right {
overflow-y: auto;
padding: 20px;
background: rgba(10, 10, 10, 0.3);
}
/* Auth Layout: Centered container */
.desktop-layout-auth {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow-y: auto;
padding: 40px;
}
.desktop-auth-card {
width: 100%;
max-width: 440px;
padding: 30px;
background: rgba(20, 20, 20, 0.95);
border: 1px solid var(--border-gold-soft);
border-radius: 8px;
box-shadow: var(--shadow);
}