/* To B 企业营销页面（enterprise.js）：沿用全站变量，只补布局 */
.ent .ent-row, .ent-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ent-row > .field { flex: 1 1 160px; min-width: 0; }
.ent-drop { border: 1.5px dashed var(--line, #d0d7de); border-radius: 10px; padding: 16px; text-align: center; margin: 8px 0 12px; }
.ent-drop.over { border-color: var(--accent, #2f6feb); background: color-mix(in srgb, var(--accent, #2f6feb) 6%, transparent); }
.ent-drop .err { color: var(--danger, #cf222e); }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ent-tile { position: relative; display: block; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--panel, #f6f8fa); }
.ent-tile.on { border-color: var(--accent, #2f6feb); }
.ent-tile input { position: absolute; top: 6px; left: 6px; }
.ent-tile img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ent-tile span { display: flex; gap: 4px; align-items: center; padding: 4px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent .seg { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.ent .chips, .chips { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 6px 0; }
.ent-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.ent-badge.ok { background: #dafbe1; color: #1a7f37; } .ent-badge.warn { background: #fff8c5; color: #9a6700; } .ent-badge.err { background: #ffebe9; color: #cf222e; }
.ent-hit { padding: 6px 10px; border-left: 3px solid #9a6700; margin: 6px 0; background: var(--panel, #f6f8fa); border-radius: 0 6px 6px 0; }
.ent-hit.high { border-color: #cf222e; }
.ent-flow { margin: 0; padding-left: 20px; } .ent-flow li { margin: 6px 0; } .ent-flow li.approved b { color: #1a7f37; } .ent-flow li.rejected b { color: #cf222e; }
.ent-sb { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ent-shot { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line, #d0d7de); border-radius: 10px; }
.ent-shot img { width: 90px; height: 120px; object-fit: cover; border-radius: 6px; background: #111; }
.ent-shot textarea { width: 100%; box-sizing: border-box; }
.ent-ov { white-space: pre-wrap; word-break: break-all; font-size: 12px; max-height: 80px; overflow: auto; margin: 4px 0; }
.ent-var { padding: 10px; border: 1px solid var(--line, #d0d7de); border-radius: 10px; margin-top: 8px; }
.ent-cand { display: block; padding: 8px; border-bottom: 1px solid var(--line, #eaeef2); }
.ent-lf { padding: 6px 0; cursor: pointer; } .ent-lf:hover { color: var(--accent, #2f6feb); }
.ent-node { align-items: center; margin: 6px 0; } .ent-node .n { width: 22px; text-align: center; font-weight: 700; }
@media (max-width: 640px) { .ent-shot { grid-template-columns: 70px 1fr; } .ent-shot img { width: 70px; height: 94px; } }

/* ================= 审批流（风格 › 审批流 + 作品详情审批面板） ================= */
.af { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
.af .sec-h .hint { font-weight: 400; margin-left: 4px; }
.af .grow { flex: 1; min-width: 0; }
.af .lb { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.af .ent-badge { margin-left: 8px; vertical-align: 2px; background: var(--bg-4); color: var(--muted); }
.af .ent-badge.ok { background: var(--keep-soft); color: var(--ok-ink); }
.af-hero-h { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.af-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.af-hero .hint { margin: 0; max-width: 720px; line-height: 1.6; }
.af-hero.on { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.switch.big .tr { width: 44px; height: 24px; border-radius: 12px; }
.switch.big .tr::after { width: 18px; height: 18px; top: 3px; left: 3px; }
.switch.big input:checked + .tr::after { left: 23px; }
.af-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--bg-3); }
.af-hero:not(.on) .af-chain { opacity: .55; }
.af-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; }
.af-pill .ic { width: 14px; height: 14px; }
.af-pill.src, .af-pill.dst { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.af-pill.opt { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.af-pill.opt small { font-weight: 400; margin-left: 4px; color: var(--dim); }
.af-pill.bad { background: var(--cut-soft); color: var(--err-ink); }
.af-arrow { color: var(--dim); }
.af-warn { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; line-height: 1.6; }
.af-warn .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.af-presets { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 400; }
.af-presets .btn { border: 1px solid var(--line); }
.af-nodes { display: flex; flex-direction: column; gap: 10px; }
.af-node { display: grid; grid-template-columns: 34px minmax(140px, 1fr) minmax(220px, 2fr) 104px 112px; gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); position: relative; }
.af-node:hover { border-color: var(--line-2); }
.af-node:not(:last-child)::after { content: ""; position: absolute; left: 30px; bottom: -11px; width: 2px; height: 10px; background: var(--line-2); }
.af-node.legal { border-style: dashed; background: transparent; }
.af-idx { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-top: 23px; }
.af-idx .ic { width: 16px; height: 16px; }
.af-f { min-width: 0; }
.af-f input:not([type]), .af-f select { width: 100%; box-sizing: border-box; }
.af-fixed { padding: 8px 0; font-weight: 600; } .af-fixed small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; margin-top: 2px; }
.af-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 8px; }
.af-seg button { border: 0; background: none; color: var(--muted); padding: 4px 12px; border-radius: 6px; font: inherit; font-size: 12.5px; cursor: pointer; }
.af-seg button.on { background: var(--bg-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.af-seg button:disabled { cursor: default; }
.af-seg.sm { margin: 8px 0 0; }
.af-who-row { display: flex; gap: 8px; align-items: center; }
.af-who-row .af-seg { margin: 0; flex: none; height: 38px; box-sizing: border-box; align-items: stretch; }
.af-who-row select { flex: 1; min-width: 0; height: 38px; }
.af-who-row .hint { margin: 0; font-size: 12px; }
.af-who .af-members { margin-top: 8px; }
.af-f input:not([type]) { height: 38px; }
.af .sec-h .hint { margin: 0 0 0 4px; }
.af .sec-h + .af-rule { border-top: 0; padding-top: 0; }
.af-members, .af-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.af-kinds { margin-top: 10px; }
.af-mem { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 13px; background: var(--bg-3); }
.af-mem input { margin: 0; width: auto; height: auto; }
.af-mem small { color: var(--dim); }
.af-mem.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.af-cov { margin-top: 31px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.af-cov .ic { width: 14px; height: 14px; }
.af-cov.bad { color: var(--err-ink); font-weight: 600; }
.af-ops { margin-top: 24px; display: flex; gap: 2px; justify-content: flex-end; }
.af-ops .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.ic.up { transform: rotate(-90deg); } .ic.down { transform: rotate(90deg); }
.af-empty { padding: 22px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 12px; }
.af-add { margin-top: 10px; width: 100%; padding: 11px; border: 1px dashed var(--line-2); border-radius: 12px; background: none; color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; }
.af-add:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.af-add:disabled { color: var(--dim); cursor: default; }
.af-rule { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }

.af-rule .t { font-weight: 600; } .af-rule .s { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.af-rule .switch { flex: none; }
.af-foot { margin: 4px 2px 12px; }
.af-bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.af-bar .hint { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.af-bar .ic { width: 15px; height: 15px; }
.af-bar.dirty { position: sticky; bottom: 12px; border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.af-bar.dirty .hint { color: var(--warn-ink); }
.af-inbox { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.af-inbox.empty { padding: 12px 20px; } .af-inbox.empty .sec-h { margin: 0; color: var(--muted); font-weight: 600; }
.af-inbox .sec-h .ic { width: 17px; height: 17px; color: var(--accent); }
.af-num { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-2); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.af-list { display: flex; flex-direction: column; gap: 8px; }
.af-item { border: 1px solid var(--line); border-radius: 10px; }
.af-item.open { border-color: var(--accent); }
.af-item-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.af-item-h .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .af-item-h .s { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.af-item-b { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 0 12px 12px; }
.af-video video { width: 100%; max-height: 420px; border-radius: 8px; background: #000; display: block; }
/* 审批进度（详情页 / 待我审批共用） */
.apv-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.apv-steps { list-style: none; margin: 0; padding: 0; }
.apv-step { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.apv-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.apv-step.approved:not(:last-child)::before { background: var(--keep); }
.apv-step .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg-3); color: var(--muted); border: 1px solid var(--line-2); }
.apv-step .dot .ic { width: 16px; height: 16px; }
.apv-step.approved .dot { background: var(--keep-soft); color: var(--keep); border-color: transparent; }
.apv-step.rejected .dot { background: var(--cut-soft); color: var(--cut); border-color: transparent; }
.apv-step.cur .dot { background: var(--accent-2); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px var(--accent-soft); }
.apv-step .t { font-weight: 600; padding-top: 4px; } .apv-step .s { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.apv-step .tag, .apv-hist .tag { margin-left: 6px; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn-ink); }
.apv-step .note, .apv-hist .note { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg-3); font-size: 13px; }
.apv-step.rejected .note { background: var(--cut-soft); color: var(--err-ink); }
.apv-act { margin: 4px 0 4px 40px; }
.apv-act textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.apv-act textarea.need { border-color: var(--cut); }
.apv-act .actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.apv-wait { margin-left: 40px; display: flex; align-items: center; gap: 6px; } .apv-wait .ic { width: 15px; height: 15px; }
.btn.danger-ghost { color: var(--err-ink); border-color: color-mix(in srgb, var(--cut) 45%, var(--line-2)); background: transparent; }
.btn.danger-ghost:hover { background: var(--cut-soft); }
.apv-hist { margin-top: 10px; font-size: 13px; } .apv-hist summary { cursor: pointer; color: var(--muted); }
.apv-hist ul { list-style: none; padding: 0; margin: 8px 0 0; } .apv-hist li { padding: 6px 0; border-top: 1px solid var(--line); }
.apv-hist li.reject b { color: var(--err-ink); } .apv-hist li.approve b { color: var(--ok-ink); } .apv-hist li.old { opacity: .6; }
.apv-sec .sec-h .ic { width: 17px; height: 17px; color: var(--accent); }
@media (max-width: 900px) {
  .af-node { grid-template-columns: 34px 1fr; }
  .af-node > .af-f, .af-node > .af-cov, .af-node > .af-ops { grid-column: 2; margin-top: 0; }
  .af-node .af-idx { margin-top: 0; }
  .af-ops { justify-content: flex-start; }
  .af-who-row { flex-wrap: wrap; } .af-who-row select { flex: 1 1 100%; }
  .af-node > .af-cov { display: inline-flex; } .af-node > .af-ops { margin-top: -6px; }
  .af-item-b { grid-template-columns: 1fr; }
  .af-presets { margin-left: 0; width: 100%; }
  .af .sec-h { flex-wrap: wrap; }
}
