/* ============================================================================
   全平台视频下载（运营板块）· 2026-09-16
   ----------------------------------------------------------------------------
   ⚠️ 三条约定（本项目踩过的事，别改）：
     1. **独立文件**，在 style.css 之后加载 —— 改别人的样式不要去动 style.css；
     2. **品牌主色不动**（--primary #f95901）：要的是质感/层次/间距的精修，不是换皮；
     3. 注释里**禁止出现连续 `*` + `/`**（历史上把 CSS 注释写坏导致整段样式失效）。
   ========================================================================== */

/* ---------------------------------------------------------------- 入口大卡 */
.ad-entry {
  /* 🔴 这一行不能删：它是 .ad-entry-glow（absolute）的包含块。
     漏掉 → glow 改为相对 body 定位，按 inset 的 right:-30% 跑出视口 117px，
     document 被撑到 507px 而 body 仍 390px → iOS 把整页缩成 77%、右侧一片留白（2026-09-16 事故）。
     注：overflow:hidden 只在「本元素自己是包含块」时才裁得到绝对定位子元素。
     老卡片（.combo-card.ip-entry 等）的 position:relative 都写在 style.css 里，新卡必须自带。 */
  position: relative;
  background: linear-gradient(128deg, #2b1a10 0%, #4a2a15 52%, #7a3a12 100%);
  overflow: hidden;
}
.ad-entry-glow {
  position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(249, 89, 1, .55) 0%, rgba(249, 89, 1, 0) 68%);
  pointer-events: none;
}
.ad-entry-tag {
  display: inline-block; padding: 3px 9px; margin-bottom: 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: #ffd9bd; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.ad-entry-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: #fff; line-height: 1.28; }
.ad-entry-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .74); }
.ad-entry-band { display: flex; align-items: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.ad-entry-band b {
  padding: 3px 8px; font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .10);
  border-radius: 8px; backdrop-filter: blur(2px);
}
.ad-entry-ico {
  position: relative; width: 58px; height: 58px; flex: 0 0 58px;
  display: grid; place-items: center; font-size: 27px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
}

/* ---------------------------------------------------------------- 子页骨架 */
/* 🔴 2026-10-10 栅格统一（老板指正「输入框比 banner 框小，整体不美观」）——
   病灶不在 banner，在**本页有 16 / 30 / 34 三套水平内缩**：
     banner `.ad-hero` 左右 0（贴住 .main 的 16px 栅格）
     `.ad-inbox` 又 margin 16 + padding 14 ⇒ 输入框左右各 30，比 banner 窄 60px（约 19% 宽）
     `.ad-note` / `.ad-head` 第三套 18
   修法：**子页内所有块级元素左右内缩一律归零**（贴住 .main 的统一栅格），
   卡片自己的内边距才是"卡片感"的唯一来源。见 .ad-inbox 处的完整说明。 */
.ad-top { position: relative; padding: 0 16px; }
/* 🔴 为什么这几条要带 #sub-alldl 前缀（2026-09-18 修，别删）：
 * `.ad-hero` 这个类名**被两个功能同时占用** ——
 *   本文件（alldl = 全平台视频下载，运营板块）用它做深棕色 hero；
 *   advisor.css（雷布斯顾问 / 马斯克顾问）也用它做自己的 hero，且 background 写成
 *   `linear-gradient(135deg, var(--ad-c1) ...)`，那三个变量只在 #sub-advisor 下定义。
 * 而 advisor.css 是后加的、**加载顺序在本文件之后** → 同名选择器后者胜出 →
 * 在「全平台视频下载」页里，hero 的深色底被 advisor 那条覆盖，变量又取不到 →
 * 整条 background 被判无效（CSS 规范：var 未定义且无 fallback = 该声明失效）→
 * **背景透明**，而本页 hero 的文字是白色 (#fff) → 白字压浅色页面 → 完全看不清。
 * 修法：只给本文件的选择器加 `#sub-alldl` 前缀提升特异性（1 id + 1 class > 1 class），
 * 不改 advisor.css（那是别人在用、且它自己那套是对的）。 */
/* 2026-10-10：上两角原来是**直角**（只写了 border-bottom-*-radius），而它上面紧挨着
   圆角的 tab 条、下面又咬着一张圆角白卡 ⇒ 顶部像"被切掉一块"。既然 .main 已给了
   水平栅格（手机 16 / PC 28），它本来就是一张独立卡片，四角统一 26px 才自洽。 */
