.tenant-mini .ti { flex: 1; min-width: 0; }
.tenant-mini .ti .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-mini .ti .r { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.tenant-mini .credit { text-align: right; }
.tenant-mini .credit .v { font-size: 14px; font-weight: 800; color: var(--amber); }
.tenant-mini .credit .t { font-size: 10.5px; color: var(--text-faint); margin: 2px 0 6px; }

.mine-main .card { padding: 22px; margin-bottom: 16px; }
.mine-main h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mine-main h3 .btn { margin-left: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 16px; margin-bottom: 0; }
.stat-card .v { font-size: 22px; font-weight: 800; }
.stat-card .t { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.task-item { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.task-item:last-child { border-bottom: none; }
.task-row { display: flex; align-items: center; gap: 12px; }
.task-row .st { flex-shrink: 0; }
.task-row .info { flex: 1; min-width: 0; }
.task-row .info .n { font-size: 13.5px; font-weight: 500; }
.task-row .info .m { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.task-row .progress { width: 130px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.task-row .progress > div { height: 100%; background: var(--grad); }
.task-row .pct { font-size: 12px; color: var(--text-dim); width: 40px; text-align: right; }
.task-row .act button { font-size: 12px; padding: 4px 11px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-dim); margin-left: 8px; }
.task-row .act button:hover { color: #ffb066; border-color: rgba(255,140,41,0.5); }

.order-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); transition: all 0.2s; }
.order-item:last-child { border-bottom: none; }
.order-item:hover { padding-left: 6px; }
.order-item .ph { width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .info .n { font-size: 13px; font-weight: 500; }
.order-item .info .m { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.order-item .price { font-size: 13px; color: var(--amber); font-weight: 600; }
.order-item button { font-size: 12px; padding: 4px 11px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-dim); margin-left: 6px; transition: all 0.2s; }
.order-item button:hover { color: #ffb066; border-color: rgba(255,140,41,0.5); }
.order-item .feat-on { color: #fbbf24 !important; border-color: rgba(251,191,36,0.5) !important; }

.asset-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.asset-sum .a-item { padding: 13px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 13px; transition: all 0.2s; }
.asset-sum .a-item:hover { border-color: rgba(255,150,60,0.45); transform: translateY(-2px); }
.asset-sum .a-item .c { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.asset-sum .a-item button { margin-top: 10px; font-size: 11.5px; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-dim); }
.asset-sum .a-item button:hover { color: #ffb066; border-color: rgba(255,140,41,0.5); }

/* ===== 资产库管理（我的 → 资产库） ===== */
/* 资产新建/编辑弹窗 */
.ast-mask { position: fixed; inset: 0; background: rgba(5, 8, 18, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; }
/* 2026-08-26：新增视角/历史弹窗须盖在资产弹窗之上（asset-ref-views 注入的 modal-mask 默认层级低于 ast-mask） */
#astViewModal, #astHistModal { z-index: 1100; }
/* 2026-09-01：变体弹窗须盖在资产弹窗之上（同项目页 assetVariantModal 层级） */
#astVarModal { z-index: 1100; }
/* 2026-09-01：添加变体参考图弹窗须盖在变体弹窗之上（对齐项目页 #charViewModal z-index:220 语义） */
#astVarViewModal { z-index: 1200; }
/* ===== 变体弹窗：对齐项目页 assetVariantModal 标准类（project.html 内联，全局缺失补齐） ===== */
.char-modal { width: 700px; padding: 20px; }
.char-modal::before { width: 340px; height: 150px; }
.cm-sec { padding: 14px 0 0; }
.cm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 0; }
#sfConfirmModal .cm-foot { padding-left: 0; padding-right: 0; justify-content: space-between; }
.cf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cf-fields .field { margin-bottom: 0; }
.cf-fields .field label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 5px; }
.cf-fields .full { grid-column: 1 / -1; }
.cf-fields input, .cf-fields select, .cf-fields textarea { width: 100%; box-sizing: border-box; }
.cf-fields textarea { min-height: 54px; line-height: 1.6; }
/* 角色 3 视角视图区：4 列网格（对齐项目页 #vvViews：#astVarViews 内卡片与「＋」按钮同宽一格） */
#astVarViews .cf-views-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#astVarViews .cv-row-add { grid-column: auto; }
#astVarViews .cv-row-add-empty { aspect-ratio: 1 / 1.15; min-height: 0; }
/* 资产弹窗变体列表：4 列网格（对齐项目页角色 #cfVariants，卡片与「＋」按钮同宽一格） */
#astVariantsBox .cf-views-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#astVariantsBox .cv-row-add { grid-column: auto; }
#astVariantsBox .cv-row-add-empty { aspect-ratio: 1 / 1.15; min-height: 0; }
/* 场景/道具单图参考图（对齐项目页 avmImgCard：#avmImgCard.cv-item 无边框透明） */
#astVarImgCard.cv-item { border: none; background: transparent; padding: 0; }
#astVarImgCard.cv-item:hover { border-color: transparent; transform: none; }
/* 资产新建/编辑弹窗：样式对齐项目页创建资产弹窗（project.html charModal modal-flat 扁平风格） */
.ast-modal {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  width: 640px; max-width: calc(100vw - 48px); max-height: 86vh;
  background: #16171f; border: none; border-radius: 18px; padding: 20px;
  box-shadow: none; animation: pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 标题 + 关闭按钮：标题在左占剩余空间，关闭按钮固定在右上（对齐项目页 .cm-head 分布） */
.ast-modal-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ast-modal-h #astTitle { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 700; }
.ast-x { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; border: none; background: transparent; color: var(--text-dim); font-size: 15px; cursor: pointer; transition: none; }
.ast-x:hover { color: var(--text-faint); }
/* 中间内容区独立滚动（对齐项目页 .cm-body），头部/底部按钮固定不随内容滚动 */
#astFields { flex: 1; min-height: 0; overflow-y: auto; align-content: start; }
/* 创建按钮统一高格（与卡片同尺寸 1:1.15）：上传参考图 / 资产图 / 变体列表 / 变体参考图 四处一致 */
#astFields .cf-views-grid .cv-row-add,
#astVariantsBox .cf-views-list .cv-row-add,
#astVarViews .cf-views-list .cv-row-add {
  aspect-ratio: 1 / 1.15; min-height: 0;
}
/* 配乐/音效/素材文件上传按钮（astFileUploadHTML）：小按钮样式 */
.ast-ref-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ast-ref-row button { font-size: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--text-dim); background: rgba(255,255,255,0.04); cursor: pointer; transition: all 0.2s; }
.ast-ref-row button:hover { color: #c7d2fe; border-color: rgba(255,150,60,0.5); }
.ast-ref-row button.ast-rm { color: #f87171; border-color: rgba(248,113,113,0.4); }
.ast-ref-row button.ast-rm:hover { background: rgba(248,113,113,0.12); }
/* SF.dropdown 浮层（挂 body）：必须盖过资产弹窗(1000) 与新增视角弹窗(1100)，否则下拉被遮罩挡住点不到 */
body > .asset-dd-pop { z-index: 1200; }
/* AI 生成加载层（对齐项目页角色参考图：加载状态显示在图片上） */
.cvm-pv-thumb { position: relative; }
.cvm-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; background: rgba(0,0,0,0.45); color: #fff;
  font-size: 12px; z-index: 2; pointer-events: none; border-radius: inherit;
}
.cvm-loading i { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: cvmSpin 0.8s linear infinite; }
@keyframes cvmSpin { to { transform: rotate(360deg); } }

.ast-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ast-grid .full { grid-column: 1 / -1; }
.ast-field label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.ast-field input, .ast-field select, .ast-field textarea { width: 100%; box-sizing: border-box; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.05); color: var(--text); font-size: 13px; outline: none; }
.ast-field input:focus, .ast-field select:focus, .ast-field textarea:focus { border-color: rgba(255,140,41,0.6); }
.ast-field textarea { min-height: 64px; resize: vertical; }
.ast-field .req { color: #f87171; }
.ast-field input:not([type="file"]),
.ast-field select,
.ast-field .sf-drop-trigger {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.mine-prompt-box { position: relative; }
.mine-prompt-box textarea { display: block; min-height: 96px; padding-right: 96px; }
.mine-prompt-box textarea { scrollbar-width: none; }
.mine-prompt-box textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mine-prompt-polish {
  position: absolute !important; right: 8px; bottom: 8px; z-index: 5;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: auto; height: auto; margin: 0; white-space: nowrap;
  font-size: 12px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(255,150,60,0.45); color: #ffd9b0;
  background: rgba(40,44,52,0.92); cursor: pointer;
}
.mine-prompt-polish:hover { color: #fff; border-color: rgba(255,150,60,0.75); }
.mine-main-img-area { width: 100%; }
.mine-main-cell {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.mine-main-cell .cv-row-add {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  min-height: 0;
}
.mine-main-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,140,41,0.15), rgba(255,145,50,0.1));
  border: 1px solid var(--border);
}
.mine-main-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mine-main-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(248,113,113,0.9);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine-main-del:hover { background: #ef4444; }
.mine-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.mine-main-actions button {
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.mine-main-actions button:hover {
  color: #fff;
  border-color: rgba(255,150,60,0.55);
  background: rgba(255,140,41,0.12);
}
#mineGenModal .asset-dd-trigger { max-width: 100%; overflow: hidden; }
#mineGenModal .asset-dd-val {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mineGenModal .asset-dd-item { white-space: nowrap; }
#mineGenModal .asset-dd-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ast-field .sf-drop[data-locked="1"], .sf-drop[data-locked="1"] {
  opacity: .58;
  pointer-events: none;
  cursor: not-allowed;
}
/* 下拉（对齐资产页 assets.html：胶囊触发 + 白底弹层） */
.sf-drop { position: relative; display: inline-flex; width: 100%; }
.sf-drop-trigger {
  width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05);
  color: var(--text); font-size: 13px; transition: all 0.2s; user-select: none;
}
.sf-drop-trigger:hover { border-color: rgba(255, 150, 60, 0.55); color: var(--text); background: rgba(255, 255, 255, 0.08); }
.sf-drop-trigger .sfd-val { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-drop-trigger .sfd-arrow { font-size: 10px; opacity: 0.7; flex: none; }
.sf-drop-trigger .sfd-arrow svg { width: 14px; height: 14px; display: block; }
.sf-drop[data-locked="1"] .sf-drop-trigger { opacity: 0.6; cursor: default; }
/* mine-assets 新建/编辑资产弹窗输入框：对齐首页创作配置弹窗 */
#astFields input:not([type="file"]),
#astFields select,
#astFields textarea,
#astFields .sf-drop-trigger {
  border: none;
  background: #0006;
  color: var(--text);
  transition: none !important;
  animation: none !important;
  caret-color: #ffd9b0;
}
#astFields input:not([type="file"]):focus,
#astFields select:focus,
#astFields textarea:focus,
#astFields .sf-drop-trigger:focus,
#astFields input:not([type="file"]):hover,
#astFields select:hover,
#astFields textarea:hover,
#astFields .sf-drop-trigger:hover {
  transition: none !important;
  animation: none !important;
  box-shadow: none;
  border-color: transparent;
  background-color: #0006;
}
.sf-drop-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  width: 100%; min-width: 220px; background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); display: none;
}
.sf-drop.open .sf-drop-pop { display: block; animation: sfdPopIn 0.18s ease; }
@keyframes sfdPopIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sf-drop-list { max-height: 260px; overflow-y: auto; }
.sfd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: #333; cursor: pointer; transition: background 0.15s; }
.sfd-item:hover { background: #f5f5f6; }
.sfd-item.on { background: #f0f1f2; font-weight: 600; }
.sfd-item .sfd-ck { margin-left: auto; color: #00b86b; font-style: normal; font-weight: 700; opacity: 0; }
.sfd-item.on .sfd-ck { opacity: 1; }
/* 资产类型下拉：与名称并列一行（等宽），使用标准 .sf-drop 样式 */
.sfd-pop-title { font-size: 12px; color: #999; padding: 6px 10px 8px; }
.ast-img { display: flex; align-items: flex-start; gap: 12px; }
.ast-img .ph { width: 76px; height: 76px; border-radius: 10px; border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-faint); background: rgba(255,255,255,0.03); cursor: pointer; overflow: hidden; flex-shrink: 0; transition: all 0.2s; position: relative; }
.ast-img .ph:hover { border-color: rgba(255,140,41,0.6); background: rgba(255,140,41,0.08); color: #ffb066; }
.ast-img .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ast-img .ph .chg { position: absolute; inset: auto 0 0 0; font-size: 10px; text-align: center; background: rgba(0,0,0,0.55); color: #fff; padding: 2px 0; opacity: 0; transition: opacity 0.2s; }
.ast-img .ph:hover .chg { opacity: 1; }
.ast-img img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.06); cursor: pointer; }
.ast-img img:hover { border-color: rgba(255,140,41,0.6); }
.ast-img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ast-img-grid .ast-img { flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(255,255,255,0.02); }
.ast-img-grid .ast-img .ph { width: 100%; height: 130px; }
.ast-view-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ast-up-tip { font-size: 11px; color: var(--text-faint); margin-top: 4px; line-height: 1.5; }
.ast-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ast-type-btns { display: block; width: 100%; } /* 2026-08-26：资产类型独占一行、铺满弹窗 */
#astTypes { width: 100%; }
.ast-type-btns button { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04); color: var(--text-dim); font-size: 12.5px; cursor: pointer; transition: all 0.2s; }
.ast-type-btns button.active { background: linear-gradient(135deg, rgba(255,140,41,0.35), rgba(255,145,50,0.25)); border-color: rgba(255,150,60,0.6); color: #fff; }
.ast-rm { color: #f87171 !important; border-color: rgba(248,113,113,0.4) !important; }
.ast-rm:hover { background: rgba(248,113,113,0.12) !important; }
/* 图片反推 */
.ast-rev-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ast-rev-row .thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border-strong); }
.ast-rev-out { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,140,41,0.08); border: 1px solid rgba(255,150,60,0.3); font-size: 12.5px; line-height: 1.7; color: var(--text-dim); display: none; }
.m-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.m-tabs button { padding: 6px 14px; font-size: 12.5px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-dim); transition: all 0.2s; cursor: pointer; }
.m-tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.m-tabs button.active { color: #fff; background: linear-gradient(135deg, rgba(255,140,41,0.22), rgba(255,145,50,0.18)); border-color: rgba(255,140,41,0.55); }
.m-tabs button .cnt { margin-left: 4px; opacity: 0.65; font-size: 11px; }

/* ===== 充值中心（参考充值中心案例图左右布局） ===== */
.rc-subtitle { font-size: 12.5px; color: var(--text-dim); margin: -6px 0 18px; }
.rc-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 980px) {
  .rc-layout { grid-template-columns: 1fr; }
  .rc-right { order: -1; }
}

/* 左侧套餐区 */
.rc-left { display: flex; flex-direction: column; gap: 16px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rc-card {
  position: relative;
  padding: 24px 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.025);
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rc-card:hover { border-color: rgba(255,140,41,0.45); transform: translateY(-2px); background: rgba(255,255,255,0.04); }
.rc-card.active {
  border-color: rgba(255,140,41,0.85);
  background: linear-gradient(160deg, rgba(255,140,41,0.12), rgba(255,140,41,0.03));
  box-shadow: 0 0 22px rgba(255,140,41,0.14);
}
.rc-card .rc-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 0 12px 0 12px;
  line-height: 1;
}
.rc-card .rc-credits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 10px;
}
.rc-card .rc-credits::before {
  content: '⚡';
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255,140,41,0.5));
}
.rc-card .rc-price {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.rc-card .rc-price small { font-size: 14px; font-weight: 500; margin-right: 2px; color: var(--text-dim); }

/* 其他金额 */
.rc-custom label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.rc-custom-input { display: flex; gap: 10px; }
.rc-custom-input input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.rc-custom-input input:focus { border-color: rgba(255,140,41,0.6); background: rgba(255,255,255,0.06); }
.rc-tip { font-size: 12px; color: var(--text-faint); margin: 0; }

/* 右侧订单汇总 */
.rc-right { position: sticky; top: 20px; }
.rc-summary {
  background: rgba(8,10,18,0.55);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
}
.rc-sum-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.rc-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.rc-sum-row b { font-size: 15px; color: var(--text); font-weight: 600; }
.rc-sum-row.rc-total { margin-top: 4px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.08); }
.rc-sum-row.rc-total b { font-size: 22px; color: #ffb066; font-weight: 800; }
.rc-sum-row > div { display: flex; align-items: center; gap: 8px; }
.rc-mini-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.3;
}
.rc-mini-tag.bonus-pct { color: #ffb066; background: rgba(255,140,41,0.12); border: 1px solid rgba(255,140,41,0.25); }
.rc-mini-tag.first-charge { color: #fb923c; background: rgba(251,146,60,0.12); border: 1px solid rgba(251,146,60,0.25); }
.rc-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 16px 0; }
.rc-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.rc-pay-row b { font-size: 24px; color: #fff; font-weight: 800; }

/* 支付渠道 */
.rc-channel-row { display: flex; gap: 8px; margin: 12px 0; }
.rc-channel-row .rc-channel {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.rc-channel-row .rc-channel:hover { border-color: var(--indigo); color: var(--text); }
.rc-channel-row .rc-channel.active {
  border-color: var(--indigo);
  background: rgba(255, 127, 15, 0.14);
  color: #ff9132;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--indigo) inset;
}
.rc-channel-row .rc-channel.active::after { content: ' ✓'; font-weight: 800; }

/* 收银台 iframe */
.rc-qr-wrap { margin: 14px 0; }
.rc-frame { width: 100%; height: 360px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; }

/* ===== 交易流水 ===== */
/* 交易流水区域：去掉最外层 .card 的边框/渐变描边/悬浮外框效果（内层表格框保留） */
#sec-ledger { border: none; }
#sec-ledger::before, #sec-ledger:hover::before { display: none; }
#sec-ledger:hover { border-color: transparent; transform: none; box-shadow: none; }
.rc-ledger { margin-top: 4px; }
.rc-ledger-h { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

/* ===== 资产库：右侧内容区纯色背景 + 去边框（对齐弹窗 modal-flat 视觉） ===== */
#sec-assets { background: #16171f; border: none; }
#sec-assets::before, #sec-assets:hover::before { display: none; }
#sec-assets:hover { background: #16171f; border-color: transparent; transform: none; box-shadow: none; }

/* ===== 资产库：分类 tab 与搜索框同行，搜索框最右 ===== */
#sec-assets .ast-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#sec-assets .ast-toolbar .m-tabs { flex: 1; margin-bottom: 0; }
#sec-assets .ast-toolbar .list-search { flex: 0 0 auto; width: 260px; }
#sec-assets .ast-search { position: relative; flex: 0 0 auto; }
#sec-assets .ast-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
#sec-assets .ast-search .list-search { width: 260px; padding-left: 34px; }

/* ===== 资产库：资产卡片网格（对齐资产页样式：3:4 封面 + 底部标题条 + ⋯ 操作菜单） ===== */
#sec-assets .asset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1200px) { #sec-assets .asset-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { #sec-assets .asset-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { #sec-assets .asset-grid { grid-template-columns: repeat(2, 1fr); } }
#sec-assets .asset-item { min-width: 0; }
#sec-assets .asset-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: border-color 0.28s;
}
#sec-assets .asset-item:hover .asset-card { border-color: rgba(255, 150, 60, 0.55); }
#sec-assets .asset-cover { position: relative; overflow: hidden; background: #f1f2f4; padding-bottom: 133.33%; } /* 3:4（padding 方案，360 兼容） */
#sec-assets .asset-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#sec-assets .asset-cover .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: linear-gradient(160deg, #f7f8fa, #e9ebef);
}
#sec-assets .asset-cover .ph-audio {
  flex-direction: column; gap: 8px; color: #8a4b12;
  background: linear-gradient(160deg, #ffe8d2, #ffd2a3);
}
#sec-assets .asset-cover .ph-audio .play-ico {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7f0f, #ff9132); color: #fff; font-size: 14px;
  box-shadow: 0 6px 16px rgba(255, 140, 41, 0.5);
}
#sec-assets .asset-cover .dur-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; font-size: 10.5px;
  padding: 2px 8px; border-radius: 999px; color: #fff;
  background: rgba(11, 16, 32, 0.7); backdrop-filter: blur(6px);
}
#sec-assets .asset-cap {
  display: flex; align-items: center; gap: 8px; padding: 12px 12px 13px;
}
#sec-assets .asset-cap h4 {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}
#sec-assets .asset-cap .pl-more {
  width: 26px; height: 26px; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; border-radius: 50%;
  background: rgba(11, 16, 32, 0.6); border: 1px solid var(--border-strong);
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
#sec-assets .asset-cap .pl-more:hover { background: rgba(255, 140, 41, 0.85); border-color: transparent; color: #fff; }

