/* =====================================================================
   多链资产调度底座 — 控制台样式
   聚名系统 (LayuiAdmin 经典企业级后台) 设计语言：
   深黛青导航 #20222A / #2F4056 · 翡翠绿主操作 #009688 · 极简白灰主体 #F2F2F2
   ===================================================================== */

html, body { height: 100%; }
body { background: #f2f2f2; color: #333; font-size: 13px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; }

/* ------------------------------ 顶部主栏 ------------------------------ */
.tb-header { height: 56px; background: #20222a; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.tb-header .tb-logo { float: left; width: 200px; height: 56px; line-height: 56px; color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: .5px; padding-left: 18px; box-sizing: border-box;
  background: #1a1c22; }
.tb-header .tb-logo i { color: #009688; margin-right: 8px; font-size: 18px; vertical-align: -1px; }

.tb-nav { float: left; height: 56px; }
.tb-nav a { display: inline-block; height: 56px; line-height: 56px; padding: 0 20px; color: #b8bcc4;
  font-size: 14px; transition: all .2s; position: relative; }
.tb-nav a:hover { color: #fff; background: #2f4056; }
.tb-nav a.active { color: #fff; background: #2f4056; }
.tb-nav a.active:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #009688; }

.tb-header-right { float: right; height: 56px; }
.tb-header-right > li { float: left; height: 56px; line-height: 56px; padding: 0 13px; color: #b8bcc4; cursor: pointer; transition: all .2s; }
.tb-header-right > li:hover { color: #fff; background: #2f4056; }
.tb-header-right > li i { font-size: 16px; vertical-align: -2px; }
.tb-user { color: #dfe2e6 !important; font-size: 13px; }
.tb-user i { margin-right: 5px; }

/* ------------------------------ 侧边菜单 ------------------------------ */
.tb-side { top: 56px; width: 200px; background: #20222a; }
.tb-side-scroll { width: 200px; }
.tb-side .layui-nav { background: transparent; padding: 0; }
.tb-side .layui-nav-item { position: relative; }
.tb-side .layui-nav-item a { height: 40px; line-height: 40px; color: #a9adb6; font-size: 13px; padding-left: 42px;
  padding-right: 12px; transition: all .2s; }
.tb-side .layui-nav-item a:hover { color: #fff; background: #2f4056; }
.tb-side .layui-nav-itemed > a, .tb-side .layui-nav-item a.active { color: #fff; background: #009688; }
.tb-side .layui-nav-item a.active:before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #01b593; }
.tb-side .layui-nav-item > a > i { position: absolute; left: 16px; top: 0; font-size: 15px; line-height: 40px; }
.tb-side .layui-nav-child { background: #2f4056; }
.tb-side .layui-nav-child dd a { height: 36px; line-height: 36px; padding-left: 52px; color: #c3c8d0; }
.tb-side .layui-nav-child dd a:hover { color: #fff; background: #009688; }
.tb-side .layui-nav-child dd a.active { color: #fff; background: #009688; }
.tb-side .layui-nav-child dd a.active:before { display: none; }
.tb-nav-group { padding: 14px 0 6px 18px; color: #6a6e78; font-size: 11px; letter-spacing: 1px; }

/* ------------------------------ 内容区 ------------------------------ */
.tb-body { left: 200px; top: 56px; background: #f2f2f2; }
.tb-tabs { margin: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); height: 38px; position: relative; }
.tb-tabs .layui-tab-title { border-bottom: none; height: 38px; background: #f2f2f2; padding-right: 120px; }
.tb-tabs .layui-tab-title li { line-height: 38px; min-width: 90px; padding: 0 30px 0 14px; color: #5b6770; font-size: 13px; border-right: 1px solid #e6e6e6; }
.tb-tabs .layui-tab-title li.layui-this { color: #009688; background: #fff; }
.tb-tabs .layui-tab-title li.layui-this:after { display: none; }
.tb-tabs .layui-tab-title li .layui-tab-close { top: 12px; }
.tb-tabs .layui-tab-title li.layui-this .layui-tab-close { color: #009688; }
.tb-tabs .tb-tabs-tool { position: absolute; right: 0; top: 0; height: 38px; line-height: 38px; padding: 0 12px; background: #f2f2f2; border-left: 1px solid #e6e6e6; }
.tb-tabs .tb-tabs-tool i { color: #7a848e; margin-left: 10px; cursor: pointer; font-size: 15px; }
.tb-tabs .tb-tabs-tool i:hover { color: #009688; }
.tb-tab-content { border: none; padding: 0; }
.tb-frame { display: block; width: 100%; border: 0; }

/* ------------------------------ 页面通用 ------------------------------ */
.tb-page { padding: 12px; }
.tb-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 2px; margin-bottom: 12px; }
.tb-card-hd { height: 40px; line-height: 40px; padding: 0 14px; border-bottom: 1px solid #f2f2f2; color: #333; font-size: 14px; font-weight: 600; }
.tb-card-hd .tb-bar { display: inline-block; width: 3px; height: 14px; background: #009688; vertical-align: -2px; margin-right: 8px; }
.tb-card-hd .tb-more { float: right; font-weight: 400; color: #999; font-size: 12px; cursor: pointer; }
.tb-card-hd .tb-more:hover { color: #009688; }
.tb-card-bd { padding: 14px; }

.tb-filter { padding: 12px 14px 0; background: #fff; border: 1px solid #e6e6e6; border-radius: 2px; margin-bottom: 12px; }
.tb-filter .layui-form-item { margin-bottom: 12px; }
.tb-filter .layui-input, .tb-filter .layui-select, .tb-filter .layui-textarea { height: 32px; line-height: 32px; font-size: 13px; }
.tb-filter .layui-form-label { width: 78px; padding: 6px 10px; font-size: 13px; color: #5b6770; }
.tb-filter .layui-input-block { margin-left: 88px; }
.tb-filter .layui-form-select dl { top: 34px; }

.layui-table-view { border-color: #e6e6e6; }
.layui-table th { background: #f2f2f2; color: #4a555f; font-weight: 600; font-size: 12.5px; }
.layui-table td, .layui-table th { font-size: 12.5px; padding: 8px 10px; }
.layui-table tbody tr:hover { background: #f2fbf9; }
.layui-table-cell { height: 28px; line-height: 28px; }
.layui-table-tool { background: #fff; border-bottom: 1px solid #f2f2f2; }

.layui-btn { height: 32px; line-height: 32px; font-size: 13px; padding: 0 14px; border-radius: 2px; }
.layui-btn-sm { height: 28px; line-height: 28px; padding: 0 10px; font-size: 12px; }
.layui-input, .layui-select, .layui-textarea { font-size: 13px; }
.tb-btn-primary { background-color: #009688; }
.tb-btn-primary:hover { background-color: #018073; }

.tb-tab-menu { padding: 4px 0; }
.tb-tab-menu a { display: block; padding: 6px 16px; color: #dfe2e6; font-size: 12.5px; cursor: pointer; }
.tb-tab-menu a:hover { background: #009688; color: #fff; }

.tb-input-sm { width: 130px; }
.tb-input-md { width: 170px; }
.tb-input-lg { width: 220px; }
.tb-input-xl { width: 520px; max-width: 100%; }

.tb-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-stat { flex: 1 1 160px; background: #fff; border: 1px solid #e6e6e6; border-radius: 2px; padding: 16px; position: relative; overflow: hidden; }
.tb-stat .tb-stat-label { color: #999; font-size: 12px; margin-bottom: 10px; }
.tb-stat .tb-stat-value { font-size: 24px; font-weight: 600; color: #333; line-height: 1.1; font-family: "DIN Alternate", Menlo, Consolas, monospace; }
.tb-stat .tb-stat-foot { color: #999; font-size: 11px; margin-top: 8px; }
.tb-stat .tb-stat-icon { position: absolute; right: 14px; top: 18px; font-size: 30px; color: #f2f2f2; }
.tb-stat.c-cyan .tb-stat-value { color: #009688; }
.tb-stat.c-green .tb-stat-value { color: #01b593; }
.tb-stat.c-red .tb-stat-value { color: #ed4040; }
.tb-stat.c-orange .tb-stat-value { color: #ffb800; }
.tb-stat.c-blue .tb-stat-value { color: #3ebdff; }

.tb-tag { display: inline-block; padding: 0 7px; height: 20px; line-height: 20px; border-radius: 2px; font-size: 11.5px; }
.tb-tag-cyan { background: #e6f5f3; color: #00796b; }
.tb-tag-green { background: #e6f7f1; color: #018073; }
.tb-tag-red { background: #fdecec; color: #d63a3a; }
.tb-tag-orange { background: #fff7e6; color: #cc9200; }
.tb-tag-blue { background: #e9f6ff; color: #1a8fd1; }
.tb-tag-gray { background: #f2f2f2; color: #6b7680; }
.tb-tag-purple { background: #f2ecfb; color: #7a4bd0; }

.tb-mono { font-family: Menlo, Consolas, monospace; font-size: 12px; }
.tb-muted { color: #999; }
.tb-right { text-align: right; }
.tb-link { color: #009688; cursor: pointer; }
.tb-link:hover { text-decoration: underline; }
.tb-danger { color: #ed4040; }
.tb-empty { padding: 40px; text-align: center; color: #999; font-size: 13px; }

.tb-panel { background: #fff; border: 1px solid #e6e6e6; border-radius: 2px; padding: 16px; }
.tb-form-narrow .layui-form-label { width: 120px; }
.tb-form-narrow .layui-input-block { margin-left: 150px; }
.tb-sep { height: 1px; background: #f2f2f2; margin: 14px 0; }
.tb-kv { line-height: 26px; font-size: 13px; }
.tb-kv b { display: inline-block; min-width: 120px; color: #999; font-weight: 400; }
.tb-code { background: #f7f7f7; border: 1px solid #e6e6e6; padding: 10px; font-family: Menlo, Consolas, monospace;
  font-size: 12px; color: #3c4750; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

.layui-layer-title { font-size: 14px; }
.layui-layer-page .layui-layer-content { font-size: 13px; }
.layui-form-label { font-size: 13px; }
.layui-form-item .layui-inline { margin-bottom: 0; }

.tb-progress { height: 6px; background: #f2f2f2; border-radius: 3px; overflow: hidden; display: inline-block; width: 90px; vertical-align: middle; }
.tb-progress span { display: block; height: 100%; background: #009688; }
.tb-progress.green span { background: #01b593; }
.tb-progress.red span { background: #ed4040; }

.tb-heat { display: block; height: 22px; border-radius: 2px; }

/* =====================================================================
   新手易懂层（见 docs/beginner_guide.md 与 docs/ux_rules.md）
   1) 任何"看不懂的字段"旁边跟一个「?」，鼠标移上去出白话解释；
   2) 页面顶部用 .tb-explain 先讲清这一步在干什么；
   3) 创建类操作给明确回执，不用用户自己猜。
   ===================================================================== */

/* 「?」角标 */
.tb-help { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center;
  border-radius: 50%; background: #e8eef7; color: #3a6ea5; font-size: 11px; font-weight: 700;
  cursor: help; margin-left: 4px; vertical-align: 1px; user-select: none; }
.tb-help:hover { background: #3a6ea5; color: #fff; }

/* 悬浮解释气泡：挂在 body 上，避免被表格单元格的 overflow 裁掉 */
#tb-tip { position: absolute; z-index: 99999999; max-width: 330px; background: #2f3b4a; color: #fff;
  padding: 9px 11px; border-radius: 4px; font-size: 12.5px; line-height: 1.75;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); display: none; }
#tb-tip b { color: #7fe3d4; font-weight: 600; }
#tb-tip code { background: #45525f; padding: 1px 5px; border-radius: 2px;
  font-family: Menlo, Consolas, monospace; font-size: 11.5px; }

/* 白话说明卡 */
.tb-explain { background: #f5fbfa; border: 1px solid #cfe9e5; border-left: 3px solid #009688;
  border-radius: 2px; padding: 12px 14px; margin-bottom: 12px; color: #44515c;
  font-size: 12.5px; line-height: 1.9; }
.tb-explain h4 { font-size: 13.5px; color: #00796b; margin-bottom: 6px; font-weight: 600; }
.tb-explain ul { margin: 0; padding-left: 18px; }
.tb-explain li { margin-bottom: 3px; }
.tb-explain code { background: #e8f2f0; padding: 1px 5px; border-radius: 2px;
  font-family: Menlo, Consolas, monospace; }

/* 多链勾选网格 */
.tb-chainpick { border: 1px solid #e6e6e6; border-radius: 2px; padding: 8px 10px;
  max-height: 240px; overflow: auto; background: #fff; }
.tb-chainpick-title { color: #8a949e; font-size: 11.5px; margin: 4px 0 6px; }
.tb-chainpick-item { display: inline-block; min-width: 158px; margin: 0 10px 6px 0; }
.tb-chainpick-item label { cursor: pointer; }
.tb-chainpick-item em { color: #a8b0b8; font-style: normal; font-size: 11px; }
.tb-chainpick-actions { margin-bottom: 6px; }
.tb-chainpick-actions a { margin-right: 14px; }

/* 创建结果与余额展示 */
.tb-warn { color: #d63a3a; }
.tb-ok { color: #018073; }
.tb-bal-list { line-height: 1.75; }
.tb-bal-list .tb-bal-token { color: #8a949e; }
.tb-chain-tags span { display: inline-block; background: #eef3f8; color: #4a6b8a; border-radius: 2px;
  padding: 0 6px; margin: 0 3px 3px 0; font-size: 11.5px; }
.tb-result-mnemonic { background: #fff8e6; border: 1px solid #ffe1a8; border-radius: 2px;
  padding: 10px; font-family: Menlo, Consolas, monospace; font-size: 14px; line-height: 2;
  letter-spacing: .5px; word-break: break-all; }
