/* 后台样式 · 企微风控中心 */
:root {
  --pri: #2b6bff;
  --pri-d: #1f56d8;
  --pri-w: #eef3ff;
  --bg: #f4f6fa;
  --card: #fff;
  --line: #eceff5;
  --line-2: #f3f5f9;
  --t1: #1f2733;
  --t2: #5b6472;
  --t3: #8a93a6;
  --ok: #12a150;
  --ok-w: #e8f7ee;
  --warn: #e08600;
  --warn-w: #fff5e6;
  --danger: #e5484d;
  --danger-w: #fdecec;
  --side: 216px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--pri-d); }
h1, h2, h3, p { margin: 0; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }
.ad-ico { flex: 0 0 auto; }

/* 侧栏 */
.ad-side {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .22s ease;
}
.ad-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 16px 14px;
  color: var(--t1);
}
.ad-brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }
.ad-brand__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ad-brand__txt b { font-size: 14.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-brand__txt i { font-style: normal; font-size: 11px; color: var(--t3); margin-top: 2px; letter-spacing: .3px; }

.ad-nav { padding: 4px 8px; flex: 1; overflow-y: auto; }
.ad-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: var(--t2);
  font-size: 13.5px;
  transition: background .12s, color .12s;
}
.ad-nav__item:hover { background: #f6f8fc; color: var(--t1); }
.ad-nav__item.is-active { background: var(--pri-w); color: var(--pri); font-weight: 500; }
.ad-nav__item.is-active .ad-ico { stroke-width: 1.8; }
.ad-nav__badge {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  background: #ffece8;
  color: #e5484d;
  border-radius: 9px;
  padding: 0 6px;
  min-width: 18px;
  text-align: center;
  line-height: 17px;
}
.ad-side__foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
}
.ad-side__foot a { font-size: 12px; }

/* 主体 */
.ad-shell { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }

.ad-top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.ad-burger {
  display: none;
  border: 0;
  background: none;
  color: var(--t2);
  padding: 4px;
  cursor: pointer;
}
.ad-crumb { font-size: 13px; color: var(--t3); }
.ad-crumb span { margin: 0 6px; color: #ccd2de; }
.ad-top__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ad-top__link { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--t2); }
.ad-top__link:hover { color: var(--pri); }
.ad-user { display: flex; align-items: center; gap: 8px; }
.ad-user__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #eef1f7; color: #6b7688;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.ad-user__name { font-size: 13px; color: var(--t1); }
.ad-user__out { color: var(--t3); display: flex; }
.ad-user__out:hover { color: var(--danger); }

.ad-main { flex: 1; padding: 20px 22px 40px; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ad-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.ad-head p { font-size: 12.5px; color: var(--t3); margin-top: 5px; }
.ad-head__act { display: flex; gap: 8px; flex-shrink: 0; }

/* 卡片 */
.ad-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  margin-bottom: 16px;
  overflow: hidden;
}
.ad-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.ad-card__t h2 { font-size: 14.5px; font-weight: 600; }
.ad-card__t p { font-size: 12px; color: var(--t3); margin-top: 4px; }
.ad-card__x { display: flex; gap: 8px; align-items: center; }
.ad-card__bd { padding: 18px; }
.ad-card__bd.is-flush { padding: 0; }

/* 统计 */
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ad-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.ad-stat__label { font-size: 12.5px; color: var(--t3); display: flex; align-items: center; gap: 6px; }
.ad-stat__num { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ad-stat__num small { font-size: 13px; font-weight: 400; color: var(--t3); margin-left: 4px; letter-spacing: 0; }
.ad-stat__foot { margin-top: 6px; font-size: 12px; color: var(--t3); }
.ad-stat__foot b { color: var(--t2); font-weight: 500; }

/* 表格 */
.ad-table-wrap { width: 100%; overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ad-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t3);
  background: #fafbfd;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ad-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: #2a3240;
  vertical-align: middle;
}
.ad-table tbody tr:hover td { background: #fafbff; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table .col-id { width: 62px; color: var(--t3); font-variant-numeric: tabular-nums; }
.ad-table .col-op { width: 120px; text-align: right; white-space: nowrap; }
.ad-table .col-time { width: 148px; white-space: nowrap; }
.ad-ellip { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t2); }
.ad-mono { font-variant-numeric: tabular-nums; color: var(--t2); font-size: 13px; }

.ad-empty { padding: 56px 20px; text-align: center; color: var(--t3); }
.ad-empty svg { opacity: .35; margin-bottom: 10px; }
.ad-empty p { font-size: 13px; }

