﻿/* =========================================================
   翼行云端 · 钱包系统主题（wallet-theme.css）
   必须在 layui.css 之后引入，用覆盖方式统一视觉，不改 vendored 文件。
   兼容性约束：不使用 CSS 变量 var()，不使用 flex gap。
   配色：主强调 #FF5A1E / 侧栏 #23262E / 画布 #F5F7F9 / 卡片 #FFF
   ========================================================= */

/* ---------- 0. 全局基调（壳 + iframe 内容页共用） ---------- */
body {
    background-color: #F5F7F9;
    color: #2B333E;
}

/* 细滚动条（WebKit 内核，其余浏览器自动忽略） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background-color: #C9D0DA; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: #AEB7C4; }
::-webkit-scrollbar-track { background-color: transparent; }

/* ---------- 1. 壳布局（仅 Index.cshtml，.wallet-shell 限定） ---------- */

/* 顶栏：白底、60px、细分割线 */
.wallet-shell .layui-header {
    height: 60px;
    left: 200px;
    background-color: #fff;
    border-bottom: 1px solid #E7EBF1;
    box-shadow: 0 1px 4px rgba(36, 46, 66, .04);
}

.wallet-shell .layui-header .layui-nav {
    background: none;
    padding: 0 10px;
}

.wallet-shell .layui-header .layui-nav .layui-nav-item {
    line-height: 60px;
}

.wallet-shell .layui-header .layui-nav .layui-nav-item > a {
    padding: 0 16px;
    color: #5F6A7A;
}

.wallet-shell .layui-header .layui-nav .layui-nav-item > a:hover {
    color: #FF5A1E;
}

.wallet-shell .layui-header .layui-nav-child {
    top: 54px;
    border: 1px solid #EDF0F5;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(36, 46, 66, .10);
}

.wallet-shell .layui-header .layui-nav-child dd a {
    color: #5F6A7A;
}

.wallet-shell .layui-header .layui-nav-child dd a:hover {
    background-color: #F7F9FB;
    color: #2B333E;
}

/* 干掉 layui 顶部动画条与选中下划线（壳内两处导航都不需要） */
.wallet-shell .layui-nav .layui-nav-bar,
.wallet-shell .layui-nav .layui-this:after {
    display: none;
}

/* 侧栏：通栏深色（与主系统一致 #2F363C），logo 区同底色连成一体 */
.wallet-shell .layui-side {
    top: 0;
    z-index: 1001;
    background-color: #2F363C;
    box-shadow: 2px 0 10px rgba(15, 18, 26, .18);
}

.wallet-shell .wallet-side-logo {
    height: 60px;
    line-height: 60px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .15);
}

.wallet-shell .wallet-side-logo img {
    /* login.png 原始尺寸 177x35，与主系统渲染一致 */
    vertical-align: middle;
}

.wallet-shell .layui-side-scroll {
    height: -webkit-calc(100% - 60px);
    height: calc(100% - 60px);
    box-sizing: border-box;
}

/* 侧栏菜单：圆角块状项、图标定宽 */
.wallet-shell .layui-side .layui-nav {
    width: 200px;
    padding: 0;
    background: none;
}

/* 菜单项：与主系统 layui-nav-tree 完全一致（40px 行高 + 上下 5px，内缩 20px，图标再缩进 20px） */
.wallet-shell .layui-side .layui-nav-item {
    line-height: 40px;
    margin: 0;
    width: 100%;
}

.wallet-shell .layui-side .layui-nav-item a {
    height: 40px;
    line-height: 40px;
    padding: 5px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, .70);
    transition: all .3s;
    -webkit-transition: all .3s;
}

.wallet-shell .layui-side .layui-nav-item a:hover {
    background: none;
    color: #fff;
}

.wallet-shell .layui-side .layui-nav-item a .fa {
    width: 16px;
    margin-left: 20px;
    margin-right: 5px;
    text-align: center;
    font-size: 14px;
}

/* 选中项：整条青绿高亮（与主系统一致） */
.wallet-shell .layui-side .layui-nav-tree .layui-this {
    background: none;
}

.wallet-shell .layui-side .layui-nav-tree .layui-this > a,
.wallet-shell .layui-side .layui-nav-tree .layui-this > a:hover {
    background-color: #16baaa;
    color: #fff;
}

/* 内容区：iframe 纯 CSS 撑满，无需 JS 计算 */
.wallet-shell .layui-body {
    top: 60px;
    bottom: 0;
    padding-bottom: 0;
    background-color: #F5F7F9;
}

