/* ==========================================================================
   市场部资源库 · 组件样式
   建立在 base.css（与「市场部仓库」完全同一套设计令牌）之上：
   颜色 --blue #0066cc / --ink #1d1d1f / --parchment #f5f5f7 / --line #e5e5e7
   圆角 18px 卡片、999px 胶囊按钮、顶部半透明导航条
   ========================================================================== */

/* ---------- 通用 ---------- */
.dam-body .content { padding-top: 40px; }
.dam-body.is-public .sidebar,
.dam-body.is-public .global-nav-actions,
.dam-body.is-public .mobile-brand { display: none; }
.dam-body.is-public .content { padding-top: 56px; }

.dam-page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 26px; }
.dam-page-head h1 { font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
.dam-page-head .subtle { margin-top: 9px; }
.dam-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; }
.muted-sm { color: var(--muted-light); font-size: 11px; }
.dam-divider { height: 1px; margin: 20px 0; background: var(--line-soft); border: 0; }

/* ---------- KPI ---------- */
.dam-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.dam-kpi { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dam-kpi span { color: var(--muted); font-size: 12px; }
.dam-kpi strong { display: block; margin-top: 12px; font-size: 30px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.dam-kpi small { display: block; margin-top: 9px; color: var(--muted-light); font-size: 11px; }
.dam-kpi.is-primary { border: 0; background: var(--parchment); }

/* ---------- 筛选条 ---------- */
.dam-filters { display: grid; gap: 12px; margin-bottom: 22px; }
.dam-searchrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dam-search { flex: 1; min-width: 260px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: #e9e9ed; display: flex; align-items: center; gap: 10px; }
.dam-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.dam-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--ink); }
.dam-search input::placeholder { color: #a1a1a6; }
.dam-search kbd { padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.8); color: var(--muted-light); font: 10px/1.2 ui-monospace, monospace; }

.chip-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chip { min-height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.chip:hover { border-color: #c9c9ce; background: var(--pearl); }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip .count { color: var(--muted-light); font-size: 10px; font-variant-numeric: tabular-nums; }
.chip.active .count { color: rgba(255,255,255,.62); }

/* ---------- 资产网格 ---------- */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.asset-card { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; text-align: left; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; display: flex; flex-direction: column; }
.asset-card:hover { transform: translateY(-2px); border-color: #d8d8dd; box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.asset-thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--parchment); }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-thumb .ftype { position: relative; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.asset-thumb .thumb-tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.asset-thumb .thumb-ver { position: absolute; top: 10px; right: 10px; z-index: 2; }
.asset-thumb.cat-brand   { background: linear-gradient(135deg, #eaf3ff, #dbe9ff); }
.asset-thumb.cat-product { background: linear-gradient(135deg, #eef8f0, #d8efe0); }
.asset-thumb.cat-print   { background: linear-gradient(135deg, #fdf3e7, #f8e4cc); }
.asset-thumb.cat-social  { background: linear-gradient(135deg, #f2eefc, #e3d9f8); }
.asset-thumb.cat-expo    { background: linear-gradient(135deg, #e9f4f8, #d3e8f1); }
.asset-thumb.cat-event   { background: linear-gradient(135deg, #fdeef1, #f8d9e0); }
.asset-thumb.cat-corp    { background: linear-gradient(135deg, #f1f1f4, #e2e2e8); }
.asset-thumb.cat-ip      { background: linear-gradient(135deg, #fff6e0, #ffe9b8); }
.asset-thumb.cat-media   { background: linear-gradient(135deg, #eef0f4, #dfe4ec); }
.asset-thumb.cat-project { background: linear-gradient(135deg, #eef7f6, #d7ecea); }

.asset-body { padding: 14px 16px 16px; display: grid; gap: 9px; flex: 1; }
.asset-name { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.asset-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted-light); font-size: 10px; }
.asset-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c7c7cc; }
.asset-foot { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.completeness { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-light); font-size: 10px; }
.completeness .bar { width: 54px; height: 4px; border-radius: 999px; background: #ececf0; overflow: hidden; }
.completeness .bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.completeness.is-low .bar i { background: #e8a33d; }
.completeness.is-empty .bar i { background: var(--red); }
.share-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10px; font-weight: 500; }

/* ---------- 详情 ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.detail-preview { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--parchment); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.detail-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.detail-preview .preview-hint { padding: 16px 22px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--muted); font-size: 12px; }
.detail-caption { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-light); font-size: 11px; }

.meta-rows { display: grid; gap: 0; }
.meta-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.meta-row:last-child { border-bottom: 0; }
.meta-row dt { color: var(--muted); font-weight: 400; }
.meta-row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.meta-row dd.empty { color: #b0b0b6; }

/* 版本时间线 */
.timeline { display: grid; gap: 0; }
.tl-item { position: relative; padding: 0 0 18px 22px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid #c7c7cc; }
.tl-item:first-child::before { border-color: var(--blue); background: var(--blue); }
.tl-item::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::after { display: none; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.tl-body { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tl-body .mono { font-size: 10px; color: var(--muted-light); }

/* 分享 / 二维码 */
.qr-card { padding: 18px; border-radius: 16px; background: var(--parchment); display: grid; justify-items: center; gap: 12px; text-align: center; }
.qr-frame { padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); line-height: 0; }
.qr-frame canvas { display: block; width: 156px; height: 156px; image-rendering: pixelated; }
.qr-title { font-size: 12px; font-weight: 600; }
.qr-sub { color: var(--muted); font-size: 10px; line-height: 1.5; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.link-box button { flex: 0 0 auto; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.field-row:last-child { border-bottom: 0; }
.field-row > span { color: var(--muted); }
.field-row .field { width: 150px; }
.field-row .field input, .field-row .field select { min-height: 36px; padding: 6px 10px; font-size: 12px; }

/* 开关 */
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d9d9de; transition: background-color 160ms ease; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 160ms ease; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }

/* ---------- 上传 ---------- */
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.dropzone { padding: 34px 22px; border: 1.5px dashed #c9c9ce; border-radius: 18px; background: var(--pearl); display: grid; justify-items: center; gap: 10px; text-align: center; transition: border-color 150ms ease, background-color 150ms ease; }
.dropzone.is-over { border-color: var(--blue); background: var(--blue-soft); }
.dropzone b { font-size: 14px; font-weight: 600; }
.dropzone small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.file-list { display: grid; gap: 8px; margin-top: 14px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; }
.file-row .ficon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--parchment); display: grid; place-items: center; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.file-row .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize { color: var(--muted-light); font-size: 10px; font-variant-numeric: tabular-nums; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cat-tile { min-height: 62px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 10px; color: var(--ink-soft); line-height: 1.25; transition: border-color 150ms ease, background-color 150ms ease; }
.cat-tile:hover { border-color: #c9c9ce; background: var(--pearl); }
.cat-tile.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.cat-tile .ct-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cat-tile .ct-svg { width: 22px; height: 22px; display: block; }
.cat-tile.active .ct-icon { color: #fff; }

.advanced-toggle { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.advanced-toggle summary { padding: 12px 16px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ink-soft); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.advanced-toggle summary::-webkit-details-marker { display: none; }
.advanced-toggle[open] summary { border-bottom: 1px solid var(--line-soft); }
.advanced-body { padding: 18px 16px; }

/* ---------- 分享管理表 ---------- */
.share-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.share-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 500; text-align: left; white-space: nowrap; background: var(--pearl); }
.share-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.share-table tr:last-child td { border-bottom: 0; }
.share-table tr:hover td { background: #fbfbfd; }

/* ---------- 公开分享页 ---------- */
.public-wrap { width: min(760px, 100%); margin: 0 auto; }
.public-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.public-brand img { width: 104px; height: auto; }
.public-brand small { color: var(--muted-light); font-size: 10px; }
.public-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
.public-main { padding: 26px; }
.public-preview { border-radius: 14px; border: 1px solid var(--line); background: var(--parchment); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.public-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.public-title { margin-top: 20px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.public-chips { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.public-meta { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.public-meta div { font-size: 11px; color: var(--muted); }
.public-meta b { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 500; }
.public-foot { padding: 16px 26px; border-top: 1px solid var(--line-soft); background: var(--pearl); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.public-lock { padding: 40px 26px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.public-lock input { width: 220px; min-height: 42px; padding: 8px 14px; border: 1px solid #d2d2d7; border-radius: 999px; text-align: center; font-size: 13px; outline: none; }
.public-lock input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.public-qr { display: grid; gap: 10px; justify-items: center; padding: 18px; border-radius: 16px; background: var(--parchment); }

/* ---------- 空态 / 骨架 ---------- */
.dam-empty { padding: 56px 24px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.dam-empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .detail-grid, .upload-grid { grid-template-columns: minmax(0, 1fr); }
  .dam-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dam-body .content { padding: 26px 16px 64px; }
  .dam-page-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dam-page-head h1 { font-size: 27px; }
  .dam-kpis { gap: 10px; }
  .dam-kpi { padding: 16px; }
  .dam-kpi strong { font-size: 24px; }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .asset-body { padding: 11px 12px 13px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-meta { grid-template-columns: minmax(0, 1fr); }
  .qr-frame canvas { width: 132px; height: 132px; }
}

/* ==========================================================================
   接真实 BFF 后新增的组件（登录、上传进度、真实缩略图、设置页等）
   风格继续沿用 base.css 的设计令牌，不引入新配色。
   ========================================================================== */

/* ---------- 登录 ---------- */
.dam-body.is-login .sidebar,
.dam-body.is-login .global-nav-actions,
.dam-body.is-login .mobile-brand { display: none; }
.dam-body.is-login .content {
  min-height: 100vh;
  padding: 56px 24px;
  display: grid;
  place-items: center;
}
.login-wrap { width: min(430px, 100%); }
.login-card {
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .07);
  display: grid;
  gap: 18px;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 112px; height: auto; display: block; }
.login-brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.login-card h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.login-card .subtle { margin-top: 8px; }
.login-error {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(215, 0, 21, .08);
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}
.login-foot { color: var(--muted-light); font-size: 10px; line-height: 1.6; text-align: center; }
.login-card .button { width: 100%; }

/* ---------- 真实缩略图 ---------- */
.asset-thumb .thumb-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.asset-thumb .ftype { z-index: 0; }
.asset-thumb .thumb-tag, .asset-thumb .thumb-ver { z-index: 2; }
.detail-preview { position: relative; }
.detail-preview .preview-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.detail-preview .preview-hint { z-index: 0; }
.public-preview { position: relative; }
.public-preview img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.public-preview .ftype {
  position: relative;
  z-index: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- 上传向导补充 ---------- */
.dropzone .dz-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 19px;
  line-height: 1;
}
.file-row .file-remove { flex: 0 0 auto; }
.req { color: var(--red); font-weight: 600; }
.qr-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  color: #c7c7cc;
  font-size: 40px;
  line-height: 1;
}
.preview-val { max-width: 170px; text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.upload-progress { display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--pearl); }
.upload-progress[hidden] { display: none; }
.upload-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.upload-progress-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.upload-progress-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 5px; border-radius: 999px; background: #e6e6ea; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width 180ms ease; }

/* ---------- 详情页补充 ---------- */
.detail-meta { margin-top: 20px; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.tl-meta { margin-top: 4px; color: var(--muted-light); font-size: 10px; line-height: 1.6; }
.tl-actions { margin-top: 7px; }
.form-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.share-hint { color: var(--muted-light); font-size: 10px; line-height: 1.6; }
.share-stats { display: flex; gap: 16px; padding: 2px 0; color: var(--muted); font-size: 10px; }
.share-stats b { color: var(--ink); font-weight: 600; }

/* ---------- 分享管理表 ---------- */
.row-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row-actions .text-button { white-space: nowrap; }
.table-sub { color: var(--muted-light); font-size: 10px; margin-top: 2px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.settings-user { display: flex; align-items: center; gap: 14px; }
.settings-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
}
.settings-user strong { display: block; font-size: 15px; font-weight: 600; }
.settings-user small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.settings-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 公开页补充 ---------- */
.public-actions { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.public-error { color: var(--red); font-size: 11px; }
.public-lock h2 { font-size: 19px; font-weight: 600; }
.public-lock .subtle { max-width: 340px; }
.public-lock form { display: grid; justify-items: center; gap: 12px; }
.public-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }

/* ---------- 表单细节 ---------- */
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.checkline input { width: 16px; height: 16px; accent-color: var(--blue); }

@media (max-width: 1100px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .dam-body.is-login .content { padding: 32px 16px; }
  .login-card { padding: 26px 22px 24px; }
  .public-main { padding: 18px; }
  .public-foot { padding: 14px 18px; }
  .detail-actions { width: 100%; }
}

/* 视频/音频/PDF 在详情页内联预览 */
.detail-preview.has-media { background: #0b0b0f; }
.detail-preview .preview-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b0f; }
.detail-preview .preview-pdf { background: #fff; border: 0; }
.detail-preview.has-media .preview-hint { position: absolute; left: 14px; top: 14px; z-index: 2; opacity: .9; }

/* 公开页：视频/音频/PDF 内联 */
.public-preview.has-media { background: #0b0b0f; }
.public-preview .public-media { width: 100%; height: 100%; object-fit: contain; background: #0b0b0f; }
.public-preview .public-pdf { width: 100%; height: 100%; border: 0; background: #fff; }

/* 公开页移动端：防止横向溢出（真机 430px 实测右侧被裁切） */
.dam-body.is-public { overflow-x: hidden; }
.dam-body.is-public .content { width: 100%; max-width: 100%; }
.public-wrap { width: 100%; max-width: 760px; }
.public-card, .public-main, .public-foot { min-width: 0; }
.public-foot span { min-width: 0; overflow-wrap: anywhere; }
.public-title, .public-meta b { overflow-wrap: anywhere; }