#sub-alldl .ad-hero {
  position: relative; margin: 0 0 16px; padding: 2px 0 22px;
  background: linear-gradient(170deg, #2b1a10 0%, #44260f 46%, #6d3611 100%);
  border-radius: 26px;
  overflow: hidden;
}
#sub-alldl .ad-hero::before {
  content: ''; position: absolute; top: -70px; right: -50px; width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(249, 89, 1, .5) 0%, rgba(249, 89, 1, 0) 70%);
  pointer-events: none;
}
#sub-alldl .ad-hero .sub-topbar { position: relative; }
#sub-alldl .ad-hero .sub-title { color: #fff; }
/* 🔴 2026-10-03 老板报障「返回看不清楚」——
   这里原来**只把文字改成白色**，而底色仍是全站统一的浅米色胶囊（`--chip-bg: #fff1e7`）
   ⇒ 白字压米底，对比度只有 1.0:1 左右，等于隐形（老板截图里那个红框）。
   改成「半透明白底 + 白字 + 淡白描边」：在深色 hero 上是可读的玻璃按钮，
   也和紧挨着的白色标题同一个视觉语言。
   ⚠️ 描边要一起改 —— 全站那条内联规则给的是**橙色**内描边，配深色底会很脏。 */
#sub-alldl .ad-hero .sub-back {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
}
.ad-h1 { position: relative; margin: 12px 0 0; font-size: 23px; font-weight: 800; letter-spacing: .3px; color: #fff; }
.ad-sub { position: relative; margin: 7px 0 0; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .72); }
.ad-sub b { color: #ffd0ac; }

/* 平台墙：一眼看出「哪些平台行」 */
.ad-wall { position: relative; display: flex; gap: 8px; margin-top: 15px; overflow-x: auto; padding-bottom: 3px; }
.ad-wall::-webkit-scrollbar { display: none; }
.ad-wall-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: rgba(255, 255, 255, .90); background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
}
.ad-wall-chip i { font-style: normal; font-size: 13px; }
.ad-wall-chip.warn { opacity: .62; }

/* ---------------------------------------------------------------- 输入卡 */
/* 输入卡：左右归零 ⇒ 与 banner 等宽（手机都从 16 开始），不再是"缩在 banner 里的小框"。
   卡片内 padding 14 → 12，输入框左右从 46 收到 28（宽 298 → 334，+12%）。
   负咬合 -13 → -14，跟 banner 底部内边距(22)配平，保持"卡片从深色 hero 里浮起来"的层次。 */
.ad-inbox {
  position: relative; margin: -14px 0 0; padding: 12px;
  background: #fff; border-radius: 22px;
  box-shadow: 0 18px 40px -22px rgba(90, 46, 12, .50), 0 3px 12px rgba(120, 70, 30, .05);
}
/* 输入框：96 → 130 高（原来在卡片里显小、显空），字号 13.5 → 14 与正文对齐 */
.ad-ta {
  width: 100%; min-height: 130px; padding: 13px 14px; box-sizing: border-box;
  font: 14px/1.7 -apple-system, 'PingFang SC', sans-serif; color: var(--text);
  background: #fbf7f4; border: 1.5px solid #f0e3d8; border-radius: 15px;
  resize: vertical; outline: none; transition: border-color .18s, box-shadow .18s;
}
.ad-ta::placeholder { color: #bda797; }
.ad-ta:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(249, 89, 1, .10); }
.ad-inbox-bar { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.ad-ghost {
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: #8a6f5c;
  background: #fbf4ee; border: 1px solid #f2e4d8; border-radius: 11px; cursor: pointer;
  transition: background .16s, transform .1s;
}
.ad-ghost:hover { background: #f7ece3; }
.ad-ghost:active { transform: scale(.98); }
.ad-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text2); }
.ad-count.on { color: var(--primary); }

.ad-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ad-picked span {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 4px 9px; font-size: 11.5px; color: #6f5747;
  background: #fdf3ea; border: 1px solid #f6e3d3; border-radius: 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ad-go {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 14px; box-sizing: border-box;
  font-size: 15.5px; font-weight: 800; letter-spacing: .3px; color: #fff;
  background: var(--grad); border: 0; border-radius: 15px; cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(249, 89, 1, .62);
  transition: transform .12s, box-shadow .18s, filter .18s;
}
.ad-go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(249, 89, 1, .72); }
.ad-go:active:not(:disabled) { transform: translateY(1px) scale(.995); }
/* 空态（未输入时）原来 grayscale(.45)+opacity .58 ⇒ 整块发灰粉，是这页最"脏"的一块。
   改成只掉一点饱和 + 半透明 ⇒ 仍是品牌橙的淡版，看得出"这是主按钮，只是还没轮到它"。 */
