/* ============================================================================
   服装去皱 · 样式（2026-09-21 · 开发员15号）
   ----------------------------------------------------------------------------
   对标：美图设计室「服装去皱」。类名前缀 `wr-`（全站已核未被占用）。
   🔴 本文件在 style.css 之后加载 —— 只新增类名，**不改 style.css**
      （铁律：改别人的样式别动 style.css，避免与并发会话互相覆盖）。

   配色思路（沿用本项目已验证的两条原则，别再走回头路）：
     ① **一个功能一条色轴**：整页只有青柠黄绿（H 69°）一条色轴 ——
        它是图片板块色相环上 **Lab ΔE 55.5 的最大空位**（板块已占 0/15/25/35/38/43/142/189/217/243/258/330）。
        跑 `node tools/audit-icon-colors.cjs --view image` 可复验，**别用肉眼比色**。
     ② **冲击力来自明度对比**，不是色相数量 —— 不引入第二种颜色，
        用深色（近墨绿的 `#1c2606`）压住黄绿，做出高级感。
     ⚠️ 蓝 T 恤 emoji（👕）在黄绿底上是互补对比，比放在蓝/青底上清楚得多 —— 这是选它的实测理由之一。
   ========================================================================== */

/* 🔴 `[hidden]` 的兜底必须**按作用域各补一条**：本页多处用了 display:flex/grid，
   它们会盖掉浏览器默认的 `[hidden]{display:none}`，导致"隐藏"的元素其实还占着位置。 */
#sub-wrinkle [hidden] { display: none !important; }