/* ===== 个人中心独立页：顶部用户信息栏（左侧导航保持与首页一致） ===== */
body.mine-page .top-userbar {
  position: fixed; top: 0; left: 260px; right: 0; height: 60px;
  display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(90deg, #000 0%, rgba(255, 145, 50, .05) 100%);
  padding: 0 24px; z-index: 100; box-sizing: border-box;
}
body.mine-page .top-userbar .top-userbar-inner { position: relative; display: flex; align-items: center; gap: 12px; }
body.mine-page .container.page { margin-left: 80px; padding-top: 70px; }
@media (max-width: 900px) {
  body.mine-page .top-userbar { left: 200px; height: 56px; padding: 0 14px; }
  body.mine-page .container.page { margin-left: 200px; padding-top: 70px; }
  body.mine-page .top-userbar .topbar-user { display: none; }
}

/* ===== 顶部用户信息触发器 ===== */

/* ===== 个人中心独立页布局 ===== */
.mine-main { width: 100%; margin: 0 auto; }
.mine-main .card { padding: 22px; margin-bottom: 16px; }

/* ===== 交易流水表（mine-ledger）：账本式表格，入账绿/出账红、数字右对齐、hover 聚焦条 ===== */
.ledger-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow-x: auto;
}
.ledger-box table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text);
}
.ledger-box th,
.ledger-box td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}
.ledger-box th {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
/* hover 聚焦条：第一列内侧 2px 品牌橙引导（透明度变化避免位移跳动） */
.ledger-box th:first-child,
.ledger-box td:first-child {
  border-left: 2px solid transparent;
}
.ledger-box tbody tr:hover td:first-child {
  border-left-color: rgba(255, 140, 41, 0.85);
}
.ledger-box tbody tr {
  transition: background 0.15s ease;
}
.ledger-box tbody tr:hover {
  background: rgba(255, 255, 255, 0.038);
}
.ledger-box tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.ledger-box tbody tr:last-child td {
  border-bottom: none;
}
/* 时间列：等宽数字，弱强调 */
.ledger-box td:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-size: 12.5px;
  white-space: nowrap;
}
/* 金额/余额：右对齐等宽，单位弱化 */
.ledger-box .amt-cell {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ledger-box .amt-cell .amt {
  font-weight: 600;
  font-size: 13px;
}
.ledger-box .amt-cell .amt-bal {
  color: var(--text-dim);
  font-weight: 500;
}
.ledger-box .amt-in .amt { color: var(--green); }
.ledger-box .amt-out .amt { color: var(--red); }
/* 金额/余额列：表头与数据同为右对齐，符号位等宽保证行间数字末位对齐 */
.ledger-box thead th:nth-child(3),
.ledger-box thead th:nth-child(4) {
  text-align: right;
}
.ledger-box .amt .sig {
  display: inline-block;
  min-width: 0.8em;
}
/* 类型徽标：安静复用 badge-gray，禁 hover 浮起动画 */
.ledger-box .badge {
  transition: none;
  font-size: 11px;
  padding: 2.5px 9px;
}
.ledger-box .badge:hover {
  transform: none;
  filter: none;
}
/* 来源/操作人与备注：次强调；备注超长省略（悬停 title 看全文） */
.ledger-box tbody td:nth-child(5),
.ledger-box tbody td:last-child {
  color: var(--text-dim);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ledger-box th,
  .ledger-box td {
    padding: 10px 12px;
    font-size: 12px;
  }
}
