/* ============================================================
 * 薯薯 · 深度适配（2026-10-01 阶段八）
 * ------------------------------------------------------------
 * 纪律：只动 transform / opacity；prefers-reduced-motion 下动效全关；
 *       移动端只做尺寸降级，不做结构变化。
 * ============================================================ */

/* ---------- 模块上下文条 ---------- */
.ss-adapt-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 8px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.ss-adapt-lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}
.ss-adapt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF2442;
  box-shadow: 0 0 0 3px rgba(255, 36, 66, .14);
  flex: 0 0 auto;
}
.ss-adapt-name {
  font-size: 12px;
  font-weight: 600;
  color: #2b2b33;
  white-space: nowrap;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-adapt-chip {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  background: #f5f5f7;
  color: #6b6b76;
  white-space: nowrap;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-adapt-ask {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 20px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 36, 66, .09);
  color: var(--xhs-red-text, #D81B37);
  cursor: pointer;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background .16s ease;
}
.ss-adapt-ask:hover { background: rgba(255, 36, 66, .16); }
.ss-adapt-ask:active { transform: scale(.94); }

/* ---------- 每日简报卡 ---------- */
.ss-brief {
  position: relative;
  margin: 8px 12px 10px;
  padding: 10px 12px 11px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 36, 66, .07), rgba(255, 179, 0, .08));
  border: 1px solid rgba(255, 36, 66, .14);
  animation: ss-brief-in .26s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ss-brief-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.ss-brief-t {
  font-size: 12px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 7px;
}
.ss-brief-hot { display: flex; flex-wrap: wrap; gap: 5px; }
.ss-brief-kw {
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #fff;
  color: #3a3a44;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-brief-more {
  margin-top: 9px;
  font-size: 12px;
  line-height: 24px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: #E02039;
  color: #fff;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s ease;
}
.ss-brief-more:hover { box-shadow: 0 3px 10px rgba(255, 36, 66, .3); }
.ss-brief-more:active { transform: scale(.95); }
.ss-brief-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border: 0;
  background: transparent;
  color: #6E6869;
  font-size: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .16s ease, background .16s ease;
}
.ss-brief-x:hover { background: rgba(0, 0, 0, .05); }
.ss-brief-x:active { transform: scale(.9); }

/* ---------- 里程碑 ---------- */
.ss-miles {
  position: relative;
  margin: 8px 12px 10px;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6f7, #fff9ec);
  border: 1px solid rgba(255, 179, 0, .3);
  text-align: center;
  overflow: hidden;
  animation: ss-miles-in .32s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ss-miles-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
.ss-miles-icon { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.ss-miles-t {
  font-size: 14px;
  font-weight: 700;
  color: #2b2b33;
  margin-bottom: 4px;
}
.ss-miles-d {
  font-size: 12px;
  line-height: 1.6;
  color: #6b6b76;
  margin-bottom: 10px;
}
.ss-miles-ok {
  font-size: 12px;
  line-height: 26px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #E02039;
  color: #fff;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}
.ss-miles-ok:active { transform: scale(.95); }

/* 撒花：只在非 reduced-motion 下由 JS 注入，这里只给运动定义 */
.ss-confetti {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ss-cf {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  opacity: 0;
  animation: ss-cf-fly var(--d, 900ms) cubic-bezier(.2, .7, .3, 1) forwards; pointer-events: none; }
@keyframes ss-cf-fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(var(--x, 0), 96px) rotate(var(--r, 0deg)) scale(1);
  }
}

/* ---------- 移动端：只缩尺寸、回收间距 ---------- */
@media (max-width: 640px) {
  .ss-adapt-bar { padding: 5px 10px 7px; gap: 5px; }
  .ss-adapt-name { max-width: 92px; font-size: 12px; }
  .ss-adapt-chip { max-width: 86px; font-size: 12px; padding: 0 6px; }
  .ss-adapt-ask { font-size: 12px; padding: 0 7px; }
  .ss-brief { margin: 6px 10px 8px; padding: 9px 10px 10px; }
  .ss-miles { margin: 6px 10px 8px; padding: 12px 12px 11px; }
}

/* ---------- 尊重系统的「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ss-brief, .ss-miles { animation: none; }
  .ss-cf { animation: none; opacity: 0; }
  .ss-adapt-ask,
  .ss-brief-more,
  .ss-brief-x,
  .ss-miles-ok { transition: none; }
  .ss-adapt-ask:active,
  .ss-brief-more:active,
  .ss-brief-x:active,
  .ss-miles-ok:active { transform: none; }
}