.ad-go:disabled { filter: grayscale(.2); opacity: .74; cursor: not-allowed; box-shadow: none; }
.ad-go small { font-size: 11.5px; font-weight: 600; opacity: .9; }

.ad-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text2); }
.ad-note b { color: #8a6f5c; }

/* ---------------------------------------------------------------- 结果区 */
.ad-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.ad-head h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.ad-head .ad-n { font-size: 12px; font-weight: 600; color: var(--text2); }
.ad-head button {
  margin-left: auto; padding: 7px 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9a54, #f95901); border: 0; border-radius: 10px; cursor: pointer;
}
.ad-head button:disabled { filter: grayscale(.5); opacity: .5; cursor: not-allowed; }

.ad-list { display: flex; flex-direction: column; gap: 13px; padding: 0 0 26px; }

.ad-card {
  position: relative; padding: 13px; background: #fff; border-radius: 18px;
  box-shadow: 0 10px 28px -18px rgba(90, 46, 12, .40), 0 1px 4px rgba(120, 70, 30, .05);
  border: 1px solid #f4e9df;
  animation: adIn .26s ease both;
}
@keyframes adIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.ad-card.run { border-color: #ffe3cc; }
.ad-card.bad { border-color: #f6d7d7; background: #fffdfd; }

.ad-row { display: flex; gap: 11px; }
.ad-thumb {
  position: relative; width: 92px; height: 92px; flex: 0 0 92px; overflow: hidden;
  background: linear-gradient(135deg, #f6ece2, #f0e2d5); border-radius: 13px;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-thumb .ad-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; opacity: .5; }
.ad-thumb .ad-dur {
  position: absolute; right: 5px; bottom: 5px; padding: 2px 5px;
  font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .58); border-radius: 6px;
}
.ad-thumb .ad-kind {
  position: absolute; left: 5px; top: 5px; padding: 2px 6px; font-size: 10px; font-weight: 700;
  color: #fff; background: rgba(249, 89, 1, .88); border-radius: 6px;
}
.ad-meta { flex: 1; min-width: 0; }
.ad-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 700; color: #fff; border-radius: 999px;
}
.ad-t {
  margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-d {
  margin: 5px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-stat { display: flex; gap: 9px; margin-top: 7px; flex-wrap: wrap; }
.ad-stat span { font-size: 11px; color: #6f5847; }
.ad-stat span b { color: var(--primary); font-weight: 700; }

/* ---- 作者行 / 互动数据 / 话题（2026-10-02 老板拿参考站红框圈的三处；复制标题已移入动作区） ----
   🔴 数据一律"平台给多少画多少"：stats 缺项、hashtags 为空就整块不画，绝不编、也不显示 0。 */
.ad-author { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ad-av {
  width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover;
  background: #f6ece4; display: grid; place-items: center; font-size: 14px;
}
.ad-av-ph { color: #c8a98f; }
.ad-aw { min-width: 0; }
.ad-an { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.ad-ap { display: block; font-size: 10.5px; margin-top: 1px; color: #6f5847; }
/* 「复制标题」小胶囊（.ad-copytitle）与它的 .ad-trow 容器 2026-10-10 已删 ——
   复制标题挪进动作区，信息区标题直接吃 .ad-t 的两行省略。 */
.ad-nums { display: flex; gap: 6px; margin-top: 8px; }
.ad-num {
  flex: 1; min-width: 0; padding: 5px 2px; text-align: center;
  background: #fdf7f2; border: 1px solid #f4e7dc; border-radius: 9px;
}
/* 🔴 `nowrap` 不能省：`25.3万` 里的「万」是汉字，中文可以任意换行，
   窄屏（390px）下会被折成「25.3 / 万」两行 —— 实测就是这么演的。 */
.ad-num b { display: block; font-size: 12px; font-weight: 800; color: var(--text); white-space: nowrap; }
.ad-num span { display: block; margin-top: 1px; font-size: 10px; color: #6f5847; white-space: nowrap; }
/* 话题标签在卡片里排在互动数据之后；`.ad-tags` 本身（素材包那处）没有外边距，这里补一个作用域版 */
.ad-meta .ad-tags { margin-top: 7px; }

/* 进度（渐近，不假造终态） */
.ad-prog { margin-top: 11px; }
.ad-prog-top { display: flex; align-items: center; font-size: 11.5px; color: #8a6f5c; }
.ad-prog-top b { margin-left: auto; color: var(--primary); font-weight: 700; }
.ad-bar { height: 6px; margin-top: 7px; background: #f5e9de; border-radius: 999px; overflow: hidden; }
.ad-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--grad); transition: width .5s ease;
}
.ad-bar i.sk { width: 32%; animation: adSk 1.25s ease-in-out infinite; }
@keyframes adSk {
  0% { margin-left: -32%; } 100% { margin-left: 100%; }
}

/* 动作按钮组 */
.ad-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ad-acts a, .ad-acts button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 11px; font-size: 12px; font-weight: 700; text-decoration: none;
  color: #7a3d12; background: #fff4ea; border: 1px solid #fbdcc2; border-radius: 11px; cursor: pointer;
  transition: background .16s, transform .1s;
}
.ad-acts a:hover, .ad-acts button:hover { background: #ffe9d6; }
.ad-acts a:active, .ad-acts button:active { transform: scale(.98); }
.ad-acts a.primary, .ad-acts button.primary {
  color: #fff; background: var(--grad); border-color: transparent;
  box-shadow: 0 10px 20px -12px rgba(249, 89, 1, .8);
}
.ad-acts a.ghost2, .ad-acts button.ghost2 { color: #6f5747; background: #fbf7f4; border-color: #f0e3d8; }
/* 「提取文案」是动作区里**第二重要**的入口（排在「保存原片」之后）——
   给它一点强调色，别让它混在「存封面 / 音频」里被划过去（2026-10-02 老板要求提到上面来）。 */
.ad-acts button.ad-askscript { color: #c2410c; background: #fff7ed; border-color: #fdba74; }
.ad-acts button.ad-askscript:hover { background: #ffedd5; }

/* 「提取文案」的就地进度 / 错误条（2026-10-02）
   🔴 老板明确要求：点完**不跳页**，就在卡片里等结果（对齐他给的参考站做法）。
   所以进度与报错都落在这条上，不弹层、不换子页、不夺走上下文。 */
.ad-askbox {
  margin-top: 8px; padding: 7px 10px; display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #8a5a2b; background: #fffaf3;
  border: 1px dashed #f5d9bd; border-radius: 9px;
}
.ad-askbox b { color: #c2410c; }
.ad-askbox.bad { color: #9a3412; background: #fff5f2; border: 1px solid #fecaca; }
.ad-askbox-spin {
  width: 11px; height: 11px; flex: none; border-radius: 50%;
  border: 2px solid #fbdcc2; border-top-color: #f95901;
  animation: adAskSpin .7s linear infinite;
}
@keyframes adAskSpin { to { transform: rotate(360deg); } }

/* 文案区 */
.ad-script { margin-top: 11px; border-top: 1px dashed #f0e2d5; padding-top: 10px; }
.ad-script summary {
  font-size: 12px; font-weight: 700; color: #8a6f5c; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 5px;
}
.ad-script summary::-webkit-details-marker { display: none; }
.ad-script summary::after { content: '▾'; flex: none; font-size: 11px; color: #c3ac9b; }
.ad-script[open] summary::after { content: '▴'; }
.ad-script p {
  margin: 9px 0 0; padding: 11px; font-size: 12.5px; line-height: 1.85; color: #5b4636;
  white-space: pre-wrap; word-break: break-word; background: #fbf8f5; border-radius: 11px;
  max-height: 320px; overflow: auto;
}

/* 「提取的文案」块：状态标签 + 校对入口（2026-10-10 新增）
   🔴 2026-10-10 老板报障：这张卡上**没有校对按钮**、标题还叫「口播文案」。
      根因是上一轮只改了子页（public/pick.js），漏了本卡的内嵌提取入口 runAskScript。
   🔴 类名一律带 ad- 前缀、且避开既有的 `.ad-tags`（那是**话题**标签，差一个字母）——
      本站吃过"裸类名跨功能吃样式"的亏，新增一律带作用域。 */
/* 🔴 标题行 = 标题（可压缩）｜状态标签｜校对按钮｜▾ —— 2026-10-10 老板第二次指正：
   校对按钮要**紧挨标题**（他的原话「文案显示的旁边」），不许另起一条放到正文下面。
   窄屏优先压缩**标题**（省略号），状态标签与按钮永不被挤走。 */
.ad-stitle {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 状态标签 —— 只有「已校对 · 已分段」这一种（绿）。
   🔴 2026-10-10 老板第三次指正：原来的灰「未校对」标签**去掉**了
   （未校对是常态，标出来是多此一举；按钮本身已表达"可以校对"）。 */
.ad-stag {
  flex: none; font-size: 11.5px; font-weight: 600; border-radius: 5px;
  padding: 1px 7px; white-space: nowrap;
}
.ad-stag.ok { background: #e9f6ee; color: #0a8a3d; }

/* 标题行里的小按钮（比正文按钮**小一号**，否则手机上跟标题抢地方）。
   两态共用同一格、同一外观：未校对 = .ad-proof（🔍 文案校对）｜已校对 = .ad-ctidy（📋 复制）。
   🔴 2026-10-10 老板第四次指正：校对完那颗按钮曾整个消失、标题行右边空着（他画框说「缺少复制按钮」），
      现在这一格永远有一颗按钮，只是动作跟着状态换 —— 位置不动，用户不用重新找。 */
.ad-proof,
.ad-ctidy {
  flex: none; border: 0; border-radius: 7px; padding: 3px 9px; cursor: pointer;
  background: var(--primary, #f95901); color: #fff; font-size: 11.5px; font-weight: 600;
  font-family: inherit; line-height: 1.55; white-space: nowrap;
}
.ad-proof:active,
.ad-ctidy:active { opacity: .86; }
.ad-proof[disabled] { opacity: .62; cursor: default; }

/* 「看原话（校对前的原始提取）」—— 嵌在 .ad-script 里的一层 details。
   ⚠️ 父级 `.ad-script summary::after` 会给所有后代 summary 都塞一个 ▾，
      所以这里必须用更高的特异性把箭头状态改回"跟着自己的 open 走"。 */
.ad-raw { margin-top: 8px; }
.ad-raw > summary { font-size: 12px; color: #8a7a6d; }
.ad-script .ad-raw > summary::after { content: '▾'; }
.ad-script .ad-raw[open] > summary::after { content: '▴'; }
.ad-script .ad-raw > p { max-height: 190px; }

/* 图集 */
.ad-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 11px; }
.ad-imgs a { position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden; background: #f5ece4; }
.ad-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 素材包 */
.ad-kit {
  margin-top: 12px; padding: 12px; border-radius: 15px;
  background: linear-gradient(180deg, #fffaf5, #fff5ec); border: 1px solid #f8e2cf;
}
.ad-kit h4 { margin: 0 0 9px; font-size: 12.5px; font-weight: 800; color: #8a4a14; display: flex; align-items: center; gap: 6px; }
.ad-kit .ad-kf { margin-bottom: 9px; }
.ad-kit .ad-kf:last-child { margin-bottom: 0; }
.ad-kit .ad-kf b { display: block; font-size: 11px; font-weight: 700; color: #b07a48; margin-bottom: 3px; }
.ad-kit .ad-kf div { font-size: 12.5px; line-height: 1.75; color: #4f3a2a; white-space: pre-wrap; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ad-tags span {
  padding: 3px 8px; font-size: 11px; font-weight: 600; color: #a4510a;
  background: #fff0e0; border: 1px solid #fbdcbd; border-radius: 999px;
}
.ad-warn {
  margin-top: 9px; padding: 8px 10px; font-size: 11.5px; line-height: 1.6;
  color: #a8500a; background: #fff6e8; border: 1px solid #fadfae; border-radius: 10px;
}
.ad-copy { margin-left: 4px; }

/* 失败卡 */
.ad-fail { display: flex; gap: 9px; align-items: flex-start; }
.ad-fail .ad-fi { font-size: 17px; line-height: 1.2; }
.ad-fail p { margin: 0; flex: 1; font-size: 12.5px; line-height: 1.7; color: #8a4b4b; }
.ad-fail button {
  margin-top: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: #ef8f8f; border: 0; border-radius: 10px; cursor: pointer;
}

/* 空态 / 历史 */
.ad-empty { padding: 26px 0; text-align: center; font-size: 12.5px; color: var(--text2); }
.ad-hist { padding: 0 0 30px; }
.ad-hist summary {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 13px; font-weight: 700;
  color: #7a5a41; background: #fff; border: 1px solid #f4e9df; border-radius: 15px; cursor: pointer;
}
.ad-hist summary::-webkit-details-marker { display: none; }
.ad-hist summary::after { content: '▾'; margin-left: auto; font-size: 11px; color: #c3ac9b; }
.ad-hist[open] summary::after { content: '▴'; }
.ad-hitems { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ad-hitem {
  display: flex; gap: 9px; align-items: center; padding: 9px;
  background: #fff; border: 1px solid #f4e9df; border-radius: 13px; cursor: pointer;
}
.ad-hitem img { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 9px; background: #f5ece4; }
.ad-hitem .ad-ht { flex: 1; min-width: 0; }
.ad-hitem .ad-ht b {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-hitem .ad-ht span { font-size: 11px; color: var(--text2); }

/* 覆盖：hidden 会被 display:flex/grid 盖掉，必须显式兜住 */
.ad-wall[hidden], .ad-list[hidden], .ad-inbox[hidden], .ad-empty[hidden],
.ad-kit[hidden], .ad-prog[hidden], .ad-imgs[hidden], .ad-acts[hidden] { display: none !important; }

/* toast */
.ad-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 9999;
  max-width: 82vw; padding: 10px 16px; transform: translateX(-50%) translateY(8px);
  font-size: 13px; color: #fff; background: rgba(43, 26, 16, .94);
  border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.ad-toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------------------------------------------------------------- 内嵌播放器（移动端存相册的主路径） */
.ad-player { margin-top: 11px; }
.ad-player video {
  width: 100%; max-height: 400px; display: block; background: #000;
  border-radius: 14px; box-shadow: 0 8px 22px -14px rgba(60, 30, 10, .55);
}
.ad-player-tip { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.6; color: #9b8271; }

/* 微信内置浏览器的一次性引导（点之前就说清楚，别让用户白点） */
.ad-wxtip {
  margin: 0 0 12px; padding: 11px 13px;
  font-size: 12px; line-height: 1.75; color: #8a4b0f;
  background: #fff7e8; border: 1px solid #f7dfae; border-radius: 13px;
}
.ad-wxtip b { color: #a4540a; }

/* ---------------------------------------------------------------- 图集多选（对齐同行：单选/多选/全选 → 批量存相册） */
.ad-gal { margin-top: 11px; }
.ad-gal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ad-gal-n { font-size: 12px; font-weight: 600; color: var(--text2); }
.ad-gal-all {
  margin-left: auto; padding: 5px 10px; font-size: 11.5px; font-weight: 600;
  color: #8a6f5c; background: #fbf4ee; border: 1px solid #f2e4d8; border-radius: 9px; cursor: pointer;
}
.ad-gal-all:active { transform: scale(.97); }
.ad-gal-save {
  padding: 6px 13px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--grad); border: 0; border-radius: 9px; cursor: pointer;
  box-shadow: 0 8px 16px -10px rgba(249, 89, 1, .9);
}
.ad-gal-save:disabled { filter: grayscale(.5); opacity: .6; }
.ad-gal .ad-imgs { margin-top: 0; }
.ad-img {
  position: relative; display: block; padding-top: 100%;
  border-radius: 10px; overflow: hidden; background: #f5ece4;
}
.ad-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .16s; }
.ad-img:not(.sel) img { opacity: .42; }
.ad-img .ad-ck {
  position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .82); border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22); transition: background .16s, border-color .16s;
}
.ad-img.sel .ad-ck { background: #22b573; border-color: #22b573; }
.ad-img.sel .ad-ck::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
}

/* 历史条目：已过期的那条降透明度 + 占位块 */
.ad-hitem.off { opacity: .62; }
.ad-hph { width: 46px; height: 46px; flex: 0 0 46px; background: #f5ece4; border-radius: 9px; }

/* 运营工具网格里的图标卡：这个名字比别的卡多一个字，手机窄屏会折成两行
   （其余卡都是 4~6 字一行，折行会显得整格不齐）→ 单独收一点字号 + 禁止折行。
   只作用于这一张卡，不碰 style.css 里共享的 .func-name。 */
#view-ops .func-card[data-action="alldl"] .func-name {
  font-size: 12.5px;
  white-space: nowrap;
  letter-spacing: -.2px;
}