.wallet-shell #_MainContent {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 2. 内容页设计系统（iframe 内页共用） ---------- */

.w-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.w-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(36, 46, 66, .06);
    padding: 24px;
}

.w-card + .w-card {
    margin-top: 16px;
}

.w-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2B333E;
    line-height: 1.2;
    margin: 0 0 18px;
    padding-left: 10px;
    border-left: 3px solid #FF5A1E;
}

/* 数字使用等宽数字字形（不支持的浏览器自动忽略） */
.w-num {
    font-variant-numeric: tabular-nums;
}

/* 表格：浅灰表头、柔和边框、暖色悬浮行 */
.layui-table-view {
    border-color: #EDF0F5;
    border-radius: 6px;
}

.layui-table td,
.layui-table th {
    border-color: #EDF0F5;
}

.layui-table th {
    background-color: #F7F9FB;
    color: #5F6A7A;
    font-weight: 600;
}

.layui-table-hover,
.layui-table tbody tr:hover {
    background-color: #FFF7F2;
}

/* 分页：选中页码用主色 */
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #FF5A1E;
}

.layui-laypage a:hover {
    color: #FF5A1E;
}

/* 输入框 / 下拉框：默认边框加深，避免整体发虚发淡 */
.layui-input,
.layui-select,
.layui-textarea {
    border-color: #C9D0DA;
    color: #2B333E;
}

.layui-input:hover,
.layui-select:hover,
.layui-textarea:hover {
    border-color: #AEB7C4 !important;
}

/* 占位符略加深，空字段不发空发飘 */
.layui-input::-webkit-input-placeholder { color: #98A2B0; }
.layui-input:-ms-input-placeholder { color: #98A2B0; }
.layui-input::placeholder { color: #98A2B0; }

/* 输入框聚焦态统一主色 */
.layui-input:focus,
.layui-textarea:focus {
    border-color: #FF5A1E !important;
    box-shadow: 0 0 0 3px rgba(255, 90, 30, .08);
}

.layui-form-select dl dd.layui-this {
    background-color: #FFF0E9;
    color: #FF5A1E;
}

/* 日期面板选中色 */
.layui-laydate .layui-this {
    background-color: #FF5A1E !important;
}

/* 方块风格表单（layui-form-pane）标签浅色化 */
.layui-form-pane .layui-form-label {
    background-color: #F7F9FB;
    border-color: #C9D0DA;
    color: #5F6A7A;
}

.layui-form-item .layui-inline {
    margin-right: 12px;
    margin-bottom: 12px;
}

/* 大号 CTA 按钮（充值 / 提交） */
.w-btn-cta {
    height: 44px;
    line-height: 44px;
    padding: 0 46px;
    font-size: 16px;
    border-radius: 22px;
    background-color: #FF5A1E;
    box-shadow: 0 6px 14px rgba(255, 90, 30, .30);
    transition: all .2s;
    -webkit-transition: all .2s;
}

.w-btn-cta:hover {
    background-color: #E64A12;
    color: #fff;
    opacity: 1;
    box-shadow: 0 8px 18px rgba(255, 90, 30, .38);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* ---------- 3. 账户首页组件（WalletHome） ---------- */

.w-hero-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background-color: #FFF0E9;
    color: #FF5A1E;
    font-size: 24px;
    text-align: center;
}

.w-balance-label {
    font-size: 14px;
    color: #8A94A6;
    letter-spacing: 4px;
    margin-top: 18px;
}

.w-balance {
    margin-top: 12px;
    color: #2B333E;
    font-weight: 600;
    font-size: 52px;
    line-height: 1.1;
}

.w-balance .w-yuan {
    font-size: 26px;
    font-weight: 400;
    color: #5F6A7A;
    margin-right: 4px;
}

.w-stats {
    margin-top: 28px;
    font-size: 0;
}

.w-stat {
    display: inline-block;
    vertical-align: top;
    width: 200px;
    padding: 16px 0 14px;
    background-color: #F7F9FB;
    border-radius: 8px;
    margin: 0 10px;
    font-size: 14px;
}

.w-stat-label {
    display: block;
    color: #8A94A6;
    font-size: 13px;
    margin-bottom: 6px;
}

.w-stat-value {
    display: block;
    color: #2B333E;
    font-size: 20px;
    font-weight: 600;
}
