/* ==========================================================================
 * 赋星传媒 · 设计系统（浅色）
 * 品牌取色自 logo：青绿星芒 #1ED6CA / 深空蓝 #031323
 * ========================================================================== */

:root {
  /* 底色 / 表面 */
  --bg:        #F4F7FA;
  --surface:   #FFFFFF;
  --surface-2: #F7FAFC;
  --surface-3: #EFF4F8;
  --line:        #E4EBF1;
  --line-strong: #D2DDE6;

  /* 文字 */
  --text:  #0C1F33;
  --muted: #5B7288;
  --faint: #7B91A5;

  /* 品牌 */
  --brand:        #0D9488;   /* 图标 / 描边 / 强调 */
  --brand-text:   #0F766E;   /* 文字型品牌色（白底对比度 ≥4.5） */
  --brand-bright: #1ED6CA;
  --brand-ink:    #032A35;   /* 亮青绿底上的深色字 */
  --brand-soft:   rgba(13, 148, 136, .09);
  --brand-line:   rgba(13, 148, 136, .28);
  --brand-glow:   rgba(30, 214, 202, .45);
  --grad:         linear-gradient(135deg, #1ED6CA 0%, #2BB6E8 100%);
  --grad-deep:    linear-gradient(135deg, #0D9488 0%, #1E8FD0 100%);
  --grad-soft:    linear-gradient(135deg, rgba(30, 214, 202, .16), rgba(43, 182, 232, .07));

  /* 语义色 */
  --ok:      #0E9F6E;  --ok-bg:      #E7F7F0;
  --warn:    #B4700A;  --warn-bg:    #FDF4E3;
  --danger:  #C9352A;  --danger-bg:  #FDECEA;
  --info:    #1B6FD4;  --info-bg:    #EAF2FD;
  --ok-line:     rgba(14, 159, 110, .30);
  --warn-line:   rgba(180, 112, 10, .30);
  --danger-line: rgba(201, 53, 42, .28);
  --info-line:   rgba(27, 111, 212, .28);

  --r-xs: 8px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --shadow:    0 1px 2px rgba(13, 38, 61, .05), 0 10px 26px -16px rgba(13, 38, 61, .18);
  --shadow-lg: 0 24px 60px -22px rgba(13, 38, 61, .30);
  --side-w: 236px;
  --top-h: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* 背景氛围：两团极淡的青绿辉光，固定不动 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56vw 40vw at 84% -10%, rgba(30, 214, 202, .17), transparent 62%),
    radial-gradient(50vw 38vw at -8% 8%, rgba(43, 182, 232, .13), transparent 60%),
    radial-gradient(70vw 46vw at 50% 112%, rgba(30, 214, 202, .08), transparent 66%);
}
body > * { position: relative; z-index: 1; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: #0B5F58; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
::selection { background: rgba(30, 214, 202, .35); color: var(--text); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CFDAE3; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #B7C6D3; background-clip: content-box; }

/* ==========================================================================
 * 页面外壳：桌面左侧导航 + 顶栏 + 移动端胶囊标签
 * ========================================================================== */
.sidenav {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 60;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: #FFFFFF;
  border-right: 1px solid var(--line);
}
.sidenav .brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
.sidenav .brand img { width: 42px; height: 30px; object-fit: contain; flex: none; }
.sidenav .brand .btxt { min-width: 0; }
.sidenav .brand .bname { font-size: 16.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; color: var(--text); }
.sidenav .brand .ben { font-size: 9.5px; font-weight: 500; letter-spacing: .22em; color: var(--faint); line-height: 1.35; margin-top: 1px; }
.sidenav .brand .bsub { font-size: 11px; color: var(--faint); letter-spacing: .05em; }

.sidenav .nav { flex: 1; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.sidenav .nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer; user-select: none;
  color: var(--muted); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: background .16s, color .16s, border-color .16s;
}
.sidenav .nav-item .ic { width: 19px; height: 19px; flex: none; opacity: .75; }
.sidenav .nav-item .nv-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sidenav .nav-item .nv-sub { font-size: 11px; font-weight: 400; color: var(--faint); letter-spacing: .01em; }
.sidenav .nav-item.active .nv-sub { color: var(--brand-text); opacity: .85; }
.sidenav .nav-item:hover { background: var(--surface-2); color: var(--text); }
.sidenav .nav-item:hover .ic { opacity: 1; }
.sidenav .nav-item.active {
  background: var(--brand-soft); color: var(--brand-text);
  border-color: var(--brand-line); font-weight: 600;
}
.sidenav .nav-item.active .ic { opacity: 1; color: var(--brand); }

.sidenav .side-foot {
  margin-top: 12px; padding: 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.sidenav .side-foot .who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.sidenav .side-foot .who .nm { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--brand-ink);
  background: var(--grad); letter-spacing: 0;
}

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.topbar .brand-m { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.topbar .brand-m img { width: 30px; height: 22px; object-fit: contain; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.userchip .uname { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* 视图切换条（管理员端：达人端 ⇄ 管理员后台） */
.view-banner {
  position: sticky; top: 0; z-index: 55;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 20px;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand-text); font-size: 13.5px; font-weight: 600;
}
.view-banner .vb-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-banner .btn.ghost { background: #fff; border-color: var(--brand-line); color: var(--brand-text); }
.view-banner .btn.ghost svg.ic { width: 15px; height: 15px; }
@media (min-width: 900px) { .view-banner { padding-left: calc(var(--side-w) + 20px); } }

/* 达人端「我的」里的管理员入口 */
.admin-switch-card { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.admin-switch-card h3 svg.ic { color: var(--brand); }
.admin-switch-card .btn svg.ic { width: 16px; height: 16px; }

/* 移动端胶囊标签 */
.tabbar {
  position: sticky; top: var(--top-h); z-index: 40;
  display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto;
  background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar .tab {
  flex: none; padding: 7px 15px; border-radius: 999px; font-size: 13.5px;
  color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap;
  border: 1px solid var(--line); background: #fff;
  transition: all .16s;
}
.tabbar .tab:active { transform: scale(.96); }
.tabbar .tab.active {
  background: var(--grad); color: var(--brand-ink); border-color: transparent; font-weight: 700;
  box-shadow: 0 6px 16px -6px var(--brand-glow);
}

.container { max-width: 100%; margin: 0 auto; padding: 20px 28px 72px; }
/* 宽屏铺满、超宽屏加侧边留白；窄屏仍由内部表格横向滚动兜底 */
@media (min-width: 1800px) { .container { padding-left: 44px; padding-right: 44px; } }

/* 版本页脚（定稿标识） */
.app-foot { text-align: center; padding: 4px 16px 30px; font-size: 12px; color: var(--faint); }
.app-foot b { color: var(--muted); font-weight: 600; }
.login-box footer.app-foot { padding: 18px 0 0; }

@media (min-width: 900px) {
  body { padding-left: var(--side-w); }
  .tabbar { display: none; }
  .topbar .brand-m { display: none; }
}
@media (max-width: 899px) {
  .sidenav { display: none; }
}

/* 内联图标：必须有默认尺寸，否则 SVG 会被撑满容器 */
svg.ic { width: 18px; height: 18px; flex: none; }
svg.big-ic { width: 36px; height: 36px; flex: none; opacity: .4; }
.card h3 svg.ic { color: var(--brand); }
.btn svg.ic { width: 15px; height: 15px; }
.section-label svg.ic { color: var(--brand); }

/* ==========================================================================
 * 通用排版件
 * ========================================================================== */
.page-head { margin: 2px 0 16px; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.section-label {
  font-size: 13px; color: var(--muted); margin: 22px 0 10px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; letter-spacing: .01em;
}
.section-label::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--grad-deep);
}
.section-label .right { margin-left: auto; font-weight: 400; color: var(--faint); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.card h3 .right { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--faint); }
.card.flush { padding: 0; overflow: hidden; }

.hint { font-size: 12.5px; color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
 * 首页 Hero
 * ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 26px 24px;
  background: linear-gradient(135deg, rgba(30, 214, 202, .18) 0%, rgba(43, 182, 232, .09) 48%, #FFFFFF 100%);
  border: 1px solid var(--brand-line);
  box-shadow: 0 18px 44px -26px rgba(13, 38, 61, .3);
  margin-bottom: 16px;
}
.hero::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(30, 214, 202, .30), transparent 68%);
  pointer-events: none;
}
.hero .hi { font-size: 12.5px; color: var(--brand-text); letter-spacing: .12em; font-weight: 600; }
.hero .hname { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; color: var(--text); }
.hero .hdesc { color: var(--muted); font-size: 13.5px; max-width: 44em; }
.hero .hchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero .hchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--muted);
}
.hero .hchip b { color: var(--text); font-weight: 600; }
.hero .hchip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ==========================================================================
 * 统计
 * ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 17px; box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.stat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 32px -18px rgba(13, 38, 61, .3); }
.stat-card .ic {
  position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 14px;
}
.stat-card .num {
  font-size: 27px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums;
  letter-spacing: -.03em; color: var(--text);
}
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat-card.hot {
  background: linear-gradient(150deg, rgba(30, 214, 202, .20), #FFFFFF 66%);
  border-color: var(--brand-line);
}
.stat-card.hot .num { background: linear-gradient(135deg, #0D9488, #1E8FD0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.hot .ic { background: var(--grad); color: var(--brand-ink); }

/* ==========================================================================
 * 快捷入口
 * ========================================================================== */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, background .18s; text-decoration: none; color: inherit;
}
.tile:hover { text-decoration: none; color: inherit; border-color: var(--brand-line); background: #FBFEFE; transform: translateY(-2px); }
.tile .t-ic {
  width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.tile .t-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.tile .t-name { font-weight: 600; font-size: 14.5px; display: block; color: var(--text); }
.tile .t-desc { font-size: 12px; color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
 * 按钮
 * ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-family: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  background: var(--grad); color: var(--brand-ink);
  box-shadow: 0 8px 20px -10px var(--brand-glow);
  transition: filter .15s, transform .12s, background .15s, border-color .15s, opacity .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 10px 24px -10px var(--brand-glow); }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.btn.ghost {
  background: #fff; color: var(--text); border-color: var(--line-strong); box-shadow: none; font-weight: 500;
}
.btn.ghost:hover { background: var(--surface-2); border-color: #BFCED9; filter: none; box-shadow: none; }
.btn.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); box-shadow: none; font-weight: 500; }
.btn.danger:hover { background: #FBDFDC; filter: none; box-shadow: none; }
.btn.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); box-shadow: none; font-weight: 500; }
.btn.ok:hover { background: #D8F2E6; filter: none; box-shadow: none; }
.btn.deepline { background: var(--grad-deep); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn.block { width: 100%; }
.btn.icon { padding: 7px 11px; }

/* ==========================================================================
 * 表单
 * ========================================================================== */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field .tip { font-size: 12px; color: var(--faint); margin-top: 5px; }
input[type=text], input[type=password], input[type=tel], input[type=url],
input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: #A6B7C4; }
input:hover, select:hover, textarea:hover { border-color: #C2D0DB; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3.5px var(--brand-soft);
}
input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
select option { background: #fff; color: var(--text); }
textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--danger); font-size: 12.5px; margin: 8px 0 0; min-height: 17px; }
.inline-form { display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 150px; max-width: 360px; }
.code-row { display: flex; gap: 9px; }
.code-row input { flex: 1; }
.code-row .btn { flex: none; }

/* ==========================================================================
 * 徽章
 * ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; background: var(--surface-3); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap; line-height: 1.5;
}
.badge.ok,    .badge.green  { background: var(--ok-bg);     color: var(--ok);     border-color: var(--ok-line); }
.badge.red,   .badge.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge.amber, .badge.warn   { background: var(--warn-bg);   color: var(--warn);   border-color: var(--warn-line); }
.badge.blue,  .badge.info   { background: var(--info-bg);   color: var(--info);   border-color: var(--info-line); }
.badge.gray { background: var(--surface-3); color: var(--muted); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); border-color: var(--brand-line); }

/* ==========================================================================
 * 表格
 * ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* min-width:max-content 让表格按内容撑开、由容器横向滚动，而不是把列挤成竖排字 */
table.table { width: 100%; min-width: max-content; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 12px; color: var(--faint); font-weight: 600; font-size: 12px;
  letter-spacing: .02em; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface-2);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: #F8FBFC; }
.table tr:last-child td { border-bottom: none; }
.table .actions { white-space: nowrap; }
.table .actions .btn { margin-right: 6px; }
.table.kv td:first-child { color: var(--muted); width: 104px; font-size: 13px; }
.table tr.row-dim td { color: var(--faint); background: #FBFCFD; }

/* ==========================================================================
 * 可拖动列宽 / 可拖动换位的表格（老板端达人管理）
 * - 表头上出现拖拽手柄，拖手柄 = 改列宽，拖表头空白处 = 左右换列
 * - 顺序与列宽存 localStorage，刷新后保持
 * ========================================================================== */
.dnd-table { table-layout: fixed; }
.dnd-table th { cursor: grab; user-select: none; position: relative; padding-right: 16px; }
.dnd-table th:active { cursor: grabbing; }
.dnd-table th .th-label { pointer-events: none; }
.dnd-table th.dragging { opacity: .45; }
.dnd-table th.drop-left { box-shadow: inset 2px 0 0 var(--brand); }
.dnd-table th.drop-right { box-shadow: inset -2px 0 0 var(--brand); }
.dnd-table th.col-fixed { cursor: default; }
.dnd-table .col-resizer {
  position: absolute; top: 0; right: -4px; width: 9px; height: 100%;
  cursor: col-resize; z-index: 2; touch-action: none;
}
.dnd-table .col-resizer::after {
  content: ''; position: absolute; top: 6px; bottom: 6px; right: 4px; width: 1px;
  background: var(--line);
}
.dnd-table th:hover .col-resizer::after { background: var(--brand); width: 2px; }
.dnd-table td { overflow: hidden; text-overflow: ellipsis; }
.dnd-table td.actions { overflow: visible; }
.dnd-hint { font-size: 12px; color: var(--faint); margin: 6px 2px 0; }

/* ==========================================================================
 * 列表 / 空态 / 进度
 * ========================================================================== */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list-plain li:last-child { border-bottom: none; }

.empty { text-align: center; color: var(--faint); padding: 40px 16px; font-size: 13.5px; line-height: 1.8; }
.empty .big { margin-bottom: 10px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--faint); padding: 46px 16px; font-size: 13.5px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(13, 148, 136, .22); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--grad-deep); border-radius: 999px; transition: width .3s; }

/* ==========================================================================
 * 注意事项
 * ========================================================================== */
.notice-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-item .no {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.notice-item .body { flex: 1; font-size: 13.5px; }
.notice-item .ops { flex: none; display: flex; gap: 6px; }

/* ==========================================================================
 * 短剧卡片
 * ========================================================================== */
.drama-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px; margin-bottom: 12px; background: var(--surface);
  box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s;
}
.drama-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px -20px rgba(13, 38, 61, .3); }
.drama-card .drama-head { display: flex; align-items: flex-start; gap: 12px; }
.drama-card .poster {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--brand-ink); background: var(--grad);
  box-shadow: 0 8px 18px -10px var(--brand-glow);
}
.drama-card .drama-title { font-weight: 600; font-size: 15.5px; flex: 1; letter-spacing: -.01em; }
.drama-card .drama-desc { color: var(--muted); font-size: 13px; margin: 9px 0 12px; white-space: pre-wrap; }
.material-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-top: 7px; font-size: 13px;
}
.material-row .m-ic { flex: none; color: var(--brand); display: inline-flex; }
.material-row .m-name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-row .m-url { color: var(--faint); font-size: 11.5px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-row .btn { flex: none; }

/* 切片课程：本站 MP4 点「开始学习」后在卡片内直接播放 */
.course-player {
  margin-top: 12px; border-radius: var(--r-sm); overflow: hidden;
  background: #0b0b0e; border: 1px solid var(--line); line-height: 0;
}
.course-player video { display: block; width: 100%; max-height: 62vh; background: #0b0b0e; }

/* ==========================================================================
 * 弹窗
 * ========================================================================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; padding: 18px;
  background: rgba(12, 31, 51, .38); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  animation: fade-in .16s ease-out;
}
.modal {
  width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto; padding: 20px;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: pop-in .2s cubic-bezier(.2, .9, .3, 1.2);
}
.modal h3 { font-size: 16.5px; margin-bottom: 15px; }
.modal .modal-ops { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal.wide { max-width: 640px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ==========================================================================
 * Toast
 * ========================================================================== */
#toast-wrap {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: #0C1F33; color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); max-width: 84vw;
  animation: toast-in .22s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.ok  { background: #0E7A57; }
.toast.err { background: #B32C22; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ==========================================================================
 * 登录页
 * ========================================================================== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 18px; position: relative; overflow: hidden;
}
.login-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46vw 34vw at 80% 2%, rgba(30, 214, 202, .22), transparent 62%),
    radial-gradient(42vw 32vw at 8% 96%, rgba(43, 182, 232, .16), transparent 62%);
}
.login-box { width: 100%; max-width: 424px; position: relative; }
.login-head { text-align: center; margin-bottom: 24px; }
.login-head img.logo {
  width: 138px; height: auto; margin-bottom: 12px;
  filter: drop-shadow(0 10px 24px rgba(30, 214, 202, .35));
}
.login-head h1 { font-size: 25px; letter-spacing: .06em; font-weight: 700; color: var(--text); }
.login-head .en { font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-indent: .3em; color: var(--muted); margin-top: 5px; }
.login-head .slogan {
  color: var(--brand-text); font-size: 12px; letter-spacing: .34em; margin-top: 7px; text-indent: .34em;
}
.login-head .sub { color: var(--faint); font-size: 12.5px; margin-top: 9px; }
.login-card {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-lg);
}
.login-tabs { display: flex; background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.login-tabs .lt {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-size: 14px;
  color: var(--muted); cursor: pointer; user-select: none; transition: all .18s; font-weight: 500;
}
.login-tabs .lt.active { background: var(--grad); color: var(--brand-ink); font-weight: 700; box-shadow: 0 6px 16px -8px var(--brand-glow); }
.login-foot { text-align: center; font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }
.login-card .btn.block { padding: 12px; font-size: 15px; letter-spacing: .04em; margin-top: 4px; }
.demo-box {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line-strong);
}
.demo-box .demo-title { font-size: 12.5px; color: var(--faint); margin-bottom: 9px; }
.demo-users { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-users .du {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px;
  cursor: pointer; background: var(--surface-2); color: var(--muted);
}
.demo-users .du:hover { border-color: var(--brand-line); color: var(--brand-text); }

/* ==========================================================================
 * 视频号（达人端）
 * ========================================================================== */
/* 切换条 */
.vsw { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.vsw-lab { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 11px; }
.vsw-lab svg.ic { color: var(--brand); flex: 0 0 auto; }
.vsw-lab .hint { font-weight: 400; }
.vsw-row { display: flex; gap: 10px; flex-wrap: wrap; }
.vsw-item {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 14px; cursor: pointer; font-family: inherit;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.vsw-item:hover { border-color: var(--brand-line); }
.vsw-item.on { border-color: transparent; background: var(--grad); box-shadow: 0 9px 22px -14px var(--brand-glow); }
.vsw-item .vsw-n { font-size: 14px; font-weight: 600; color: var(--text); }
.vsw-item .vsw-id { font-size: 11px; color: var(--faint); letter-spacing: .02em; }
.vsw-item .vsw-c { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.vsw-item.on .vsw-n { color: var(--brand-ink); }
.vsw-item.on .vsw-id { color: var(--brand-ink); opacity: .72; }
.vsw-item.on .vsw-c { color: var(--brand-ink); opacity: .8; }

/* 主页：剧场块 */
.th-block { padding: 15px 17px; }
.th-head { display: flex; align-items: center; gap: 10px; }
.th-head .th-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.th-head .th-name svg.ic { color: var(--brand); flex: 0 0 auto; }
.th-head .badge { margin-left: auto; flex: 0 0 auto; }
.th-dramas { margin-top: 9px; font-size: 13px; line-height: 1.75; color: var(--muted); }

/* 我的：视频号列表行 */
.vrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.vrow:last-of-type { border-bottom: none; }
.vrow-main { flex: 1; min-width: 130px; }
.vrow-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* 两列统计（主页：授权剧场 / 可推广短剧） */
.stat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
 * 项目介绍：示意图（纯 HTML/CSS 画，不用图片文件）
 * ========================================================================== */
.fig { margin: 4px 0 15px; }
.intro-body { white-space: pre-wrap; font-size: 14px; line-height: 1.85; color: var(--text); }
.fg-ar { color: var(--faint); font-size: 14px; line-height: 1; }

/* 全流程（7 步竖向流程图） */
.fg-flowv { display: flex; flex-direction: column; }
.fgv-item { position: relative; display: flex; gap: 13px; align-items: flex-start; padding-bottom: 15px; }
.fgv-item:last-child { padding-bottom: 0; }
.fgv-item::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: -1px; width: 2px; background: var(--brand-line); }
.fgv-item:last-child::before { display: none; }
.fgv-n {
  position: relative; z-index: 1; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%;
  background: var(--grad); color: var(--brand-ink); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -6px var(--brand-glow);
}
.fgv-tx { min-width: 0; padding-top: 2px; }
.fgv-tx b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.fgv-tx i { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* 剪高光 */
.fg-edit { display: flex; flex-direction: column; gap: 7px; }
.fg-e-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fg-e-lab { flex: 0 0 auto; min-width: 122px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.fg-e-lab em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 5px; }
.fg-e-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.fg-e-dots i, .fg-e-stack i { display: block; width: 13px; height: 20px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--line); }
.fg-e-dots i.on, .fg-e-stack i.on { background: var(--brand); border-color: var(--brand); }
.fg-e-dots i.big, .fg-e-stack i.big { width: 28px; height: 26px; }
.fg-e-dots i.long, .fg-e-stack i.long { width: 156px; height: 26px; }
/* 第三步：上下两横排（上 1 个长方形 = 去重后的成片，下 5 个 = 高光视频） */
.fg-e-stack { display: flex; flex-direction: column; gap: 5px; }
.fg-e-stack .fg-e-line { display: flex; gap: 4px; flex-wrap: wrap; }
.fg-e-hint { font-size: 12px; color: var(--muted); padding-left: 134px; }

/* 观看与收益来源 */
.fg-watch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fg-w { display: flex; flex-direction: column; gap: 3px; border-radius: var(--r-sm); padding: 9px 14px; border: 1px solid var(--line); background: var(--surface-2); }
.fg-w b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.fg-w i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.fg-w.free { background: var(--ok-bg); border-color: var(--ok-line); }
.fg-w.free b { color: var(--ok); }
.fg-w.ad { background: var(--warn-bg); border-color: var(--warn-line); }
.fg-w.ad b { color: var(--warn); }
.fg-w.money { background: var(--brand-soft); border-color: var(--brand-line); }
.fg-w.money b { color: var(--brand-text); }

/* 分成 */
.fg-split { display: flex; flex-direction: column; gap: 7px; }
.fg-sp-lab { font-size: 12.5px; color: var(--muted); }
.fg-sp-bar { display: flex; height: 44px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.fg-sp-bar span { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.fg-sp-you { background: var(--grad); color: var(--brand-ink); }
.fg-sp-th { background: var(--brand-soft); color: var(--brand-text); border-left: 1px solid var(--line); }
.fg-sp-inv { background: var(--surface-3); color: var(--faint); border-right: 1px solid var(--line); }
.fg-sp-inv b { font-size: 11px; font-weight: 600; }
.fg-sp-inv i { font-style: normal; font-size: 10.5px; }
.fg-sp-note { font-size: 12px; color: var(--faint); }

@media (max-width: 640px) {
  .fgv-tx b { font-size: 13px; }
  .fgv-tx i { font-size: 12px; }
  .fg-e-lab { min-width: 0; }
  .fg-e-hint { padding-left: 0; }
  .fg-e-dots i, .fg-e-stack i { width: 11px; height: 18px; }
  .fg-e-dots i.big, .fg-e-stack i.big { width: 22px; height: 22px; }
  .fg-e-dots i.long, .fg-e-stack i.long { width: 126px; height: 22px; }
  .fg-w { flex: 1 1 100%; }
  .fg-sp-bar span { font-size: 11px; }
  .fg-sp-inv b { font-size: 10px; }
  .fg-sp-inv i { font-size: 9.5px; }
}

/* ==========================================================================
 * 响应式
 * ========================================================================== */
@media (max-width: 640px) {
  .container { padding: 14px 14px 68px; }
  .topbar { padding: 0 14px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vsw { padding: 12px 13px; }
  .vsw-item { flex: 1 1 100%; }
  .th-block { padding: 14px; }
  .vrow { gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card .num { font-size: 23px; }
  .stat-card .ic { width: 26px; height: 26px; font-size: 12px; right: 10px; top: 10px; }
  .hero { padding: 22px 18px; border-radius: var(--r); }
  .hero .hname { font-size: 22px; }
  .page-title { font-size: 19px; }
  .card { padding: 15px; }
  .table th, .table td { padding: 9px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 13px; gap: 11px; }
  .tile .t-ic { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .tile .t-desc { display: none; }
  .material-row { flex-wrap: wrap; }
  .material-row .m-url { max-width: 100%; order: 3; flex-basis: 100%; }
  .notice-item .ops { flex-direction: column; }
}
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* 剧场管理 · 剧场短剧一览（剧场卡片内） */
.td-box { margin-top: 14px; padding: 12px 14px; background: #F7FAFB; border: 1px solid var(--line); border-radius: 10px; }
.td-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.td-head .right { margin-left: auto; font-weight: 500; color: var(--faint); }
.td-head svg.ic { width: 15px; height: 15px; color: var(--brand-text); }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text); }
.td-chip i.td-off { font-style: normal; font-size: 11px; color: #B45309; background: #FEF3C7;
  border-radius: 999px; padding: 1px 7px; }

/* 短剧素材 · 下载链接行 */
.dl-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px;
  background: #F7FAFB; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.dl-row .dl-tag { flex: none; font-weight: 600; color: var(--brand-text); }
.dl-row .dl-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); text-decoration: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.dl-row .dl-url:hover { text-decoration: underline; color: var(--brand-text); }
.dl-row.dl-empty { background: #FFFBEB; border-color: #FDE68A; }

/* ==========================================================================
 * 总览 · 可点击统计卡 / 剧场授权位置用量 / 管理员名单
 * ========================================================================== */
.page-sub { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 10px; }

/* 统计卡：可点击态 */
.stat-card.clickable { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.stat-card.clickable:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: 0 8px 22px rgba(13,148,136,.14); }
.stat-card.clickable:active { transform: translateY(0); }
.stat-card .go-hint { margin-top: 7px; font-size: 11.5px; color: var(--brand-text); opacity: 0; max-height: 0;
  overflow: hidden; transition: opacity .16s ease, max-height .16s ease; }
.stat-card.clickable:hover .go-hint { opacity: 1; max-height: 20px; }

/* 剧场授权位置用量 */
.quota-row { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; align-items: center;
  gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.quota-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.q-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.q-bar { position: relative; height: 9px; border-radius: 999px; background: #EAF1F4;
  border: 1px solid var(--line); overflow: hidden; }
.q-fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #1ED6CA, #2BB6E8); transition: width .5s cubic-bezier(.2,.7,.3,1); }
.q-fill.warn { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.q-fill.full { background: linear-gradient(90deg, #FB7185, #E11D48); }
.q-num { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-num b { font-size: 14px; color: var(--brand-text); }
.q-num b.over { color: #E11D48; }

/* 剧场管理员名单（点击展开） */
.admins-card h3 { cursor: pointer; user-select: none; }
.admins-caret { display: inline-block; margin-left: 8px; border: 5px solid transparent;
  border-top-color: var(--muted); transform: translateY(2px); transition: transform .18s ease; }
.admins-card.open .admins-caret { transform: translateY(-3px) rotate(180deg); }
.admins-card.open { border-color: var(--brand-line); }
#ov-admins-box { margin-top: 12px; }

/* 跨页跳转的落点提示（达人管理页顶部的「最近注册」说明条） */
.focus-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px;
  font-size: 13px; color: var(--text); }
.focus-note svg.ic { width: 16px; height: 16px; color: var(--brand-text); flex: none; }
.focus-note b { color: var(--brand-text); }
.focus-note .btn { margin-left: auto; }

/* 跳转落点高亮闪一下 */
@keyframes wbFlash { 0% { box-shadow: 0 0 0 0 rgba(13,148,136,.42); }
  100% { box-shadow: 0 0 0 14px rgba(13,148,136,0); } }
.card.flash { animation: wbFlash 1.1s ease-out 2; border-color: var(--brand-line); }

@media (max-width: 640px) {
  .quota-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .quota-row .q-bar { grid-column: 1 / -1; order: 3; }
  .page-sub { display: block; margin: 4px 0 0; }
}

/* ==========================================================================
 * 内容条目 · 拖拽排序（按住左侧编号圈拖动）
 * ========================================================================== */
.notice-item .no.drag-handle { cursor: grab; transition: transform .12s ease, box-shadow .12s ease; }
.notice-item .no.drag-handle:active { cursor: grabbing; }
.notice-item .no.drag-handle:hover { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(13,148,136,.14); }
.notice-item.dragging { opacity: .45; }
.notice-item.drop-above { box-shadow: inset 0 3px 0 var(--brand); }
.notice-item.drop-below { box-shadow: inset 0 -3px 0 var(--brand); }
.notice-item .no.drag-handle { user-select: none; -webkit-user-select: none; }

/* ==========================================================================
 * 收入（达人端「我的收入」/ 老板端「收入明细」）
 * ========================================================================== */
.earn-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.earn-tabs::-webkit-scrollbar { display: none; }
.earn-tab {
  flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  cursor: pointer; transition: all .18s; font-family: inherit; white-space: nowrap;
}
.earn-tab:hover { border-color: var(--brand-line); color: var(--brand-text); }
.earn-tab.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-text); font-weight: 600; }

/* 总收入大卡 */
.earn-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px 20px;
  background: linear-gradient(135deg, #0D9488 0%, #1189B8 55%, #2BB6E8 100%);
  color: #fff; box-shadow: 0 18px 40px -22px rgba(13, 148, 136, .55); margin-bottom: 18px;
}
.earn-hero::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 255, 255, .13);
}
.eh-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.eh-label { font-size: 13px; opacity: .9; letter-spacing: .5px; }
.eh-rate { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.eh-num { font-size: 40px; font-weight: 700; letter-spacing: -.5px; margin: 8px 0 4px; position: relative; font-variant-numeric: tabular-nums; }
.eh-sub { font-size: 12.5px; opacity: .88; position: relative; }

/* 按视频号列表 */
.earn-acc-list { display: flex; flex-direction: column; }
.earn-acc-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.earn-acc-row:last-child { border-bottom: 0; }
.ea-main { flex: 1; min-width: 0; }
.ea-name { font-weight: 600; font-size: 14px; }
.ea-num { font-size: 17px; font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }

/* 按剧列表 */
.earn-drama-list { display: flex; flex-direction: column; }
.earn-drama { border-bottom: 1px solid var(--line); }
.earn-drama:last-child { border-bottom: 0; }
.ed-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; transition: background .15s; }
.ed-row:hover { background: var(--surface-2); }
.ed-ic { color: var(--brand); display: flex; }
.ed-main { flex: 1; min-width: 0; }
.ed-name { font-weight: 600; font-size: 14px; }
.ed-num { font-size: 16px; font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.ed-arrow { color: var(--faint); display: flex; transition: transform .2s; }
.earn-drama.open .ed-arrow { transform: rotate(90deg); color: var(--brand); }
.ed-videos { background: var(--surface-2); border-top: 1px solid var(--line); padding: 6px 18px 10px; }
.ed-vrow { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ed-vrow:last-child { border-bottom: 0; }
.ev-main { flex: 1; min-width: 0; }
.ev-title {
  font-size: 13px; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-num { font-size: 14px; font-weight: 600; color: var(--brand-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card.pad0 { padding: 0; overflow: hidden; }

/* 老板端收入明细表 */
.earn-sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.earn-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.earn-sum .k { font-size: 12.5px; color: var(--muted); }
.earn-sum .v { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.earn-sum .v.acc { color: var(--brand-text); }
.earn-sum.clickable { cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.earn-sum.clickable:hover { border-color: var(--brand-line); box-shadow: 0 8px 22px -14px rgba(13,148,136,.55); transform: translateY(-1px); }
.earn-sum .go-hint { margin-top: 7px; font-size: 11.5px; color: var(--brand-text); opacity: 0; transition: opacity .16s; }
.earn-sum.clickable:hover .go-hint { opacity: 1; }
.earn-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.earn-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.earn-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.earn-toolbar input[type=text], .earn-toolbar select {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font-size: 13.5px;
  font-family: inherit; background: var(--surface); color: var(--text); outline: none;
}
.earn-toolbar input[type=text]:focus, .earn-toolbar select:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.earn-toolbar .grow { flex: 1; min-width: 180px; }
table.earn-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.earn-tbl th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px;
  padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.earn-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.earn-tbl tr:last-child td { border-bottom: 0; }
table.earn-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.earn-tbl .money { font-weight: 700; color: var(--brand-text); }
table.earn-tbl .ell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.imp-area {
  width: 100%; min-height: 170px; border: 1px dashed var(--brand-line); border-radius: 12px;
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  line-height: 1.55; resize: vertical; background: var(--surface-2); color: var(--text); outline: none;
}
.imp-area:focus { border-style: solid; background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }

@media (max-width: 720px) {
  .eh-num { font-size: 32px; }
  .earn-hero { padding: 18px 18px 16px; border-radius: 18px; }
  .ed-row, .earn-acc-row { padding: 12px 14px; }
  table.earn-tbl .ell { max-width: 150px; }
}

/* ---- 达人端首页 · 操作流程（HTML 重建，桌面 5 列 / 手机单列） ---- */
.flow-panel {
  margin: 14px 0 6px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B2233 0%, #103545 55%, #0B2233 100%);
  padding: 20px 22px 22px;
  color: #EAF3F6;
  overflow: hidden;
}
.flow-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.flow-logo { width: 30px; height: 30px; display: block; }
.flow-brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.flow-brand b { font-size: 17px; letter-spacing: 2px; color: #F2F8FA; }
.flow-brand i { font-style: normal; font-size: 10px; letter-spacing: 3px; color: #35D0BE; }
.flow-div { width: 1px; height: 30px; background: rgba(255,255,255,.18); margin: 0 6px; }
.flow-cap { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.flow-cap b { font-size: 19px; font-weight: 700; color: #F2F8FA; }
.flow-cap i { font-style: normal; font-size: 11px; color: rgba(234,243,246,.5); letter-spacing: 1px; }
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-step {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 14px 10px 14px;
  text-align: center;
}
.flow-step:not(:nth-child(5n))::after {
  content: '\2192';
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: #35D0BE; font-size: 13px; z-index: 1;
}
.flow-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #12B5A6; color: #04262B;
  font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.flow-title { font-size: 14px; font-weight: 600; color: #F2F8FA; }
.flow-sub { font-size: 11.5px; color: rgba(234,243,246,.52); margin-top: 4px; line-height: 1.55; }
.flow-step.hot { border-color: rgba(232,185,62,.65); background: rgba(232,185,62,.10); }
.flow-step.hot .flow-num { background: #E8B93E; color: #3A2A05; }
.flow-step.hot .flow-sub { color: rgba(240,214,140,.75); }
@media (max-width: 768px) {
  .flow-panel { padding: 18px 14px 16px; }
  .flow-head { gap: 8px; margin-bottom: 12px; }
  .flow-logo { width: 24px; height: 24px; }
  .flow-brand b { font-size: 14px; }
  .flow-cap b { font-size: 15px; }
  .flow-grid { grid-template-columns: 1fr; gap: 8px; }
  .flow-step { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; }
  .flow-step:not(:nth-child(5n))::after { content: '\2193'; right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%); font-size: 12px; }
  .flow-num { margin-bottom: 0; flex: none; }
  .flow-title { font-size: 14px; }
  .flow-sub { margin-top: 2px; }
}
/* ---- 达人端首页 · 操作流程 banner（桌面横版 / 手机竖版） ---- */
.flow-banner { margin: 14px 0 6px; }
.flow-banner img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--brand-line);
  box-shadow: 0 8px 24px rgba(12, 31, 51, 0.10);
}
.flow-banner .flow-m { display: none; }
@media (max-width: 768px) {
  .flow-banner .flow-pc { display: none; }
  .flow-banner .flow-m { display: block; }
  .flow-banner { margin: 10px 0 4px; }
  .flow-banner img { border-radius: 12px; }
}
