/* 全局重置 */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', sans-serif;
    background: #f5f7fa;
}

#app {
    height: 100%;
}

/* 布局框架 */
.app-container {
    height: 100%;
}

.aside-menu {
    background-color: #304156;
    color: #fff;
    height: 100%;
    transition: width 0.3s;
    overflow-x: hidden;
}

.el-menu-vertical {
    border-right: none;
}

.logo-box {
    height: 60px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    background: #2b3649;
}

.main-header {
    background: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
    z-index: 9;
}

.main-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
    box-sizing: border-box;
}

/* 内容卡片 */
.content-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #fdfdfd;
    padding: 10px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
}

.pagination-bar {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* 地址与复制 */
.addr-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.addr-box:hover {
    color: #409EFF;
}

.copy-btn {
    color: #909399;
    margin-left: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.copy-btn:hover {
    color: #409EFF;
    transform: scale(1.2);
}

/* 统计行 (画像) */
.stat-row {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 颜色定义 */
.c-bnb {
    color: #E6A23C;
}

.c-total {
    color: #409EFF;
}

.c-recent {
    color: #67C23A;
}

.warning-tag {
    margin-left: 4px;
    padding: 0 4px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    transform: translateY(-1px);
}

/* 多币种标签 */
.asset-row {
    margin-top: 6px;
    border-top: 1px dashed #ebeef5;
    padding-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #606266;
    border: 1px solid #e9e9eb;
}

.asset-key {
    font-weight: 800;
    margin-right: 4px;
}

.t-USDT {
    color: #26A17B;
}

.t-BNB {
    color: #F0B90B;
}

.t-ETH {
    color: #627EEA;
}

.t-BTC {
    color: #F7931A;
}

.t-USDC {
    color: #2775CA;
}


/* ================== 地址详情页样式 ================== */

/* 头部样式 */
.detail-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.back-btn {
    margin-right: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sub-title {
    font-size: 13px;
    color: #909399;
    margin-bottom: 4px;
}

.main-address {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
    color: #303133;
    display: flex;
    align-items: center;
}

/* 余额卡片布局 */
.balance-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 单个卡片样式 */
.b-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #f2f3f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.b-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e4e7ed;
}

/* 图标圆圈 */
.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 卡片文字 */
.card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.b-title {
    font-size: 12px;
    color: #909399;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b-val {
    font-size: 22px;
    font-weight: bold;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Helvetica Neue', sans-serif;
}

/* 动态币种颜色 */
.bg-BNB {
    background: linear-gradient(135deg, #f0b90b 0%, #d8a300 100%);
}

.bg-USDT {
    background: linear-gradient(135deg, #26a17b 0%, #1d8262 100%);
}

.bg-ETH {
    background: linear-gradient(135deg, #627eea 0%, #4a63c5 100%);
}

.bg-BTC {
    background: linear-gradient(135deg, #f7931a 0%, #d67a0e 100%);
}

.bg-USDC {
    background: linear-gradient(135deg, #2775ca 0%, #1b5fa8 100%);
}


.bg-WBTC {
    background: linear-gradient(135deg, #f7931a 0%, #d67a0e 100%);
}

/* 列表与通用 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    margin: 0;
    border-left: 4px solid #409EFF;
    padding-left: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.sub-text {
    font-size: 12px;
    color: #999;
}

.addr-link {
    font-weight: bold;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.addr-link:hover {
    color: #409EFF;
}

.hash-link {
    color: #409EFF;
    text-decoration: none;
}

.hash-link:hover {
    text-decoration: underline;
}

.no-data-tip {
    padding: 40px;
    text-align: center;
    color: #ccc;
    grid-column: 1 / -1;
    border: 1px dashed #eee;
    border-radius: 8px;
}


/* ================== 主钱包页面样式 (Master Wallet) ================== */

/* 布局框架 */
.master-layout {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    /* 关键：允许小屏幕换行 */
}

/* 左侧二维码面板 */
.qr-panel {
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ebeef5;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.qr-box {
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    word-break: break-all;
}

.address-row:hover {
    background: #ecf5ff;
    color: #409EFF;
}

.addr-text {
    font-family: monospace;
    font-weight: bold;
    font-size: 12px;
}

.tip-box {
    margin-top: 15px;
    font-size: 12px;
    color: #909399;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 右侧资产面板 */
.assets-panel {
    flex: 1;
    min-width: 300px;
    max-width: 900px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 【核心样式】多列横向排布 */
.coins-container {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 15px;
    /* 卡片间距 */
}

/* 单个代币卡片 */
.coin-card {
    flex: 1 1 180px;
    /* 弹性宽度：基础180px，允许伸缩 */
    min-width: 160px;
    /* 最小宽度，防止太挤 */
    max-width: 240px;
    /* 最大宽度 */
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    /* 圆角 */
    padding: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.coin-card:hover {
    transform: translateY(-2px);
    /* 悬浮上移 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e4e7ed;
}

/* 图标 */
.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 颜色复用 (防止之前的样式没覆盖到) */
.bg-BNB {
    background: linear-gradient(135deg, #f0b90b 0%, #d8a300 100%);
}

.bg-USDT {
    background: linear-gradient(135deg, #26a17b 0%, #1d8262 100%);
}

.bg-ETH {
    background: linear-gradient(135deg, #627eea 0%, #4a63c5 100%);
}

.bg-BTC {
    background: linear-gradient(135deg, #f7931a 0%, #d67a0e 100%);
}

.bg-USDC {
    background: linear-gradient(135deg, #2775ca 0%, #1b5fa8 100%);
}

/* 文字信息 */
.coin-info {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.coin-name {
    font-size: 12px;
    color: #909399;
    margin-bottom: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.coin-val {
    font-size: 18px;
    font-weight: 800;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tip-bsc {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
}

.tip-eth {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.tip-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.el-table .manual-row {
    --el-table-tr-bg-color: #f3dab7;
    /* 淡橙色背景 */
}

.el-table .manual-row:hover>td {
    background-color: #f5f7fa !important;
}

.total-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.total-item {
    flex: 1;
    background: #fff;
    border: 1px solid #ebeef5;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.t-label {
    font-size: 13px;
    color: #909399;
    margin-bottom: 5px;
}

.t-value {
    font-size: 24px;
    font-weight: 800;
    color: #303133;
}