/* 标签 */
.ad-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f2f4f8;
  color: var(--t2);
  white-space: nowrap;
}
.ad-tag.is-pending { background: var(--warn-w); color: var(--warn); }
.ad-tag.is-done { background: var(--ok-w); color: var(--ok); }
.ad-tag.is-ignored { background: #f2f4f8; color: #7b8494; }
.ad-tag.is-blue { background: var(--pri-w); color: var(--pri); }
.ad-tag.is-red { background: var(--danger-w); color: var(--danger); }

/* 按钮 */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--pri);
  color: #fff;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s;
  white-space: nowrap;
}
.ad-btn:hover { background: var(--pri-d); color: #fff; }
.ad-btn--ghost { background: #fff; border-color: #dfe4ee; color: var(--t1); }
.ad-btn--ghost:hover { border-color: #c9d2e3; background: #fbfcfe; color: var(--t1); }
.ad-btn--danger { background: #fff; border-color: #f3c9c9; color: var(--danger); }
.ad-btn--danger:hover { background: #fdf3f3; color: var(--danger); }
.ad-btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
.ad-btn--block { width: 100%; height: 40px; font-size: 14px; }
.ad-btn:disabled { opacity: .6; cursor: not-allowed; }

.ad-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pri);
  font-size: 13px;
  cursor: pointer;
}
.ad-link-btn:hover { color: var(--pri-d); }
.ad-link-btn.is-danger { color: var(--danger); }

/* 表单 */
.ad-form-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.ad-form-row > label {
  width: 108px;
  flex: 0 0 108px;
  font-size: 13px;
  color: var(--t2);
  padding-top: 9px;
  text-align: right;
}
.ad-form-row .ad-field { flex: 1; min-width: 0; }
.ad-input, .ad-select, .ad-textarea {
  width: 100%;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  background: #fff;
  padding: 8px 11px;
  height: 36px;
  color: var(--t1);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.ad-textarea { height: auto; min-height: 96px; line-height: 1.65; resize: vertical; }
.ad-input:focus, .ad-select:focus, .ad-textarea:focus {
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, .1);
}
.ad-input::placeholder, .ad-textarea::placeholder { color: #b6bdcb; }
.ad-help { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.6; }
.ad-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ad-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); padding-top: 8px; }

/* 开关 */
.ad-switch { position: relative; display: inline-block; width: 38px; height: 21px; flex: 0 0 38px; }
.ad-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ad-switch i {
  position: absolute; inset: 0; background: #d8dee9; border-radius: 12px; transition: background .18s;
}
.ad-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px;
  background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.ad-switch input:checked + i { background: var(--pri); }
.ad-switch input:checked + i::after { transform: translateX(17px); }

/* 提示条 */
.ad-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid #cfe9d9;
  background: var(--ok-w);
  color: #0f7f40;
  animation: adIn .2s ease;
}
.ad-toast.is-err { border-color: #f3cdcd; background: var(--danger-w); color: #b4272b; }
@keyframes adIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ad-note {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  color: var(--t2);
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 搜索栏 */
.ad-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ad-toolbar .ad-input { width: 260px; }
.ad-toolbar .ad-select { width: 130px; }

/* 分页 */
.ad-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.ad-pager__total { font-size: 12.5px; color: var(--t3); }
.ad-pager__btns { display: flex; gap: 6px; }
.ad-pager__btns a, .ad-pager__btns span {
  min-width: 30px; height: 28px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e4e8f0; border-radius: 5px;
  font-size: 12.5px; color: var(--t2); background: #fff;
}
.ad-pager__btns a:hover { border-color: var(--pri); color: var(--pri); }
.ad-pager__btns .is-on { background: var(--pri); border-color: var(--pri); color: #fff; }
.ad-pager__btns .is-off { color: #c3c9d4; }

/* 图表 */
.ad-chart { width: 100%; height: auto; display: block; }
.ad-chart__legend { display: flex; gap: 16px; font-size: 12px; color: var(--t3); margin-top: 6px; }
.ad-chart__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.ad-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

/* 详情弹层 */
.ad-modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(17, 24, 39, .38);
  padding: 40px 16px;
  overflow-y: auto;
}
.ad-modal.is-on { display: block; }
.ad-modal__box {
  width: 100%; max-width: 620px; margin: 0 auto; background: #fff;
  border-radius: 12px; box-shadow: 0 18px 48px rgba(16, 24, 40, .18);
  animation: adIn .18s ease;
}
.ad-modal__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.ad-modal__hd h3 { font-size: 15px; font-weight: 600; }
.ad-modal__x { border: 0; background: none; font-size: 20px; color: var(--t3); cursor: pointer; line-height: 1; }
.ad-modal__bd { padding: 18px 20px 22px; }
.ad-modal__ft { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }

.ad-dl { display: grid; grid-template-columns: 88px 1fr; gap: 10px 12px; font-size: 13.5px; }
.ad-dl dt { color: var(--t3); font-size: 12.5px; padding-top: 1px; }
.ad-dl dd { margin: 0; color: var(--t1); word-break: break-word; }
.ad-detail-text {
  background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
}
.ad-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ad-imgs a { display: block; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.ad-imgs img { width: 100%; height: 100%; object-fit: cover; }

/* 推送渠道卡 */
.ad-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ad-channel {
  border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px; background: #fff;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.ad-channel.is-off { background: #fbfcfe; }
.ad-channel__top { display: flex; align-items: center; gap: 10px; }
.ad-channel__top .ad-tag { margin-left: auto; }
.ad-channel__icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--pri-w); color: var(--pri);
  display: flex; align-items: center; justify-content: center; flex: 0 0 34px;
}
.ad-channel__name { font-size: 14px; font-weight: 600; }
.ad-channel__type { font-size: 12px; color: var(--t3); margin-top: 2px; }
.ad-channel__desc { font-size: 12.5px; color: var(--t2); line-height: 1.7; min-height: 34px; }
.ad-channel__url {
  font-size: 11.5px; color: var(--t3); background: #f8f9fc; border-radius: 5px;
  padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Menlo, Consolas, monospace;
}
.ad-channel__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.ad-channel__foot .ad-switch { margin-right: auto; }

/* 插件行 */
.ad-plugin {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.ad-plugin:last-child { border-bottom: 0; }
.ad-plugin__ico {
  width: 36px; height: 36px; border-radius: 9px; background: #f4f7ff; color: var(--pri);
  display: flex; align-items: center; justify-content: center; flex: 0 0 36px;
}
.ad-plugin__bd { flex: 1; min-width: 0; }
.ad-plugin__bd b { font-size: 13.5px; font-weight: 600; }
.ad-plugin__bd p { font-size: 12.5px; color: var(--t3); margin-top: 3px; }

/* 登录页 */
.ad-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #f4f6fa;
  background-image: radial-gradient(1200px 400px at 50% -140px, #e8eeff 0%, rgba(244, 246, 250, 0) 70%);
  padding: 24px;
}
.ad-login__box {
  width: 100%; max-width: 372px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 28px 26px;
  box-shadow: 0 10px 36px rgba(16, 24, 40, .07);
}
.ad-login__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.ad-login__brand img { width: 34px; height: 34px; border-radius: 9px; }
.ad-login__brand b { display: block; font-size: 15px; font-weight: 600; }
.ad-login__brand i { display: block; font-style: normal; font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.ad-login h1 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.ad-login p.sub { font-size: 12.5px; color: var(--t3); margin-bottom: 20px; }
.ad-login .ad-field { margin-bottom: 12px; }
.ad-login .ad-input { height: 40px; }
.ad-login__err {
  font-size: 12.5px; color: var(--danger); background: var(--danger-w);
  border-radius: 6px; padding: 8px 10px; margin-bottom: 12px;
}
.ad-login__foot { margin-top: 18px; font-size: 11.5px; color: var(--t3); text-align: center; line-height: 1.7; }

/* 页脚 */
.ad-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px 20px; font-size: 12px; color: var(--t3); flex-wrap: wrap;
}
.ad-footer nav { display: flex; gap: 16px; }
.ad-footer a { color: var(--t3); font-size: 12px; }
.ad-footer a:hover { color: var(--t2); }

/* 遮罩 */
.ad-overlay {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .34);
  z-index: 55; display: none;
}

/* 工具 */
.ad-flex { display: flex; gap: 8px; align-items: center; }
.ad-mt { margin-top: 14px; }
.ad-hint { font-size: 12.5px; color: var(--t3); line-height: 1.7; }
.ad-copy { cursor: pointer; }
.ad-code {
  display: block; background: #f7f9fc; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-family: Menlo, Consolas, monospace; font-size: 12px;
  color: var(--t2); word-break: break-all; line-height: 1.7;
}

/* 响应式 */
@media (max-width: 1180px) {
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-split { grid-template-columns: 1fr; }
  .ad-channels { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .ad-side { transform: translateX(-100%); box-shadow: 0 0 30px rgba(16, 24, 40, .12); }
  body.nav-open .ad-side { transform: none; }
  body.nav-open .ad-overlay { display: block; }
  .ad-shell { margin-left: 0; }
  .ad-burger { display: flex; }
  .ad-top { padding: 0 14px; }
  .ad-main { padding: 16px 14px 32px; }
  .ad-head h1 { font-size: 18px; }
  .ad-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ad-head__act { display: flex; gap: 8px; }
  .ad-head__act .ad-btn { flex: 1; }
  .ad-form-row { flex-direction: column; gap: 6px; }
  .ad-form-row > label { width: auto; text-align: left; padding-top: 0; }
  .ad-form-grid { grid-template-columns: 1fr; }
  .ad-toolbar .ad-input { width: 100%; }
  .ad-toolbar .ad-select { width: 100%; }
  .ad-footer { padding: 14px; }
  .ad-user__name { display: none; }
  .ad-top__link { font-size: 0; gap: 0; }
}
@media (max-width: 560px) {
  .ad-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-stat { padding: 12px 13px; }
  .ad-stat__num { font-size: 22px; }
  .ad-card__bd { padding: 14px; }
  .ad-card__hd { padding: 12px 14px; }
}

/* 图片预览 */
.ad-imgs a { cursor: zoom-in; }
.ad-lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(17, 24, 39, .86); cursor: zoom-out;
}
.ad-lightbox.is-on { display: flex; }
.ad-lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
@media (max-width: 920px) {
  .ad-lightbox { padding: 12px; }
}
/* 演示模式提示条 */
.ad-demo-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid #ffe0b2; background: #fff8e9; color: #8a5a00;
  border-radius: 8px; font-size: 12.5px;
}
.ad-demo-bar__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff9f0a; flex: 0 0 7px;
}
.ad-demo-bar a { margin-left: auto; color: #b26a00; text-decoration: underline; }
/* 可点击表格行 */
.ad-row-link { cursor: pointer; }
.ad-row-link:hover td { background: #f8faff; }
.ad-row-link.is-active td { background: #eef3ff; }
.ad-row-link.is-active td:first-child { box-shadow: inset 3px 0 0 #2b6bff; }

/* 左右分栏：左窄右宽，窄屏自动堆叠 */
.ad-split--wide-left { grid-template-columns: 1.08fr 1fr; }

@media (max-width: 1180px) {
  .ad-split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .ad-card__hd { flex-wrap: wrap; }
  .ad-dl { grid-template-columns: 76px 1fr; }
  .ad-head__act { width: 100%; }
  .ad-head__act .ad-btn { flex: 1 1 auto; }
  .ad-modal { padding: 16px 10px; }
  .ad-modal__box { border-radius: 10px; }
  .ad-table td, .ad-table th { padding: 11px 10px; }
  .ad-form-row > label { width: auto; }
}
/* 类型管理表格：窄屏收起排序列，避免横向溢出 */
.ad-table--types { min-width: 520px; }
@media (max-width: 640px) {
  .ad-table--types { min-width: 0; }
  .ad-table--types .col-sort { display: none; }
  .ad-table th, .ad-table td { padding: 10px 8px; }
  .ad-table--types .ad-tag { font-size: 11px; padding: 0 6px; }
  .ad-table--types .col-op { width: auto; }
  .ad-table--types .ad-link-btn { font-size: 12px; }
}
/* 列表页窄屏：把次要列收起来，别再挤成竖排字 */
.ad-table--list { min-width: 900px; }
.ad-table--dash { min-width: 720px; }
@media (max-width: 640px) {
  .ad-table--list, .ad-table--dash { min-width: 0; }
  .ad-table--list .col-ip, .ad-table--list .col-content, .ad-table--list .col-img,
  .ad-table .col-hide-sm { display: none; }
  .ad-table--list th, .ad-table--list td,
  .ad-table--dash th, .ad-table--dash td { padding: 10px 8px; }
  .ad-table--list .ad-ellip { max-width: 120px; }
  .ad-table--list td:nth-of-type(3), .ad-table--dash td:nth-of-type(2) { min-width: 116px; }
  .ad-table--list td:nth-of-type(3) > div, .ad-table--dash td:nth-of-type(2) > div { min-width: 108px; }
  .ad-table--list .col-id { display: none; }
  .ad-table--list .col-time { width: auto !important; font-size: 12px; }
  .ad-table--list td.col-op .ad-link-btn { padding-left: 2px; }
  .ad-table--list th[style], .ad-table--list td[style] { width: auto !important; }
}
/* 时间列窄屏用短格式 */
.t-short { display: none; }
@media (max-width: 640px) {
  .ad-table--list .t-full { display: none; }
  .ad-table--list .t-short { display: inline; }
}