:root {
  --bg: #eef1f5;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(0, 0, 0, .04);
  --seal: #8b1a1a;
  --seal-2: #b91c1c;
  --navy: #1e3a5f;
  --warn: #ffb020;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  background-image:
    linear-gradient(rgba(30, 58, 95, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, .025) 1px, transparent 1px),
    radial-gradient(ellipse 900px 500px at 50% -150px, rgba(30, 58, 95, .08) 0%, transparent 65%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  height: 58px;
  background: linear-gradient(135deg, #0f172a 0%, var(--navy) 60%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(15, 23, 42, .25);
}
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 26, 26, .6), transparent);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--seal), var(--seal-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 2px 10px rgba(139, 26, 26, .4);
}
.topbar-name { font-size: 16px; font-weight: 700; letter-spacing: 3px; color: #fff; }
.topbar-name span {
  color: rgba(255, 255, 255, .5);
  font-weight: 400;
  font-size: 11px;
  margin-left: 8px;
  letter-spacing: 1px;
}
.topbar-right { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.time-chip {
  background: rgba(255, 255, 255, .08);
  padding: 4px 12px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .2);
}
.logout {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  font-size: 12px;
  transition: .2s;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.logout:hover { border-color: rgba(139, 26, 26, .6); color: #fff; background: rgba(139, 26, 26, .2); }

/* ---------- 主内容 ---------- */
.main { max-width: 1080px; margin: 0 auto; padding: 52px 32px 70px; }

.page-head { text-align: center; margin-bottom: 44px; }
.page-seal-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.seal-line { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--seal)); }
.seal-line.r { background: linear-gradient(90deg, var(--seal), transparent); }
.page-seal {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--seal), var(--seal-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(139, 26, 26, .3);
  transform: rotate(-2deg);
}
.page-title { font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--ink); margin-bottom: 6px; }
.page-sub { font-size: 13px; color: var(--muted-2); letter-spacing: 4px; }
.page-sub-en {
  font-size: 10.5px; color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 4px;
}

/* ---------- 板块网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  animation: fadeUp .5s ease both;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.module::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, #2563eb);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.module::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  opacity: .03;
  transition: all .4s;
}
.module:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 23, 42, .1); border-color: transparent; }
.module:hover::before { transform: scaleX(1); }
.module:hover::after { transform: scale(1.3); opacity: .06; }
.module:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 3px; }
.module.disabled { cursor: not-allowed; }
.module.disabled:hover { transform: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); border-color: var(--line); }
.module.disabled:hover::before { transform: scaleX(0); }
.module.disabled:hover::after { transform: none; opacity: .03; }

.module-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  position: relative; z-index: 1;
}
.module-name {
  font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: 2px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.module-desc { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.module-arrow {
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .04);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 17px;
  transition: all .3s; z-index: 1;
}
.module:hover .module-arrow { background: var(--accent, #2563eb); color: #fff; transform: translateY(-50%) translateX(4px); }
.module.disabled .module-arrow { display: none; }

.status-tag { font-size: 10px; padding: 3px 9px; border-radius: 20px; font-weight: 600; letter-spacing: .5px; }
.status-active { background: rgba(139, 26, 26, .08); color: var(--seal); border: 1px solid rgba(139, 26, 26, .15); }
.status-soon { background: rgba(0, 0, 0, .04); color: var(--muted); }

.m-dai { --accent: #2563eb; } .m-dai .module-icon { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.m-zhu { --accent: #10b981; } .m-zhu .module-icon { background: linear-gradient(135deg, #2d5a27, #10b981); }
.m-zhe { --accent: #f59e0b; } .m-zhe .module-icon { background: linear-gradient(135deg, #8b4513, #f59e0b); }
.m-tan { --accent: #ef4444; } .m-tan .module-icon { background: linear-gradient(135deg, #722f37, #ef4444); }
.m-shi { --accent: #06b6d4; } .m-shi .module-icon { background: linear-gradient(135deg, #1a5276, #06b6d4); }
.m-mo  { --accent: #6366f1; } .m-mo  .module-icon { background: linear-gradient(135deg, #1a1a2e, #6366f1); }

.foot-tip { text-align: center; margin-top: 52px; font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.foot-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #cbd5e1, transparent); margin: 0 auto 12px; }

.module:nth-child(1) { animation-delay: .05s; }
.module:nth-child(2) { animation-delay: .1s; }
.module:nth-child(3) { animation-delay: .15s; }
.module:nth-child(4) { animation-delay: .2s; }
.module:nth-child(5) { animation-delay: .25s; }
.module:nth-child(6) { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .module { animation: none; }
  .module:hover { transform: none; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 36px 20px 56px; }
  .topbar { padding: 0 18px; }
  .time-chip { display: none; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; letter-spacing: 4px; }
}

/* ---------- 登录页 ---------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
  text-align: center;
}
.login-seal {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--seal), var(--seal-2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(139, 26, 26, .3);
  transform: rotate(-2deg);
}
.login-card h1 { font-size: 22px; letter-spacing: 3px; color: var(--ink); margin-bottom: 10px; }
.muted { color: var(--muted-2); font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 18px; letter-spacing: .5px; }
.alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--warn);
  background: rgba(255, 176, 32, .08);
  border-radius: 8px;
  color: #8a5a00;
  font-size: 13px;
  word-break: break-word;
}
a.primary {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--seal), var(--seal-2));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(139, 26, 26, .25);
}
a.primary:hover { filter: brightness(1.08); }

/* ---------- 登录页：测试登录按钮 ---------- */
.login-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
a.primary.ghost {
  background: #fff;
  color: var(--seal);
  border: 1px dashed rgba(139, 26, 26, .45);
  box-shadow: none;
}
a.primary.ghost:hover { background: rgba(139, 26, 26, .06); }