/* ===================== 横幅 ===================== */
.wr-banner {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; margin-bottom: 14px;
  border-radius: var(--radius, 16px);
  background: linear-gradient(118deg, #d4ef62 0%, #a5d818 42%, #6f9c07 100%);
  color: #1c2606;
  box-shadow: 0 10px 24px -12px rgba(111, 156, 7, .85);
  overflow: hidden;
}
/* 右上角光斑：高级感靠它，但必须不撑宽容器 */
.wr-banner::after {
  content: ''; position: absolute; right: -34px; top: -58px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.wr-banner-ico {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; line-height: 1;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(28,38,6,.6);
}
.wr-banner-tx { position: relative; min-width: 0; }
.wr-banner-t { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.wr-banner-s { margin-top: 3px; font-size: 12.5px; opacity: .78; line-height: 1.5; }

/* ===================== 上传区 ===================== */
.wr-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 30px 18px;
  border: 2px dashed #cfe08a; border-radius: 16px;
  background: linear-gradient(180deg, #fbfef2 0%, #f7fbe8 100%);
  cursor: pointer; text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.wr-drop:active { transform: scale(.995); }
.wr-drop.on  { border-color: #a5d818; background: linear-gradient(180deg, #f6fce3 0%, #eef8d5 100%); }
.wr-drop-ico {
  width: 52px; height: 52px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #4f7005;
  background: #fff; border: 1px solid #e4f0ba;
  box-shadow: 0 8px 18px -10px rgba(111, 156, 7, .8);
}
.wr-drop-t { font-size: 15px; font-weight: 700; color: var(--text, #3a2a1e); }
.wr-drop-s { font-size: 12.5px; color: var(--text2, #a08c7c); line-height: 1.6; }

/* 已选图预览 */
.wr-shot { position: relative; border-radius: 16px; overflow: hidden; background: #f6f3f0; }
.wr-shot img { display: block; width: 100%; height: auto; }
.wr-shot-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(20,26,6,0) 0%, rgba(20,26,6,.72) 100%);
}
.wr-shot-n { flex: 1; min-width: 0; color: #fff; font-size: 12.5px; }
.wr-shot-b {
  flex: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 7px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.9); color: #3a2a1e;
}
.wr-shot-b:active { transform: scale(.96); }

/* ===================== 力度三档（竖向卡片，每档写清"适合什么面料"） ===================== */
.wr-levels { display: flex; flex-direction: column; gap: 9px; }
.wr-lv {
  position: relative;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px; border-radius: 14px;
  background: #faf8f5; border: 1.5px solid #f0eae3;
  cursor: pointer; transition: all .18s ease;
}
.wr-lv.on {
  background: linear-gradient(135deg, #fbffe9 0%, #f3fbdc 100%);
  border-color: #a5d818;
  box-shadow: 0 8px 20px -14px rgba(111, 156, 7, .95);
}
.wr-lv-ico { flex: none; font-size: 21px; line-height: 1.25; }
.wr-lv-main { min-width: 0; flex: 1; }
.wr-lv-h { display: flex; align-items: center; gap: 6px; }
.wr-lv-n { font-size: 15px; font-weight: 700; color: var(--text, #3a2a1e); }
.wr-lv-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 1.5px 6px; border-radius: 6px;
  background: #6f9c07; color: #fff;
}
.wr-lv-fit { margin-top: 3px; font-size: 12px; color: #7d6a5a; }
.wr-lv-d { margin-top: 4px; font-size: 12.5px; color: var(--text2, #a08c7c); line-height: 1.55; }
.wr-lv-r { margin-top: 4px; font-size: 11.5px; color: #9a8b1f; line-height: 1.5; }
.wr-lv-mk {
  position: absolute; right: 12px; top: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #dfd6cd; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
.wr-lv.on .wr-lv-mk { background: #6f9c07; border-color: #6f9c07; }

/* ===================== 保护开关 ===================== */
.wr-guard {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  background: #faf8f5; border: 1.5px solid #f0eae3;
  cursor: pointer;
}
.wr-guard.on { background: #f6fce8; border-color: #cfe08a; }
.wr-guard-ico { flex: none; font-size: 20px; }
.wr-guard-tx { min-width: 0; flex: 1; }
.wr-guard-t { font-size: 14.5px; font-weight: 700; color: var(--text, #3a2a1e); }
.wr-guard-s { margin-top: 3px; font-size: 12px; color: var(--text2, #a08c7c); line-height: 1.55; }
.wr-sw {
  flex: none; width: 46px; height: 27px; border-radius: 999px;
  background: #ddd4ca; position: relative; transition: background .2s ease;
}
.wr-sw::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.wr-guard.on .wr-sw { background: #7fb609; }
.wr-guard.on .wr-sw::after { transform: translateX(19px); }

/* ===================== 结果：前后对比滑杆（本页的主角） ===================== */
.wr-cmp-card { padding: 14px 14px 12px; }
.wr-cmp {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #f1ece6; user-select: none; touch-action: pan-y;
}
.wr-cmp-after { display: block; width: 100%; height: auto; }
.wr-cmp-before {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);      /* JS 会改这个值 */
  pointer-events: none;
}
.wr-cmp-before img { display: block; width: 100%; height: auto; }
.wr-cmp-h {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.35); pointer-events: none;
}
.wr-cmp-k {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #3a2a1e; letter-spacing: -1px;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.wr-cmp-tag {
  position: absolute; top: 10px;
  padding: 4px 9px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
  background: rgba(28, 38, 6, .62); color: #fff;
  backdrop-filter: blur(3px); pointer-events: none;
}
.wr-cmp-tag.l { left: 10px; }
.wr-cmp-tag.r { right: 10px; background: rgba(111, 156, 7, .92); }
.wr-cmp-hint {
  margin-top: 9px; text-align: center;
  font-size: 12px; color: var(--text2, #a08c7c);
}
.wr-acts { display: flex; gap: 9px; margin-top: 12px; }
.wr-act {
  flex: 1; border: 0; cursor: pointer; font-family: inherit;
  padding: 12px 8px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: #f2ede7; color: #6b5b4d;
}
.wr-act.main {
  background: linear-gradient(135deg, #a5d818 0%, #6f9c07 100%);
  color: #fff; box-shadow: 0 8px 18px -10px rgba(111, 156, 7, .95);
}
.wr-act:active { transform: scale(.98); }

/* ===================== 说明 / 其它 ===================== */
.wr-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #f6fce8; color: #4c6408;
  font-size: 12.5px; line-height: 1.65;
}
.wr-steps { margin: 0; padding-left: 0; list-style: none; }
.wr-steps li {
  position: relative; padding-left: 30px; margin-bottom: 9px;
  font-size: 13px; color: var(--text2, #a08c7c); line-height: 1.6;
}
.wr-steps li:last-child { margin-bottom: 0; }
.wr-steps i {
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11.5px; font-weight: 700;
  background: #eaf5ce; color: #5d8206;
}
.wr-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 14px; background: #f8fbf0;
  font-size: 13.5px; color: #5d8206;
}
.wr-spin {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid #dbeec0; border-top-color: #7fb609;
  animation: wr-rot .8s linear infinite;
}
@keyframes wr-rot { to { transform: rotate(360deg); } }

.wr-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(10px);
  background: rgba(28, 38, 6, .93); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
}
.wr-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 入口卡的图标配色：图片板块色相环上 Lab ΔE 55.5 的最大空位 */
.f-wrinkle { background: linear-gradient(135deg, #d4ef62, #6f9c07); }

@media (max-width: 360px) {
  .wr-banner-t { font-size: 15.5px; }
  .wr-banner-ico { width: 40px; height: 40px; font-size: 22px; }
  .wr-drop { padding: 24px 14px; }
  .wr-cmp-k { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
}
