/* ============================================================
 * 内容资产库 / 数据飞轮 / 场景化 / 碎片采集（2026-10-02 新增）
 * 约束：主色沿用小红书红 #FF2442（--xhs-red / --brand-2）
 *       动效只用 transform & opacity；尊重 prefers-reduced-motion
 * ============================================================ */

/* ---------- 概览统计 ---------- */
.as-stats { display: flex; flex-wrap: wrap; gap: var(--s-10, 10px); }
.as-stat {
  flex: 1 1 120px; min-width: 108px; padding: var(--s-12, 12px) var(--s-14, 14px);
  border: 1px solid var(--border-subtle, #f3d0d7); border-radius: var(--r-md, 12px);
  background: var(--bg-surface, #fff);
  transition: transform .18s var(--ease-out, cubic-bezier(.22,.61,.36,1)), box-shadow .18s var(--ease-out);
}
.as-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.as-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--xhs-red-text, #D81B37); line-height: 1.2; }
.as-stat span { display: block; font-size: 12px; color: var(--ink3, #6E6869); margin-top: 2px; }

/* ---------- 分布条 ---------- */
.as-dist { margin-top: var(--s-14, 14px); }
.as-dist-title { font-size: 12px; color: var(--ink3, #6E6869); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.as-bar {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  padding: 3px 0; color: var(--ink2, #4b4b4b);
}
.as-bar-name { flex: 0 0 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-subtle, #fff5f6); overflow: hidden; }
.as-bar-fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--xhs-red, #ff2442), #ff7a90);
  transform-origin: left center; transform: scaleX(0); opacity: 0;
  transition: transform .6s var(--ease-out, cubic-bezier(.22,.61,.36,1)), opacity .3s linear;
}
.as-bar-fill.on { transform: scaleX(var(--w, 0)); opacity: 1; }
.as-bar-num { flex: 0 0 34px; text-align: right; color: var(--ink3, #6E6869); }

/* ---------- 提示条 ---------- */
.as-note {
  margin-top: var(--s-12, 12px); padding: 10px 12px; border-radius: var(--r-md, 12px);
  background: var(--bg-subtle, #fff5f6); border: 1px solid var(--border-subtle, #f3d0d7);
  font-size: 12.5px; color: var(--ink2, #4b4b4b); line-height: 1.6;
}
.as-note.warn { background: #fff8e6; border-color: #ffe2a8; color: #8a6100; }

/* ---------- 筛选 ---------- */
.as-filter, .as-track-form, .as-frag {
  display: flex; flex-wrap: wrap; gap: var(--s-10, 10px); align-items: center; margin-bottom: var(--s-12, 12px);
}
.as-filter .plog-input, .as-filter select { flex: 1 1 150px; min-width: 130px; height: 42px; }
.as-filter select, .as-track-form input {
  padding: var(--s-10, 10px) var(--s-14, 14px); border: 1.5px solid #f3d0d7; border-radius: 12px;
  background: #fff; color: var(--ink, #1f1f1f); font-size: 14px; height: 42px; box-sizing: border-box;
}
.as-filter select:focus, .as-track-form input:focus { outline: none; border-color: var(--xhs-red-text, #D81B37); box-shadow: 0 0 0 3px var(--ring-red, rgba(255,36,66,.15)); }
.as-track-form input { flex: 1 1 130px; min-width: 110px; }
.as-frag .btn { min-height: 42px; }

/* ---------- 资产卡片 ---------- */
.as-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-12, 12px); }
.as-item {
  border: 1px solid var(--border-subtle, #f3d0d7); border-radius: var(--r-md, 12px);
  padding: var(--s-12, 12px) var(--s-14, 14px); background: var(--bg-surface, #fff);
  transition: transform .18s var(--ease-out, cubic-bezier(.22,.61,.36,1)), box-shadow .18s var(--ease-out);
  opacity: 0; transform: translateY(8px);
}
.as-item.on { opacity: 1; transform: none; }
.as-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.08)); }
.as-item h4 { font-size: 14px; font-weight: 700; color: var(--ink, #1f1f1f); margin: 0 0 6px; line-height: 1.45; }
.as-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.as-tag {
  font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg-subtle, #fff5f6);
  color: var(--xhs-red-text, #D81B37); border: 1px solid var(--border-subtle, #f3d0d7); white-space: nowrap;
}
.as-tag.grey { background: var(--bg-hover, #f6f6f6); color: var(--ink3, #6E6869); border-color: var(--line, #ececec); }
.as-ces { float: right; font-size: 12px; font-weight: 700; color: var(--xhs-red-text, #D81B37); }
.as-meta { font-size: 12px; color: var(--ink3, #6E6869); margin-top: 6px; }

/* ---------- 场景卡 ---------- */
.as-scen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-12, 12px); }
.as-scen-card {
  border: 1px solid var(--border-subtle, #f3d0d7); border-radius: var(--r-md, 12px); padding: var(--s-14, 14px);
  background: var(--bg-surface, #fff); cursor: pointer;
  transition: transform .18s var(--ease-out, cubic-bezier(.22,.61,.36,1)), box-shadow .18s var(--ease-out);
}
.as-scen-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.08)); }
.as-scen-card:active { transform: scale(.985); }
.as-scen-card b { display: block; font-size: 14.5px; color: var(--ink, #1f1f1f); }
.as-scen-card i.sub { display: block; font-style: normal; font-size: 12px; color: var(--ink3, #6E6869); margin: 4px 0 8px; line-height: 1.6; }
.as-steps { list-style: none; margin: 0; padding: 0; }
.as-steps li { font-size: 12.5px; color: var(--ink2, #4b4b4b); padding: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.as-steps li em {
  flex: 0 0 18px; height: 18px; line-height: 18px; text-align: center; font-style: normal; font-size: 12px;
  border-radius: 999px; background: var(--xhs-red-solid, #E01230); color: #fff; margin-top: 1px;
}
.as-steps li span { flex: 1; }
.as-step-go { color: var(--xhs-red-text, #D81B37); text-decoration: none; font-weight: 600; }
.as-step-go:hover { text-decoration: underline; }

/* ---------- 推荐结论 ---------- */
.as-rec { font-size: 13.5px; color: var(--ink2, #4b4b4b); line-height: 1.75; }
.as-rec-list { margin: 8px 0 0; padding-left: 18px; }
.as-rec-list li { margin: 3px 0; }
.as-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-12, 12px); }

/* ---------- 发布回流表 ---------- */
.as-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.as-table th, .as-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line, #ececec); }
.as-table th { color: var(--ink3, #6E6869); font-weight: 600; font-size: 12px; }
.as-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.as-table tr:hover td { background: var(--bg-subtle, #fffafb); }
.as-dev-up { color: var(--xhs-red-text, #D81B37); font-weight: 700; }
.as-dev-down { color: #137A52; font-weight: 700; }

/* ---------- 碎片素材 ---------- */
.as-frag-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-10, 10px); }
.as-frag-item {
  border: 1px solid var(--line, #ececec); border-radius: var(--r-md, 12px); overflow: hidden;
  background: var(--bg-surface, #fff); font-size: 12.5px;
}
.as-frag-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.as-frag-body { padding: 8px 10px; }
.as-frag-txt { color: var(--ink2, #4b4b4b); line-height: 1.6; max-height: 66px; overflow: hidden; }
.as-frag-time { color: var(--ink3, #6E6869); font-size: 12px; margin-top: 5px; }
.as-frag-del { float: right; color: var(--ink3, #6E6869); cursor: pointer; font-size: 12px; }
.as-frag-del:hover { color: var(--xhs-red-text, #D81B37); }
.as-recording { color: var(--xhs-red-text, #D81B37); font-size: 12.5px; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .as-list, .as-scen, .as-frag-list { grid-template-columns: 1fr; }
  .as-stat { flex: 1 1 46%; min-width: 0; }
  .as-filter .plog-input, .as-filter select { flex: 1 1 100%; }
  .as-table { font-size: 12px; }
  .as-table th:nth-child(n+4), .as-table td:nth-child(n+4) { display: none; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .as-item, .as-stat, .as-scen-card { transition: none !important; opacity: 1 !important; transform: none !important; }
  .as-bar-fill { transition: none !important; opacity: 1 !important; transform: scaleX(var(--w, 0)) !important; }
  .as-scen-card:active { transform: none !important; }
  .as-stat:hover, .as-item:hover, .as-scen-card:hover { transform: none !important; }
}
html.ss-reduced-motion .as-item,
html.ss-reduced-motion .as-stat,
html.ss-reduced-motion .as-scen-card { transition: none !important; opacity: 1 !important; transform: none !important; }
html.ss-reduced-motion .as-bar-fill { transition: none !important; opacity: 1 !important; transform: scaleX(var(--w, 0)) !important; }