/* ---------- 数据看板：本项目新增（原型没有的部分） ---------- */
body.page-dashboard { background: #f0f2f5; background-image: none; }

.dash .nav-back {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 6px;
}
.dash .nav-back:hover { background: #dbeafe; }

.dash .topbar-user {
  font-size: 12px;
  color: #9ca3af;
  border-left: 1px solid #e5e7eb;
  padding-left: 12px;
  cursor: pointer;
}
.dash .topbar-user:hover { color: #2563eb; }

.dash .empty-row td {
  text-align: center !important;
  color: #c0c4cc;
  padding: 24px 12px !important;
  font-size: 12.5px;
}

.dash-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.dash-note {
  margin-top: 14px;
  background: #fafbfc;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.9;
}
.dash-note > div:first-child { font-weight: 600; color: #374151; margin-bottom: 6px; }
.dash-note-line { color: #6b7280; }

.dash-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 9999;
  max-width: 70vw;
}
.dash-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 导航页样式会按类名泄漏到看板（.topbar 固定高度、.main 最大宽度与内边距、.page-title 字距），
   看板以 body.page-dashboard 提升优先级覆盖回来 */
body.page-dashboard .topbar { height: auto; }
body.page-dashboard .topbar .topbar-left { gap: 18px; align-items: center; }
body.page-dashboard .main { max-width: none; padding: 0; margin: 0 0 0 200px; }
body.page-dashboard .page-title { letter-spacing: normal; }
/* ===== 数据看板（作用域 .dash）——样式取自原型「数据看板」，数值全部走空态 ===== */
.dash * { margin: 0; padding: 0; box-sizing: border-box; }
.dash { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #1f2937;
    display: flex;
    min-height: 100vh; }
.dash /* ========== 左侧锚点导航 ========== */ .sidebar { width: 200px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100; }
.dash .sidebar-logo { padding: 0 20px 18px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px; }
.dash .sidebar-logo h1 { font-size: 17px;
    color: #111827;
    font-weight: 700; }
.dash .sidebar-logo p { font-size: 11px;
    color: #9ca3af;
    margin-top: 3px; }
.dash .nav-group-title { font-size: 11px;
    color: #9ca3af;
    padding: 10px 20px 6px;
    letter-spacing: 0.5px; }
.dash .nav-item { display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none; }
.dash .nav-item:hover { background: #f9fafb;
    color: #2563eb; }
.dash .nav-item.active { background: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 600; }
.dash .nav-item .icon { font-size: 14px;
    width: 18px;
    text-align: center; }
.dash .sidebar-footer { position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    color: #9ca3af; }
.dash /* ========== 主内容区 ========== */ .main { flex: 1;
    margin-left: 200px;
    min-width: 0; }
.dash /* ========== 顶部信息栏 ========== */ .topbar { background: #fff;
    padding: 10px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 50; }
.dash .topbar-left { display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap; }
.dash .topbar-item { display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px; }
.dash .topbar-item .label { color: #9ca3af; }
.dash .topbar-item .value { color: #374151; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash .topbar-item .value.green { color: #059669; }
.dash .currency-select { padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12.5px;
    background: #fff;
    color: #374151; }
.dash .topbar-right { display: flex;
    align-items: center;
    gap: 10px; }
.dash .refresh-status { font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px; }
.dash .refresh-dot { width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite; }
.dash 0%, .dash 100% { opacity:1; }
.dash 50% { opacity:0.4; }
.dash .btn-sm { padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 12px;
    color: #4b5563;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s; }
.dash .btn-sm:hover { border-color: #2563eb; color: #2563eb; }
.dash /* ========== 内容区 ========== */ .content { padding: 20px 24px 40px; }
.dash .page-title { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 3px; }
.dash .page-subtitle { font-size: 12.5px; color: #9ca3af; margin-bottom: 18px; }
.dash /* ========== 通用板块 ========== */ .block { background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    scroll-margin-top: 70px; }
.dash .block-header { display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px; }
.dash .block-title { font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px; }
.dash .block-title::before { content: '';
    width: 3px;
    height: 14px;
    background: #2563eb;
    border-radius: 2px; }
.dash .block-actions { display: flex; align-items: center; gap: 8px; }
.dash .tag { display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500; }
.dash .tag-blue { background: #eff6ff; color: #2563eb; }
.dash .tag-green { background: #ecfdf5; color: #059669; }
.dash .tag-orange { background: #fffbeb; color: #d97706; }
.dash .tag-purple { background: #f5f3ff; color: #7c3aed; }
.dash .tag-gray { background: #f9fafb; color: #6b7280; }
.dash /* ========== 今日数据四卡片 ========== */ .today-cards { display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px; }
.dash .today-card { border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #f3f4f6;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden; }
.dash .today-card:hover { transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.08);
    border-color: #bfdbfe; }
.dash .today-card::before { content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px; }
.dash .today-card.cost::before { background: #2563eb; }
.dash .today-card.recharge::before { background: #059669; }
.dash .today-card.roi::before { background: #7c3aed; }
.dash .today-card.profit::before { background: #d97706; }
.dash .today-card.profit { background: #f0fdf4; border-color: #bbf7d0; }
.dash .today-card-label { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.dash .today-card-value { font-size: 26px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px; }
.dash .today-card-rate { font-size: 11.5px; color: #9ca3af; margin-bottom: 3px; }
.dash .today-card-cny { font-size: 15px; font-weight: 600; color: #dc2626; font-variant-numeric: tabular-nums; }
.dash .today-card-hint { position: absolute;
    bottom: 10px; right: 14px;
    font-size: 10.5px;
    color: #c0c4cc; }
.dash /* ========== 分时数据面板（交互展开） ========== */ .time-share-panel { max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #e5e7eb; }
.dash .time-share-panel.show { max-height: 800px;
    margin-top: 16px;
    padding: 18px 20px; }
.dash .time-share-header { display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px; }
.dash .time-share-title { font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px; }
.dash .time-share-title::before { content: '';
    width: 3px; height: 14px;
    background: #2563eb;
    border-radius: 2px; }
.dash .time-share-tabs { display: flex;
    gap: 6px;
    margin-bottom: 14px; }
.dash .ts-tab { padding: 6px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s; }
.dash .ts-tab:hover { border-color: #2563eb; color: #2563eb; }
.dash .ts-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.dash .ts-summary-row { display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px; }
.dash .ts-summary-item { background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #f3f4f6; }
.dash .ts-summary-label { font-size: 11.5px; color: #9ca3af; margin-bottom: 4px; }
.dash .ts-summary-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash .ts-summary-value.blue { color: #2563eb; }
.dash .ts-summary-value.green { color: #059669; }
.dash .ts-summary-value.purple { color: #7c3aed; }
.dash .ts-summary-sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.dash /* 模拟折线图 */ .ts-chart { background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #f3f4f6;
    margin-bottom: 14px;
    height: 200px;
    position: relative; }
.dash .ts-chart svg { width: 100%; height: 100%; }
.dash /* ========== 通用表格 ========== */ .table-wrap { overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #f3f4f6; }
.dash table { width: 100%;
    border-collapse: collapse;
    font-size: 12.5px; }
.dash thead th { background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    font-size: 12px; }
.dash thead th.group-header { background: #f3f4f6;
    font-size: 11px;
    color: #6b7280;
    padding: 6px 12px; }
.dash thead th.first-col { text-align: left;
    position: sticky;
    left: 0;
    background: #f9fafb;
    z-index: 2;
    min-width: 150px; }
.dash tbody td { padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #f9fafb;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #374151; }
.dash tbody td.first-col { text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    font-weight: 500; }
.dash tbody tr:nth-child(even) { background: #fcfcfd; }
.dash tbody tr:nth-child(even) td.first-col { background: #fcfcfd; }
.dash tbody tr:hover { background: #f0f7ff; }
.dash tbody tr:hover td.first-col { background: #f0f7ff; }
.dash tbody tr:last-child td { border-bottom: none; }
.dash tfoot td { background: #eff6ff;
    font-weight: 700;
    padding: 10px 12px;
    text-align: center;
    border-top: 2px solid #bfdbfe;
    font-variant-numeric: tabular-nums;
    color: #1e40af; }
.dash tfoot td:first-child { text-align: left; }
.dash .val-cost { color: #2563eb; font-weight: 600; }
.dash .val-recharge { color: #059669; font-weight: 600; }
.dash .val-roi { color: #7c3aed; font-weight: 700; }
.dash .val-profit { color: #d97706; font-weight: 700; }
.dash .val-male { color: #2563eb; font-weight: 600; }
.dash .val-female { color: #be185d; font-weight: 600; }
.dash .change-up { color: #dc2626; font-size: 11px; font-weight: 500; }
.dash .change-down { color: #059669; font-size: 11px; font-weight: 500; }
.dash .change-none { color: #c0c4cc; font-size: 11px; }
.dash .ratio-text { font-size: 11px; color: #9ca3af; margin-left: 3px; }
.dash .unit-text { font-size: 10px; color: #c0c4cc; font-weight: 400; margin-left: 1px; }
.dash .tag-male { background: #dbeafe; color: #1d4ed8; }
.dash .tag-female { background: #fce7f3; color: #be185d; }
.dash .book-name { font-weight: 600; color: #111827; margin-bottom: 2px; }
.dash .book-meta { font-size: 11px; color: #9ca3af; }
.dash /* ========== 四卡片通用 ========== */ .four-cards { display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px; }
.dash .mini-card { background: #fafbfc;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #f3f4f6; }
.dash .mini-card-label { font-size: 11.5px; color: #9ca3af; margin-bottom: 5px; }
.dash .mini-card-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash .mini-card-value.blue { color: #2563eb; }
.dash .mini-card-value.green { color: #059669; }
.dash .mini-card-value.purple { color: #7c3aed; }
.dash .mini-card-value.orange { color: #d97706; }
.dash .mini-card-sub { font-size: 10.5px; color: #9ca3af; margin-top: 3px; }
.dash /* ========== 用户中心三卡片 ========== */ .user-cards { display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px; }
.dash .user-card { border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #f3f4f6;
    background: #fafbfc;
    position: relative;
    overflow: hidden; }
.dash .user-card::before { content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px; }
.dash .user-card.users::before { background: #2563eb; }
.dash .user-card.recharge::before { background: #059669; }
.dash .user-card.subscribe::before { background: #d97706; }
.dash .user-card-label { font-size: 12.5px; color: #6b7280; margin-bottom: 5px; }
.dash .user-card-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.dash .user-card.users .user-card-value { color: #2563eb; }
.dash .user-card.recharge .user-card-value { color: #059669; }
.dash .user-card.subscribe .user-card-value { color: #d97706; }
.dash .user-card-sub { font-size: 11px; color: #9ca3af; }
.dash .user-card-sub .hl { color: #4b5563; font-weight: 600; }
.dash .sub-detail-row { display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px; }
.dash .sub-detail-item { background: #fafbfc;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #f3f4f6; }
.dash .sub-detail-label { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.dash .sub-detail-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash .sub-detail-value.orange { color: #d97706; }
.dash .sub-detail-value.green { color: #059669; }
.dash .sub-detail-value.blue { color: #2563eb; }
.dash /* ========== 排序按钮 ========== */ .sort-bar { display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px; }
.dash .sort-label { font-size: 12px; color: #9ca3af; }
.dash .sort-btn { padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 11.5px;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s; }
.dash .sort-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.dash .sort-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.dash /* ========== 近10天日期栏 ========== */ .date-tabs { display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px; }
.dash .date-tab { padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 11.5px;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 64px; }
.dash .date-tab:hover { border-color: #7c3aed; color: #7c3aed; }
.dash .date-tab.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.dash .date-tab .day-label { font-size: 10px; opacity: 0.7; display: block; margin-top: 1px; }
.dash .section-hint { text-align: right;
    font-size: 11px;
    color: #c0c4cc;
    margin-top: 8px; }
.dash .sub-title { font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 14px 0 8px; }
.dash .table-wrap::-webkit-scrollbar { height: 8px; }
.dash .table-wrap::-webkit-scrollbar-track { background: #f9fafb; border-radius: 4px; }
.dash .table-wrap::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* ===== 内容库（作用域 .lib）——结构与视觉取自原型「内容库」（app_17dv494pncg），数据一律空态 ===== */
body.page-lib { background: #f4f6f9; background-image: none; }
.lib * { margin: 0; padding: 0; box-sizing: border-box; }
.lib {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
  color: #1f2937;
  font-size: 13px;
  min-height: 100vh;
}
/* 顶栏（覆盖导航页深色顶栏） */
.lib .topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eceef1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.lib .topbar-left { display: flex; align-items: center; gap: 12px; }
.lib .back { padding: 7px 13px; background: #ecfeff; border-radius: 8px; font-size: 12.5px; color: #0891b2; text-decoration: none; font-weight: 600; }
.lib .back:hover { background: #cffafe; }
.lib .topbar-name { font-size: 16px; font-weight: 700; }
.lib .crumb { font-size: 12px; color: #9ca3af; }
.lib .topbar-right { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #6b7280; }
.lib .avatar { width: 30px; height: 30px; border-radius: 50%; background: #cffafe; color: #0891b2; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.lib .logout { background: none; border: 1px solid #e5e7eb; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: #6b7280; cursor: pointer; font-family: inherit; }
.lib .logout:hover { border-color: #0891b2; color: #0891b2; background: #f0fdfd; }
.lib .biz-switch { display: flex; border: 1px solid #a5f3fc; border-radius: 9px; overflow: hidden; background: #f0fdfd; }
.lib .biz-switch button { border: none; background: transparent; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: #0e7490; cursor: pointer; font-family: inherit; }
.lib .biz-switch button.active { background: #0891b2; color: #fff; }
.lib .view { display: none; }
.lib .view.active { display: block; }
.lib .wrap { max-width: 1440px; margin: 0 auto; padding: 20px 24px 40px; }
/* 统计条 */
.lib .statbar { display: flex; gap: 12px; margin-bottom: 14px; }
.lib .stat-chip { flex: 1; background: #fff; border: 1px solid #edf0f3; border-radius: 12px; padding: 11px 16px; display: flex; align-items: baseline; gap: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .stat-chip .sl { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.lib .stat-chip .sv { font-size: 20px; font-weight: 800; color: #0891b2; line-height: 1; }
.lib .stat-chip .ss { font-size: 11px; color: #b6bcc6; }
/* 工具栏 */
.lib .toolbar { background: #fff; border: 1px solid #edf0f3; border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .carrier-switch { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.lib .carrier-switch button { border: none; background: #fff; padding: 7px 13px; font-size: 12.5px; cursor: pointer; color: #6b7280; font-family: inherit; }
.lib .carrier-switch button.active { background: #ecfeff; color: #0891b2; font-weight: 700; }
.lib .sel { padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12.5px; background: #fff; color: #374151; outline: none; cursor: pointer; }
.lib .sel:hover, .lib .sel:focus { border-color: #67e8f9; }
.lib .search { flex: 1; min-width: 180px; padding: 7px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12.5px; outline: none; }
.lib .search:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .08); }
.lib .mode-switch { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.lib .mode-btn { padding: 7px 13px; border: none; background: #fff; font-size: 12.5px; cursor: pointer; color: #6b7280; font-family: inherit; }
.lib .mode-btn.active { background: #0891b2; color: #fff; }
.lib .btn-primary { padding: 8px 16px; border: none; border-radius: 8px; background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 6px rgba(8, 145, 178, .25); font-family: inherit; }
.lib .btn-primary:hover { filter: brightness(1.05); }
.lib .btn-ghost { padding: 7px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 12.5px; color: #4b5563; cursor: pointer; font-weight: 600; font-family: inherit; }
.lib .btn-ghost:hover { border-color: #0891b2; color: #0891b2; background: #f0fdfd; }
.lib .rate-note { font-size: 11.5px; color: #0e7490; background: #ecfeff; border: 1px solid #a5f3fc; padding: 6px 11px; border-radius: 8px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
/* 空态 */
.lib .empty-box { background: #fff; border: 1px solid #edf0f3; border-radius: 14px; padding: 56px 24px; text-align: center; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .empty-icon { font-size: 30px; margin-bottom: 10px; }
.lib .empty-title { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.lib .empty-hint { font-size: 12px; color: #9ca3af; line-height: 1.9; }
.lib .empty-box .btn-ghost { margin-top: 14px; }
/* 列表 */
.lib .book-row { background: #fff; border: 1px solid #edf0f3; border-radius: 14px; margin-bottom: 12px; display: grid; grid-template-columns: 282px 78px 138px 158px 168px 196px 1fr 128px; gap: 10px; padding: 15px 16px; align-items: center; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); transition: .18s; }
.lib .book-row:hover { box-shadow: 0 8px 24px rgba(8, 145, 178, .1); border-color: #cffafe; transform: translateY(-1px); }
.lib .br-base { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.lib .cover { border-radius: 7px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 7px; overflow: hidden; box-shadow: 0 3px 8px rgba(15, 40, 60, .18); flex-shrink: 0; }
.lib .cover .cv-id { font-size: 9px; opacity: .85; letter-spacing: .5px; }
.lib .cover .cv-name { font-size: 12px; font-weight: 800; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lib .cover .cv-meta { font-size: 8.5px; opacity: .9; }
.lib .br-cover { width: 52px; height: 72px; cursor: pointer; }
.lib .br-name { font-size: 13.5px; font-weight: 700; color: #111827; cursor: pointer; line-height: 1.4; }
.lib .br-name:hover { color: #0891b2; }
.lib .br-sub { font-size: 11px; color: #9ca3af; margin: 5px 0 7px; line-height: 1.65; }
.lib .mini-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.lib .mt { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.lib .mt-run { background: #ecfdf5; color: #059669; }
.lib .mt-end { background: #f3f4f6; color: #6b7280; }
.lib .mt-male { background: #eff6ff; color: #2563eb; }
.lib .mt-female { background: #fdf2f8; color: #db2777; }
.lib .mt-biz { background: #f0fdfd; color: #0e7490; }
.lib .mt-carrier { background: #f5f3ff; color: #7c3aed; }
.lib .cell { font-size: 12px; color: #4b5563; line-height: 1.95; }
.lib .cell .k { color: #b6bcc6; }
.lib .cat-tag { display: inline-block; font-size: 11px; background: #f3f4f6; color: #4b5563; padding: 2px 9px; border-radius: 6px; margin: 0 4px 4px 0; }
.lib .price-line { font-size: 12px; line-height: 1.95; }
.lib .price-c { font-weight: 700; color: #0e7490; }
.lib .charge-unit-tag { display: inline-block; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-bottom: 5px; letter-spacing: .3px; }
.lib .conv { font-size: 10.5px; font-weight: 500; color: #b6bcc6; white-space: nowrap; }
.lib .conv .u { color: #2563eb; font-weight: 700; }
.lib .conv .y { color: #dc2626; font-weight: 700; }
.lib .payfrom { color: #d97706; font-weight: 600; font-size: 11.5px; }
.lib .auth-scope-btn { display: inline-block; padding: 4px 14px; border-radius: 16px; font-size: 11.5px; font-weight: 700; border: none; }
.lib .auth-scope-btn.as-all { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.lib .auth-scope-btn.as-h5 { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.lib .auth-scope-btn.as-app { background: #f5f3ff; color: #7c3aed; border: 1px solid #c4b5fd; }
.lib .auth-apps { font-size: 10.5px; color: #0e7490; margin-top: 4px; line-height: 1.5; }
.lib .auth-term { font-size: 11px; color: #9ca3af; margin-top: 5px; line-height: 1.6; }
.lib .shelf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 7px; }
.lib .shelf-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentcolor; }
.lib .shelf-badge.on { background: #ecfdf5; color: #059669; }
.lib .shelf-badge.off { background: #f3f4f6; color: #9ca3af; }
.lib .op-col { display: flex; flex-direction: column; gap: 7px; }
.lib .op-btn { padding: 7px 0; border: none; background: #f5f6f8; border-radius: 8px; font-size: 12px; color: #4b5563; cursor: pointer; font-weight: 600; font-family: inherit; }
.lib .op-btn:hover { background: #ecfeff; color: #0891b2; }
.lib .op-btn.primary { background: #ecfeff; color: #0891b2; }
.lib .op-btn.primary:hover { background: #cffafe; }
.lib .op-btn.data { background: #eef2ff; color: #4f46e5; }
.lib .op-btn.data:hover { background: #e0e7ff; }
.lib .pending { opacity: .72; }
/* 说明位（2026-09-16 M2）：只读控件点一下给出「为什么不能 / 什么时候能有 / 现在能做什么」 */
.lib .pending-tip { cursor: help; }
.lib .shelf-badge.pending-tip, .lib .auth-term.pending-tip, .lib .toc-hint.pending-tip { text-decoration: underline dotted rgba(107, 114, 128, .6); text-underline-offset: 3px; }
.lib .toc-hint { font-size: 11px; color: #6b7280; font-weight: 400; margin-left: auto; }
.lib .toc-item.pending-tip:hover { background: #f9fafb; }
.lib .role-chip { padding: 4px 10px; border: 1px dashed #cbd5e1; border-radius: 999px; font-size: 11.5px; color: #6b7280; white-space: nowrap; }
/* 九宫格 */
.lib .grid-box { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lib .g-card { background: #fff; border: 1px solid #edf0f3; border-radius: 14px; padding: 15px; cursor: pointer; transition: .2s; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .g-card:hover { box-shadow: 0 10px 26px rgba(8, 145, 178, .14); transform: translateY(-3px); border-color: #a5f3fc; }
.lib .g-cover { width: 100%; height: 184px; margin-bottom: 11px; }
.lib .g-name { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib .g-sub { font-size: 11px; color: #9ca3af; margin-bottom: 9px; line-height: 1.65; }
.lib .g-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; gap: 6px; }
.lib .g-price { font-weight: 700; color: #0e7490; }
/* 详情 */
.lib .detail-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lib .detail-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.lib .d-card { background: #fff; border: 1px solid #edf0f3; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .d-card-title { font-size: 14px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.lib .toc-count { font-size: 11.5px; color: #9ca3af; font-weight: 400; }
.lib .d-head { display: flex; gap: 16px; }
.lib .d-cover { width: 108px; height: 148px; }
.lib .d-head-info { min-width: 0; }
.lib .d-name { font-size: 18px; font-weight: 800; margin-bottom: 9px; }
.lib .d-sep { height: 1px; background: #f1f2f4; margin: 14px 0 12px; }
.lib .info-row { display: flex; font-size: 12.5px; line-height: 2.2; }
.lib .info-row .k { width: 78px; color: #b6bcc6; flex-shrink: 0; }
.lib .info-row .v { color: #1f2937; font-weight: 600; }
.lib .info-row .v-intro { font-weight: 400; line-height: 1.7; }
/* 「原型有、真库暂无此列」的就地标注（2026-09-16 M3 / 用户口径元素级标注） */
.lib .info-row.off .k { color: #c3c8d1; }
.lib .info-row.off .v { font-weight: 500; }
.lib .info-row.off .off-none { color: #c3c8d1; }
.lib .info-row.off .off-tag { margin-left: 8px; font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 1px 6px; }
.lib .off-note { font-size: 11.5px; line-height: 1.7; color: #6b7280; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 8px; padding: 7px 9px; margin-bottom: 8px; }
.lib .toc-head { margin-bottom: 12px; }
.lib .toc-search { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12.5px; outline: none; }
.lib .toc-search:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .08); }
.lib .toc-list { max-height: 680px; overflow: auto; border: 1px solid #f0f1f3; border-radius: 10px; }
.lib .toc-payline { background: #fffbeb; padding: 10px 15px; font-size: 11.5px; color: #b45309; font-weight: 700; border-bottom: 1px solid #fde68a; position: sticky; top: 0; }
.lib .toc-item { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-bottom: 1px solid #f5f6f8; }
.lib .toc-no { width: 40px; color: #b6bcc6; font-size: 12px; flex-shrink: 0; }
.lib .toc-title { flex: 1; font-size: 13px; font-weight: 600; }
.lib .toc-size { font-size: 11px; color: #b6bcc6; flex-shrink: 0; width: 74px; text-align: right; }
.lib .toc-free { font-size: 11px; color: #059669; font-weight: 700; flex-shrink: 0; width: 52px; text-align: right; }
.lib .toc-lock { font-size: 11px; color: #d97706; font-weight: 700; flex-shrink: 0; width: 52px; text-align: right; }
.lib .toc-empty { padding: 40px 15px; text-align: center; font-size: 12.5px; color: #9ca3af; }
/* 提示条 */
.lib-toast { position: fixed; top: 74px; left: 50%; transform: translate(-50%, -14px); background: #111827; color: #fff; padding: 11px 22px; border-radius: 10px; font-size: 13px; opacity: 0; transition: .28s; z-index: 9999; pointer-events: none; max-width: 74vw; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.lib-toast.show { opacity: 1; transform: translate(-50%, 0); }

.lib .muted-line { color: #9ca3af; font-size: 11px; }

/* ===== 运营中心（作用域 .oc）——结构与视觉取自原型「运营中心」（app_17dwx5wu4ay），数据一律空态 ===== */
body.page-oc { background: #f0f2f5; background-image: none; }
.oc * { margin: 0; padding: 0; box-sizing: border-box; }
.oc {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(600px 300px at 80% -50px, rgba(139, 26, 26, .04) 0%, transparent 60%) #f0f2f5;
  color: #1f2937;
  min-height: 100vh;
  font-size: 13px;
}
.oc .topbar { height: 56px; background: linear-gradient(135deg, #0a0f1c 0%, #162033 50%, #1a2a45 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(10, 15, 28, .35); }
.oc .topbar::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 26, 26, .6), transparent); }
.oc .topbar-left { display: flex; align-items: center; gap: 14px; }
.oc .back-btn { color: rgba(255, 255, 255, .65); text-decoration: none; font-size: 12px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; }
.oc .back-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); }
.oc .topbar-logo { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #8b1a1a, #c41e1e); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(139, 26, 26, .4); }
.oc .topbar-name { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.oc .switch-groups { display: flex; align-items: center; gap: 8px; }
.oc .switch-group { display: flex; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 2px; border: 1px solid rgba(255, 255, 255, .08); }
.oc .switch-btn { padding: 4px 12px; font-size: 11.5px; color: rgba(255, 255, 255, .55); border: none; background: transparent; cursor: pointer; border-radius: 4px; font-weight: 500; white-space: nowrap; font-family: inherit; }
.oc .switch-btn.active { background: linear-gradient(135deg, #8b1a1a, #a52020); color: #fff; font-weight: 600; }
.oc .switch-btn:hover:not(.active) { color: rgba(255, 255, 255, .85); }
.oc .topbar-right { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.oc .info-chip { background: rgba(255, 255, 255, .06); padding: 3px 9px; border-radius: 5px; font-size: 11px; border: 1px solid rgba(255, 255, 255, .06); }
.oc .avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .1)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .15); }
.oc .oc-logout { background: none; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; padding: 4px 12px; font-size: 11.5px; color: rgba(255, 255, 255, .6); cursor: pointer; font-family: inherit; }
.oc .oc-logout:hover { color: #fff; border-color: rgba(139, 26, 26, .8); background: rgba(139, 26, 26, .25); }
.oc .layout { display: flex; min-height: calc(100vh - 56px); }
.oc .sidebar { width: 202px; background: #fff; border-right: 1px solid #e8eaed; padding: 14px 0; flex-shrink: 0; overflow-y: auto; box-shadow: 2px 0 8px rgba(0, 0, 0, .02); }
.oc .nav-group { margin-bottom: 4px; }
.oc .nav-title { padding: 6px 18px; font-size: 10px; color: #b0b6bf; letter-spacing: 1.5px; font-weight: 700; }
.oc .nav-item { padding: 8px 14px; font-size: 12.5px; color: #5a6370; cursor: pointer; display: flex; align-items: center; gap: 7px; border-left: 3px solid transparent; margin: 0 6px; border-radius: 0 6px 6px 0; }
.oc .nav-item:hover { background: #f5f6f8; color: #1f2937; }
.oc .nav-item.active { background: linear-gradient(90deg, rgba(139, 26, 26, .08), transparent); color: #8b1a1a; border-left-color: #8b1a1a; font-weight: 600; }
.oc .nav-item.todo { opacity: .62; }
.oc .nav-item .icon { font-size: 13px; width: 16px; text-align: center; }
.oc .nav-todo { margin-left: auto; font-size: 9.5px; color: #b0b6bf; border: 1px solid #e8eaed; border-radius: 4px; padding: 0 4px; }
.oc .content { flex: 1; padding: 20px 24px 40px; overflow-y: auto; }
.oc .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.oc .page-title { font-size: 19px; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.oc .page-desc { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.oc .btn { padding: 7px 16px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 12.5px; color: #4b5563; cursor: pointer; font-family: inherit; }
.oc .btn-primary { background: linear-gradient(135deg, #8b1a1a, #b91c1c); color: #fff; border-color: #8b1a1a; font-weight: 600; }
.oc .btn-sm { padding: 4px 10px; font-size: 11.5px; border-radius: 5px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; cursor: pointer; font-family: inherit; }
.oc .btn-sm:hover { border-color: #8b1a1a; color: #8b1a1a; }
.oc .btn-sm.primary { background: #8b1a1a; color: #fff; border-color: #8b1a1a; }
.oc .btn-sm.primary:hover { background: #a01d1d; }
.oc .pending { opacity: .72; }
.oc .rec-layout { display: grid; grid-template-columns: 1fr 420px; gap: 16px; align-items: start; }
.oc .rec-slot { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.oc .rec-slot:hover { border-color: #d1d5db; }
.oc .rec-slot-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid #f0f1f3; }
.oc .rec-slot-title { display: flex; align-items: center; gap: 8px; }
.oc .sort-group { display: flex; gap: 3px; margin-right: 6px; }
.oc .icon-btn { width: 22px; height: 22px; font-size: 10px; border: 1px solid #e5e7eb; border-radius: 5px; background: #fff; color: #6b7280; cursor: pointer; font-family: inherit; }
.oc .icon-btn:hover { border-color: #8b1a1a; color: #8b1a1a; }
.oc .rec-slot-name { font-size: 14px; font-weight: 700; color: #1f2937; }
.oc .rec-slot-desc { font-size: 11px; color: #9ca3af; }
.oc .rec-slot-count { font-size: 10.5px; background: #eef2ff; color: #4f46e5; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.oc .rec-slot-actions { display: flex; gap: 5px; }
.oc .rec-books { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; min-height: 80px; align-items: flex-start; }
.oc .rec-empty { width: 56px; height: 74px; border: 1.5px dashed #d1d5db; border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; cursor: pointer; background: #fafbfc; }
.oc .rec-empty:hover { border-color: #8b1a1a; color: #8b1a1a; background: #fef2f2; }
.oc .rec-empty-icon { font-size: 16px; margin-bottom: 1px; }
.oc .rec-empty-text { font-size: 8.5px; }
/* 实时预览 */
.oc .rec-preview-panel { background: linear-gradient(#0f172a 0%, #131c2e 100%); border-radius: 12px; padding: 12px; color: #fff; position: sticky; top: 76px; box-shadow: 0 4px 20px rgba(15, 23, 42, .3); }
.oc .rec-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 4px; }
.oc .rec-preview-title { font-size: 11.5px; color: rgba(255, 255, 255, .6); letter-spacing: 1px; font-weight: 600; }
.oc .rec-preview-tabs { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 5px; padding: 2px; }
.oc .rec-preview-tab { padding: 3px 10px; font-size: 10px; color: rgba(255, 255, 255, .5); border: none; background: transparent; cursor: pointer; border-radius: 4px; font-weight: 500; font-family: inherit; }
.oc .rec-preview-tab.active { background: rgba(139, 26, 26, .8); color: #fff; font-weight: 600; }
.oc .rec-preview-frame { background: #1a2335; border-radius: 12px; padding: 14px; max-height: calc(100vh - 180px); overflow-y: auto; border: 1px solid rgba(255, 255, 255, .06); }
.oc .rec-preview-frame::-webkit-scrollbar { width: 4px; }
.oc .rec-preview-frame::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 2px; }
.oc .rec-preview-hint { font-size: 10.5px; color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 8px 10px; margin-bottom: 14px; line-height: 1.6; }
.oc .rec-preview-section { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.oc .rec-preview-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.oc .rec-preview-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.oc .rec-preview-section-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.oc .rec-preview-section-more { font-size: 10px; color: rgba(255, 255, 255, .4); }
.oc .rec-preview-books { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.oc .rec-preview-empty { width: 100%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 8px; padding: 18px 0; text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, .35); }
.oc-toast { position: fixed; top: 74px; left: 50%; transform: translate(-50%, -14px); background: #111827; color: #fff; padding: 11px 22px; border-radius: 10px; font-size: 13px; opacity: 0; transition: .28s; z-index: 9999; pointer-events: none; max-width: 74vw; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.oc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 运营中心：模块页（真实模型骨架，2026-09-12 起） ---------- */
.oc .head-actions { display: flex; gap: 8px; }
.oc .oc-notice { display: flex; gap: 8px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.75; margin-bottom: 14px; }
.oc .oc-notice-icon { color: #d97706; font-weight: 700; }
.oc .oc-card { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.oc .oc-card-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid #f0f1f3; }
.oc .oc-card-title { font-size: 13px; font-weight: 700; color: #1f2937; }
.oc .oc-card-sub { font-size: 10.5px; color: #b0b6bf; }
.oc .oc-card-body { padding: 12px 14px; }
.oc .oc-kv { border: 1px solid #f1f2f4; border-radius: 8px; overflow: hidden; }
.oc .oc-kv-row { display: flex; font-size: 11.5px; line-height: 1.6; border-bottom: 1px solid #f6f7f9; }
.oc .oc-kv-row:last-child { border-bottom: none; }
.oc .oc-kv-head { background: #fafbfc; font-weight: 700; color: #6b7280; font-size: 10.5px; }
.oc .oc-kv .k { width: 150px; flex-shrink: 0; padding: 6px 10px; color: #6b7280; }
.oc .oc-kv .src { width: 280px; flex-shrink: 0; padding: 6px 10px; color: #8b1a1a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.oc .oc-kv .v { padding: 6px 10px; color: #1f2937; }
.oc .oc-kv .v.muted { color: #c3c8d0; }
.oc .oc-source { display: flex; flex-direction: column; gap: 7px; }
.oc .oc-source-row { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; line-height: 1.7; }
.oc .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #8b1a1a; background: #fdf2f2; padding: 1px 6px; border-radius: 4px; flex-shrink: 0; }
.oc .tag-table, .oc .tag-api { flex-shrink: 0; font-size: 9.5px; border-radius: 4px; padding: 1.5px 6px; font-weight: 700; }
.oc .tag-table { background: #eef2ff; color: #4f46e5; }
.oc .tag-api { background: #ecfdf5; color: #047857; }
.oc .oc-source-note { color: #6b7280; }
.oc .oc-table { border: 1px solid #f1f2f4; border-radius: 8px; overflow: hidden; }
.oc .oc-tr { display: flex; font-size: 11.5px; }
.oc .oc-th { background: #fafbfc; color: #6b7280; font-weight: 700; font-size: 10.5px; }
.oc .oc-td { flex: 1; padding: 8px 10px; border-bottom: 1px solid #f6f7f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc .oc-tr-empty .oc-empty-cell { flex: 1 1 100%; text-align: center; color: #b0b6bf; padding: 22px 10px; border-bottom: none; }
.oc .oc-gap { font-size: 11.5px; color: #6b7280; line-height: 1.9; }
.oc .tag-proto { font-size: 9.5px; color: #92400e; background: #fef3c7; border-radius: 4px; padding: 1px 5px; font-weight: 700; flex-shrink: 0; }
.oc .rec-slot-body { padding: 10px 14px 12px; }
.oc .rec-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px 10px; margin-bottom: 10px; }
.oc .rec-field { display: flex; align-items: baseline; gap: 6px; font-size: 11px; border-bottom: 1px dashed #f1f2f4; padding-bottom: 4px; min-width: 0; }
.oc .rec-field .k { color: #9ca3af; flex-shrink: 0; }
.oc .rec-field .v { color: #1f2937; font-weight: 600; }
.oc .rec-books-title { font-size: 10.5px; color: #b0b6bf; margin-bottom: 8px; }

/* ---------- 投放：数据概览 KPI 与页签（2026-09-12） ---------- */
body.page-ad { background: #f0f2f5; background-image: none; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ad-kpi { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 12px 14px; }
.ad-kpi-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ad-kpi-icon { font-size: 13px; }
.ad-kpi-label { font-size: 11.5px; color: #6b7280; font-weight: 600; }
.ad-kpi-value { font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: .5px; }
.ad-kpi-sub { font-size: 10.5px; color: #9ca3af; margin-top: 4px; line-height: 1.6; }
.tag-gap { margin-left: auto; font-size: 9.5px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.ad-tabs { display: inline-flex; gap: 2px; background: #f3f4f6; border-radius: 6px; padding: 2px; margin-bottom: 10px; }
.ad-tab { padding: 3px 12px; font-size: 11px; color: #6b7280; border: none; background: transparent; cursor: pointer; border-radius: 5px; font-family: inherit; }
.ad-tab.active { background: #8b1a1a; color: #fff; font-weight: 600; }

.lib .cover { position: relative; }
.lib .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib .cv-overlay { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%); }
.lib .cover .cv-id, .lib .cover .cv-name, .lib .cover .cv-meta { position: relative; z-index: 1; }
.lib .mt-draft { background: #f3f4f6; color: #6b7280; }
.lib .mt-hidden { background: #fef2f2; color: #dc2626; }
.lib .mt-signed { background: #fef3c7; color: #92400e; }

.lib .cat-id { color: #9ca3af; font-size: 11px; }

/* ========== 技术板块（全量漏斗报告 · M5） ========== */
.dash .tech-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.dash .tech-cmd { margin: 6px 0 14px; }
.dash .tech-cmd-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dash .tech-cmd-row code { flex: 1; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #334155; overflow-x: auto; white-space: pre; }
.dash .tech-sql { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 8px; background: #fff; }
.dash .tech-sql > summary { cursor: pointer; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: #374151; }
.dash .tech-sql > summary:hover { color: #2563eb; }
.dash .tech-pre { margin: 0; padding: 10px 12px; background: #f8fafc; border-top: 1px solid #e5e7eb; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.55; color: #334155; white-space: pre; }
.dash .tech-gaps { margin: 0; padding-left: 20px; color: #6b7280; font-size: 12px; line-height: 1.85; }
.dash tbody tr.lv-nodata td { background: #fff7ed; color: #9a3412; }
.dash #tech-head .mini-card { min-width: 0; }
.dash #tech-head .mini-card-value { word-break: break-all; line-height: 1.3; font-size: 15px; }
.dash #tech-head .mini-card-sub { word-break: break-word; }

/* ========== 看板「触达 → 支付 漏斗」模块（产品线 · M6） ========== */
.dash .funnel-tabs { margin-bottom: 12px; }
.dash #funnel .four-cards { margin-bottom: 8px; }
.dash #funnel .mini-card-value { word-break: break-word; line-height: 1.3; font-size: 17px; }
.dash #funnel .mini-card-sub { word-break: break-word; }
.dash .funnel-link-row { margin-top: 10px; }
.dash .funnel-link { color: #2563eb; font-weight: 600; font-size: 12.5px; text-decoration: none; }
.dash .funnel-link:hover { text-decoration: underline; }
.dash .funnel-baselines { margin-top: 10px; }
.dash #funnel-levels-table td.funnel-lv { font-weight: 700; color: #374151; }

/* M6-3：漏斗导出（CSV 头部带 as_of/来源表/时间窗/口径）+ 交叉维度核对（只并列、不合并） */
.dash .funnel-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.dash .funnel-export-hint { font-size: 12px; color: #6b7280; }
.dash .funnel-export-btn { white-space: nowrap; }
.dash .funnel-reconcile { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e5e7eb; }
.dash #funnel-reconcile-table td { font-variant-numeric: tabular-nums; }

/* ---------- 登录风控提示（非常用地登录，2026-09-15） ---------- */
/* 只在「新城市 / 新国家」时出现；不阻塞操作，只让用户能感知并自行判断 */
.risk-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 176, 32, .45);
  border-left: 4px solid var(--warn, #ffb020);
  border-radius: 10px;
  background: rgba(255, 176, 32, .08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.risk-mark {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--warn, #ffb020);
  color: #4a2c00;
  font-weight: 800;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}
.risk-body { flex: 1 1 auto; }
.risk-title { font-size: 13.5px; font-weight: 700; color: #7a4a00; margin-bottom: 4px; }
.risk-meta { font-size: 12px; color: var(--muted-2, #64748b); line-height: 1.7; }
.risk-tip { font-size: 12px; color: var(--muted-2, #64748b); line-height: 1.7; margin-top: 4px; }

/* ---------- 内容库：数据源标注与分页（2026-09-15 接真实数据源） ---------- */
/* 数据源行：页面必须能一眼看出「数据来自哪张表、什么时候取的」（生产库直读，要可追溯） */
.lib .src-note { font-size: 12px; color: #64748b; margin: 0 0 10px; line-height: 1.7; }
.lib .pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 2px 24px; }
.lib .pager .pager-info { font-size: 12.5px; color: #64748b; margin-right: auto; }
.lib .pager .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; }
.lib .pager .btn-ghost[disabled]:hover { border-color: #e5e7eb; color: #4b5563; background: #fff; }
.lib .toc-empty + .toc-empty { margin-top: 6px; }

/* ===== 上架新内容向导（弹层）——2026-09-16：写通道接通后启用 =====
   CSP 是 style-src 'self'（禁止 inline style），所以这里全部走类名，JS 侧不写 style 属性。 */
.lib-modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 10000; overflow: auto; }
.lib-modal { width: min(880px, 96vw); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.lib-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eef0f4; }
.lib-modal-title { font-size: 15px; font-weight: 600; color: #111827; }
.lib-modal-close { border: 0; background: transparent; font-size: 15px; color: #6b7280; cursor: pointer; line-height: 1; padding: 6px; }
.lib-modal-close:hover { color: #111827; }
.lib-modal-body { padding: 16px 20px; overflow: auto; }
.lib-modal-hint { font-size: 12px; color: #6b7280; background: #f8fafc; border: 1px solid #eef0f4; border-radius: 8px; padding: 10px 12px; }
.lib-modal-hint.err { color: #b91c1c; background: #fef2f2; border-color: #fee2e2; }
.lib-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #eef0f4; }
.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 14px; }
.fld { display: block; min-width: 0; }
.fld-label { display: block; font-size: 12.5px; color: #4b5563; font-weight: 600; margin-bottom: 6px; }
.fld-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; background: #fff; font-family: inherit; transition: .15s; }
.fld-input:focus { outline: none; border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .08); }
.fld-textarea { resize: vertical; min-height: 76px; }
.fld-hint { font-size: 11px; color: #9ca3af; }
.fld-cover-prev { display: none; max-width: 120px; max-height: 160px; border-radius: 8px; border: 1px solid #eef0f4; }
.fld-cover-prev.show { display: block; }
@media (max-width: 720px) { .fld-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 上架新内容（原型 app_17dv494pncg 三段式单页，2026-09-16） ---------- */
/* 只允许类名（CSP style-src 'self'）：颜色/版式全部照原型，渐变等动态值由 JS 走 CSSOM 赋值 */
.lib .up-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.lib .up-left { min-width: 0; }
.lib .up-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lib .up-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.lib .up-sub { font-size: 12px; color: #9ca3af; }
.lib .up-drop { border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; background: #fafcfc; }
.lib .up-drop:hover { border-color: #0891b2; background: #f0fdfa; }
.lib .up-drop-icon { font-size: 26px; }
.lib .up-drop-text { font-size: 13px; font-weight: 600; margin-top: 6px; color: #1f2937; }
.lib .up-drop-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.lib .up-hidden { display: none; }
.lib .up-chip { margin-top: 10px; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: #0e7490; font-weight: 600; }
.lib .up-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f1f3; }
.lib .up-block-title { font-size: 12.5px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.lib .up-cover-row { display: flex; gap: 14px; align-items: flex-start; }
.lib .up-cover-prev { width: 64px; height: 90px; border-radius: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; padding: 0; position: relative; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #9ca3af; }
.lib .up-cover-prev .cv-name, .lib .up-pv-cover .cv-name { margin-top: auto; }
.lib .up-cover-right { flex: 1; min-width: 0; }
.lib .up-mini { padding: 6px 14px; font-size: 12px; }
.lib .up-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lib .preset-cover { width: 36px; height: 50px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: .15s; }
.lib .preset-cover:hover { transform: translateY(-2px); }
.lib .preset-cover.active { border-color: #0891b2; box-shadow: 0 0 0 2px rgba(8, 145, 178, .2); }
.lib .up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.lib .up-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lib .auto-tag { display: inline-block; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.lib .fld-off .fld-input { background: #f8fafc; color: #9ca3af; cursor: not-allowed; }
.lib .fld-off .fld-hint { color: #b45309; }
.lib .up-miss { margin-top: 6px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 7px 10px; font-size: 11.5px; color: #b91c1c; line-height: 1.6; }
.lib .up-miss-head { font-weight: 700; margin-bottom: 2px; }
.lib .up-miss-act { margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lib .up-conv { font-size: 12px; color: #6b7280; margin: 6px 0 4px; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.lib .up-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.lib .up-pv-card { position: sticky; top: 74px; }
.lib .up-pv-row { display: flex; gap: 12px; border: 1px solid #f0f1f3; border-radius: 10px; padding: 13px; }
.lib .up-pv-cover { width: 72px; height: 100px; }
.lib .up-pv-line { font-size: 12px; line-height: 2; color: #6b7280; min-width: 0; }
.lib .up-pv-name { color: #111827; }
.lib .up-pv-intro { margin-top: 10px; padding: 10px 13px; border-top: 1px solid #f5f6f8; font-size: 12px; color: #4b5563; line-height: 1.7; }
.lib .up-pv-rec { margin-top: 10px; padding: 10px 13px; background: #fffbeb; border-radius: 8px; font-size: 12px; color: #92400e; line-height: 1.7; }
.lib .fld-hint.ok { color: #0e7490; }
.lib .fld-hint.err { color: #b91c1c; }
@media (max-width: 1100px) {
  .lib .up-wrap { grid-template-columns: 1fr; }
  .lib .up-pv-card { position: static; }
  .lib .up-grid, .lib .up-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lib .up-note { margin-bottom: 14px; }

/* ---------- 弹层：类名与取值**照原型快照**（`docs/design/内容创作与投放中台-原型基线-2026-09-10/
   内容库-原型快照-含上架流程-2026-09-16.html` 第 78-81、150-161 行），用户 2026-09-16「排版也要一致」。
   原型里两条网格是 inline style，CSP 禁内联样式，故落到 .m-grid-2 / .m-grid-4 / .m-row-full 三个类名。 ---------- */
.mask { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 9000; align-items: center; justify-content: center; }
.mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 580px; max-width: 92vw; max-height: 88vh; overflow: auto; padding: 26px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  /* 弹层挂 body 下（.lib 之外），字体/字号必须显式写，否则会继承到浏览器默认 16px 与默认字体 —— 原型是 13px + 系统字体栈 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; color: #1f2937; }
.m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.m-title { font-size: 16px; font-weight: 800; }
.m-close { cursor: pointer; color: #9ca3af; font-size: 18px; line-height: 1; }
.m-group { font-size: 12px; font-weight: 700; color: #0891b2; margin: 16px 0 11px; padding-bottom: 7px; border-bottom: 1px dashed #e5e7eb; letter-spacing: .5px; }
.m-group:first-child { margin-top: 0; }
.m-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.m-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.m-row-full { grid-column: 1 / -1; }
.m-row { margin-bottom: 13px; }
.m-row label { display: block; font-size: 12.5px; color: #4b5563; font-weight: 600; margin-bottom: 6px; }
.m-row input, .m-row textarea, .m-row select { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; outline: none; font-family: inherit; transition: .15s; }
.m-row input:focus, .m-row textarea:focus, .m-row select:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .08); }
.m-row textarea { min-height: 68px; resize: vertical; }
.m-row-intro { margin-top: 6px; }
.multi-check-group { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 8px; }
.mchk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #374151; cursor: pointer; user-select: none; white-space: nowrap; }
.mchk input[type=checkbox] { accent-color: #0891b2; width: 14px; height: 14px; cursor: pointer; }
.mchk.all { font-weight: 700; color: #0e7490; padding-right: 10px; border-right: 1px solid #e5e7eb; margin-right: 4px; }
.auth-apps-tip { font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.5; }
.m-conv-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: #6b7280; margin: -2px 0 8px; align-items: center; }
.m-conv-row b.up { color: #d97706; }
.m-conv-row b.usd { color: #2563eb; }
.m-conv-row b.cny { color: #dc2626; }
.m-conv-row .conv { font-size: 10.5px; font-weight: 500; color: #b6bcc6; }
.m-foot { text-align: right; margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }
/* 弹层里的按钮：取值照原型 .btn-ghost / .btn-primary（实现里那两条带 .lib 前缀，弹层在 .lib 之外取不到） */
.m-foot .btn-ghost, .m-foot .btn-primary { font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; }
.m-foot .btn-ghost { padding: 7px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #4b5563; }
.m-foot .btn-primary { padding: 8px 16px; border: none; border-radius: 8px; background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; box-shadow: 0 2px 6px rgba(8, 145, 178, .25); }

/* 灰显位（真库无列）：版式仍照原型，只是不可填 —— 但点一下必须有答案（三问） */
.m-off-wrap { cursor: help; }
.m-off-wrap input, .m-off-wrap select, .m-off-wrap textarea { background: #f8fafc; color: #9ca3af; pointer-events: none; }
.m-off-wrap .mchk { cursor: help; color: #9ca3af; }

/* 上架页灰显字段：同样「点一下有答案」 */
.lib .fld-off { cursor: pointer; }
.lib .fld-off .fld-input { pointer-events: none; }

/* ===== 投放数据视图（#viewData）：取值逐条照原型快照 2026-09-16（第 138-149 行「数据视图」段） ===== */
.lib .data-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lib .data-perm { font-size: 12px; color: #9ca3af; }
.lib .data-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.lib .data-kpi { background: #fff; border: 1px solid #edf0f3; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .data-kpi .dl { font-size: 11.5px; color: #9ca3af; margin-bottom: 7px; }
.lib .data-kpi .dv { font-size: 19px; font-weight: 800; }
.lib .data-kpi .ds { font-size: 11px; color: #b6bcc6; margin-top: 4px; }
.lib .data-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.lib .gender-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 12px 0 10px; font-size: 11.5px; color: #fff; font-weight: 700; }
.lib .gender-bar .gm { background: #3b82f6; display: flex; align-items: center; justify-content: center; }
.lib .gender-bar .gf { background: #ec4899; display: flex; align-items: center; justify-content: center; }
.lib .price-rank { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.lib .price-rank .pn { width: 64px; font-weight: 700; }
.lib .price-rank .ptrack { flex: 1; height: 10px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.lib .price-rank .pfill { display: block; height: 100%; background: linear-gradient(90deg, #06b6d4, #0891b2); border-radius: 6px; }
.lib .price-rank .pc { width: 96px; text-align: right; color: #6b7280; }
.lib .tpl-chip { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px; padding: 10px 13px; margin-bottom: 9px; font-size: 12.5px; }

/* ===== 章节精修视图（#viewChapter）：取值逐条照原型快照（第 129-137 行） ===== */
.lib .ch-bar { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto 14px; }
.lib .ch-bar-right { display: flex; gap: 8px; }
.lib .chapter-card { background: #fff; border: 1px solid #edf0f3; border-radius: 14px; padding: 28px 34px; max-width: 900px; margin: 0 auto; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.lib .ch-title { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.lib .ch-meta { text-align: center; font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.lib .ch-text { font-size: 14.5px; line-height: 2.1; color: #374151; white-space: pre-wrap; }
.lib .ch-edit { width: 100%; min-height: 420px; border: 1px solid #0891b2; border-radius: 10px; padding: 18px; font-size: 14.5px; line-height: 2.1; font-family: inherit; outline: none; resize: vertical; box-shadow: 0 0 0 3px rgba(8, 145, 178, .08); }
.lib .ch-count-bar { max-width: 900px; margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #edf0f3; border-radius: 10px; padding: 9px 16px; font-size: 12.5px; color: #4b5563; }
.lib .ch-count-bar b { color: #0891b2; }
.lib .ch-nav { display: flex; justify-content: space-between; max-width: 900px; margin: 16px auto 0; }
.lib .tagline { font-size: 11.5px; color: #9ca3af; margin-top: 14px; text-align: center; }
/* 「真库无此列/无此数据源」黄标：详情页灰显行在 .info-row.off 里用同名类，这里放开给两个新视图复用 */
.lib .off-tag { margin-left: 8px; font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 1px 6px; }
/* 字段级黄标铺开（2026-09-16 用户「没有数据的在字段上说明」）：投放数据视图的数值位小一号，避免挤坏原型版式 */
.lib .data-kpi .ds .off-tag, .lib .price-rank .off-tag, .lib .tpl-chip .off-tag { font-size: 10.5px; }
/* 弹窗（挂 body 下、.lib 之外）的黄标与说明行：取值照 .lib 里那两条，只用 .modal 作用域前缀 */
.modal .m-row label .off-tag { margin-left: 6px; font-size: 11px; font-weight: 500; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 1px 6px; }
/* 4 列网格（卡点与收费）标签窄：黄标再小一号，避免「真库无此列」把标签挤成两行 */
.modal .m-grid-4 .m-row label .off-tag { font-size: 10px; padding: 0 4px; }
.modal .m-note { font-size: 11.5px; line-height: 1.7; color: #6b7280; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 8px; padding: 7px 9px; margin-bottom: 12px; }

/* 运营中心（2026-09-16 只读真值接入）：位内资源芯片 + 筛选条尺寸。
   作用域一律 .oc 前缀：本文件与内容库（.lib）共用，避免互相覆盖。 */
.oc .rec-book { display: flex; gap: 8px; align-items: center; width: 190px; padding: 6px; border: 1px solid #eef0f3; border-radius: 8px; background: #fff; }
.oc .rec-book-cover { width: 40px; height: 54px; border-radius: 4px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; }
.oc .rec-book-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 9px; color: #b0b6bf; }
.oc .rec-book-meta { min-width: 0; }
.oc .rec-book-title { font-size: 12px; font-weight: 700; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc .rec-book-sub { font-size: 9.5px; color: #8b93a1; line-height: 1.5; }
.oc .oc-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc .oc-filter .fld-input { width: auto; min-width: 130px; padding: 6px 9px; font-size: 12px; }
