/* ============================================================================
   图片转素描（sub-sketch）· 2026-09-23 · 开发员18号
   ----------------------------------------------------------------------------
   只作用于 #sub-sketch，不碰 style.css。
   设计主张：**纸与石墨** —— 暖白纸底 + 墨灰强调色，让界面本身就像一张画纸。
   与站内其它视觉区分：图片复刻=靛紫、模特换衣=粉、服饰穿戴=暖棕米白、**素描=石墨灰 + 纸白**。
   ⚠️ 注释里不写"星号紧跟斜杠"的连写（会让注释提前闭合）。
   ============================================================================ */

/* 图标配色：石墨灰（图片板块的卡片图标用类名 .f-ink）。
   ⚠️ 这条规则属于本功能自己的样式文件 —— 项目铁律：改别人的样式要新建独立 css，
      所以**不动 style.css**（那条规则和文件是由本文件承接的）。 */
.f-ink { background: linear-gradient(135deg, #9aa0ac, #4a4f5a); }

#sub-sketch { padding-bottom: 96px; }
#sub-sketch [hidden] { display: none !important; }

/* ============================== 顶部 ============================== */
.sk-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 16px 16px; margin-bottom: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(90, 96, 110, .12) 0%, rgba(90, 96, 110, 0) 60%),
    linear-gradient(155deg, #fbfaf8 0%, #ffffff 45%, #f6f5f2 100%);
  border: 1px solid #e8e6e1;
}
.sk-hero:after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px;
  border-radius: 50%; border: 1px solid rgba(90, 96, 110, .16);
}
.sk-hero:before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #6b6f7a 0%, #b9bcc4 40%, #e8e6e1 100%);
}
.sk-hero-tag {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #5a5f6b; border: 1px solid #dfdfda;
}
.sk-hero-t { font-size: 21px; font-weight: 800; color: #2b2f38; margin: 9px 0 7px; line-height: 1.32; }
.sk-hero-s { font-size: 13px; line-height: 1.72; color: #6d727c; position: relative; z-index: 1; }
.sk-hero-s b { color: #3f434d; }
.sk-hero-s i { color: #5a5f6b; font-style: normal; font-weight: 700; }
.sk-hero-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.sk-flow {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #65697a; border: 1px solid #e6e4df;
}
.sk-flow i { font-style: normal; color: #9aa0ac; margin-right: 4px; font-weight: 700; }
.sk-flow-arrow { font-size: 12px; color: #c8c6c2; }

/* ============================== 卡片小件 ============================== */
.sk-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sk-req {
  font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: #f2f2f0; color: #6d727c; border: 1px solid #e4e4e0;
}
.sk-req.ok { background: #eefbf3; color: #15803d; border-color: #cdf0dc; }
.sk-note { font-size: 12px; line-height: 1.68; color: #8b8f99; margin: 9px 0 0; }
.sk-note b { color: #4a4f5a; }

/* ============================== ① 上传 ============================== */
.sk-drop {
  margin-top: 12px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed #d8d8d4; background: #fdfcfa;
  padding: 28px 16px; text-align: center; transition: .15s;
}
.sk-drop:active { background: #f7f6f3; }
.sk-drop-ico { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.sk-drop-t { font-size: 14.5px; font-weight: 700; color: #3f434d; }
.sk-drop-s { font-size: 11.5px; color: #9a9ea8; margin-top: 5px; line-height: 1.6; }
.sk-thumb { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; background: #f4f3f0; }
.sk-thumb img { width: 100%; display: block; max-height: 420px; object-fit: contain; background: #f4f3f0; }
.sk-thumb-x {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(30, 32, 38, .58); color: #fff; font-size: 17px; line-height: 30px; padding: 0; cursor: pointer;
}
.sk-thumb-tag {
  position: absolute; left: 10px; top: 10px; font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(30, 32, 38, .55); color: #fff;
}

/* ============================== ② 风格 ============================== */
.sk-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
@media (min-width: 560px) { .sk-styles { grid-template-columns: repeat(4, 1fr); } }
.sk-style {
  display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer;
  border: 1.5px solid #e8e7e3; background: #fff; border-radius: 13px; padding: 11px 11px 11px 10px;
  font-family: inherit; transition: all .15s;
}
.sk-style-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #f6f6f4, #eceae6);
}
.sk-style-b { min-width: 0; }
.sk-style-b b { display: block; font-size: 13px; color: #3f434d; font-weight: 700; }
.sk-style-b i {
  display: block; font-style: normal; font-size: 10.5px; color: #9a9ea8; margin-top: 2px;
  line-height: 1.45; overflow: hidden; text-overflow: ellipsis;
}
.sk-style.on {
  border-color: #8a8f9c;
  background: linear-gradient(140deg, #f8f8f7 0%, #f2f1ee 100%);
  box-shadow: 0 2px 10px rgba(70, 74, 84, .10);
}
.sk-style.on .sk-style-ico { background: linear-gradient(140deg, #5f6470, #41454f); color: #fff; }
.sk-style.on .sk-style-b b { color: #2b2f38; }
.sk-style-hint {
  margin-top: 10px; font-size: 12px; line-height: 1.65; color: #6d727c;
  background: #f8f8f6; border: 1px solid #ebeae6; border-radius: 11px; padding: 9px 11px;
}
.sk-style-hint b { color: #3f434d; }

/* ============================== 清单 ============================== */
.sk-sum {
  margin-top: 14px; border-radius: 14px; padding: 12px 13px;
  background: linear-gradient(140deg, #fafaf8 0%, #f6f6f3 100%); border: 1px solid #ebeae6;
}
.sk-sum-h { font-size: 12px; font-weight: 700; color: #3f434d; margin-bottom: 8px; }
.sk-sum-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.sk-sum-k { flex: 0 0 40px; color: #9a9ea8; }
.sk-sum-v { flex: 1 1 auto; color: #52565f; font-weight: 500; }
.sk-sum-v b { color: #2b2f38; font-weight: 800; }

/* ============================== 读秒区 ============================== */
.sk-run {
  margin-top: 12px; border-radius: 14px; padding: 14px;
  background: #fff; border: 1px solid #e8e7e3;
}
.sk-run-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sk-run-spin {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #e6e5e1; border-top-color: #6b6f7a; animation: skspin .8s linear infinite;
}
@keyframes skspin { to { transform: rotate(360deg); } }
.sk-run-t { font-size: 13.5px; color: #3f434d; font-weight: 600; }
.sk-run-t b { font-variant-numeric: tabular-nums; color: #2b2f38; margin-left: 4px; }
.sk-run-est { margin-left: auto; font-size: 12px; color: #8b8f99; }
.sk-run-bar { margin-top: 11px; height: 7px; border-radius: 999px; background: #f0efec; overflow: hidden; }
.sk-run-bar i { display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #b7bac2, #6b6f7a); transition: width .5s linear; }
.sk-run-note { margin-top: 9px; font-size: 11.5px; line-height: 1.6; color: #9a9ea8; }
.sk-run-note b { color: #6d727c; }
.sk-run-done { font-size: 13.5px; color: #15803d; font-weight: 600; }
.sk-run-done b { color: #116632; font-weight: 800; }

/* ============================== 结果 ============================== */
.sk-res-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; }
.sk-res-t { font-size: 15px; font-weight: 800; color: #2b2f38; }
.sk-res-s { font-size: 12px; color: #9a9ea8; }
.sk-res-img { border-radius: 16px; overflow: hidden; border: 1px solid #e8e7e3; background: #fbfbfa; }
.sk-res-img img { width: 100%; display: block; }
.sk-res-btns { display: flex; gap: 9px; margin-top: 12px; }
.sk-btn-main {
  flex: 1 1 0; border: 0; border-radius: 13px; cursor: pointer; font-family: inherit;
  padding: 13px 0; font-size: 14.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6b6f7a, #3f434d);
  box-shadow: 0 4px 14px rgba(60, 64, 74, .22);
}
.sk-btn-ghost {
  flex: 0 0 auto; border: 1px solid #dedcd7; background: #fff; border-radius: 13px;
  padding: 13px 15px; font-size: 13.5px; color: #52565f; cursor: pointer; font-family: inherit;
}

/* ============================== toast ============================== */
.sk-toast {
  position: fixed; left: 50%; bottom: 13%; transform: translateX(-50%) translateY(8px);
  background: rgba(30, 32, 38, .9); color: #fff; font-size: 13px; padding: 9px 17px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: .22s; z-index: 9999;
  max-width: 84vw; text-align: center;
}
.sk-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
