/* ============================================================
   KPOP.WANG「在线打样设计」页（/design-editor/）
   版型实拍选款 + 版权图案选款 + 样品打样申请
   ------------------------------------------------------------
   命名空间 .kds- ：本文件只被 console.html 引入，不改动 kdec.css，
   避免影响其余 7 个操作台页面（admin/designer/brand/fan/live/member/supply）。
   复用 kdec.css 既有组件：.kdec-topnav / .kdec-shell / .kdec-side / .kdec-acc /
   .kdec-cat / .kdec-baselist / .kdec-card / .kdec-galgrid / .kdec-modal /
   .kdec-btn / .kdec-ord / .kdec-toast / .kdec-loading / .kdec-drawer-mask
   主题：浅灰白工业风（品牌蓝 #1677FF）
   ============================================================ */

/* ---------- 中间滚动正文区 ---------- */
.kds-scroll {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

/* 固定醒目提示（长期可见） */
.kds-notice {
  background: #E8F3FF; border: 1px solid #BEDAFF; border-left: 4px solid #1677FF;
  border-radius: 10px; padding: 11px 14px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; color: #1D2129; line-height: 1.75;
}
.kds-notice b { color: #c1391c; }

/* ---------- 主体两栏 ---------- */
.kds-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.95fr); gap: 14px; align-items: start; }
.kds-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.kds-card { background: #fff; border: 1px solid #ececf1; border-radius: 14px; overflow: hidden; }
.kds-card__h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1f2f6; }
.kds-card__h b { font-size: 14px; color: #1b1f29; }
.kds-card__tip { margin-left: auto; font-size: 12px; color: #9aa0ad; white-space: nowrap; }

/* ---------- 工厂实拍素材（竖版固定容器 + 图片/视频混排） ----------
   竖画幅 4:5：图片 object-fit:contain 严格等比 1:1 显示（不拉伸不裁切）；
   zoom 用 transform:scale + transform-origin:center，放大时向四周扩散（中心裁切看细节）；
   视频以内嵌 <video> 播放（原生暂停/全屏）。 */
.kds-photo__view {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;              /* 竖版正方形/竖画幅固定容器 */
  max-height: 68vh;
  overflow: hidden;                 /* 放大用 scale 中心扩散，不产生滚动条 */
  background: #f7f8fa;
  display: flex;
}
.kds-photo__view img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;              /* 严格 1:1 等比，完整显示不变形 */
  margin: 0;
  transform-origin: center center;  /* 放大向四周扩大 */
  transition: transform .18s ease;
}
.kds-photo__view video {
  display: block; margin: auto;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain; background: #000;
}
.kds-photo__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; padding: 20px;
  color: #9aa0ad; text-align: center;
}
.kds-photo__ic { font-size: 44px; }
.kds-photo__empty p { margin: 4px 0 0; font-size: 14px; }
.kds-photo__empty b { color: #1677FF; }
.kds-photo__empty span { font-size: 12px; color: #b3b8c4; }

.kds-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid #f1f2f6; }
.kds-thumbs button {
  flex: 0 0 auto; width: 62px; height: 62px; padding: 0; overflow: hidden;
  border: 1px solid #e6e7ee; border-radius: 9px; background: #fff; cursor: pointer;
  position: relative;
}
.kds-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kds-thumbs button.is-active { border-color: #1677FF; box-shadow: 0 0 0 2px rgba(22,119,255,.35); }
.kds-thumbs__empty { font-size: 12px; color: #aab; padding: 6px 2px; }

/* 视频缩略图：正方形等比裁切 + 播放小图标标记 + 类型角标 */
.kds-thumb { position: relative; }
.kds-thumb--video .kds-thumb__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 9px; font-style: normal; line-height: 20px; text-align: center;
  pointer-events: none;
}
.kds-thumb--video::after {
  content: '视频'; position: absolute; left: 0; top: 0;
  background: #1677FF; color: #fff; font-size: 10px; line-height: 14px;
  padding: 0 4px; border-radius: 0 0 6px 0; pointer-events: none;
}
.kds-thumb__novideo {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #3a3f4a, #20232b);
}

/* ---------- 版型参数卡 ---------- */
.kds-param__body { padding: 12px 14px; }
.kds-kv { display: grid; grid-template-columns: 74px 1fr; gap: 9px 12px; font-size: 13px; margin: 0; }
.kds-kv dt { color: #8b91a0; }
.kds-kv dd { margin: 0; color: #1b1f29; line-height: 1.65; word-break: break-word; }
.kds-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.kds-chiprow span {
  background: #E8F3FF; border: 1px solid #BEDAFF; color: #1677FF;
  border-radius: 100px; padding: 3px 9px; font-size: 12px; font-weight: 600;
}
.kds-chiprow span.sz { background: #f4f5f7; border-color: #e6e7ee; color: #4a4f5c; font-weight: 500; }
.kds-chiprow span.craft { background: #eafaf2; border-color: #c7ecd9; color: #1a6e4a; }
.kds-empty { font-size: 12.5px; color: #9aa0ad; line-height: 1.7; margin: 0; padding: 4px 2px; }

/* ---------- 选款清单 ---------- */
.kds-picked__list { list-style: none; margin: 0; padding: 8px 12px 4px; }
.kds-picked__list li { display: flex; gap: 9px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px dashed #f0f1f5; }
.kds-picked__list li:last-child { border-bottom: 0; }
.kds-picked__img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; overflow: hidden; border: 1px solid #eef0f4; background: #f3f4f8; }
.kds-picked__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kds-picked__main { flex: 1; min-width: 0; }
.kds-picked__main b { display: block; font-size: 12.5px; color: #1b1f29; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kds-picked__main em { font-style: normal; font-size: 11px; color: #1a6e4a; }
.kds-picked__main em.off { color: #9aa0ad; }
.kds-picked__side { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.kds-picked__side button {
  border: 1px solid #e2e3ea; background: #fff; border-radius: 7px; padding: 4px 8px;
  font-size: 11.5px; color: #4a4f5c; cursor: pointer; font-family: inherit;
}
.kds-picked__side button.is-active { border-color: #1677FF; background: #E8F3FF; color: #1677FF; font-weight: 600; }
.kds-picked__del {
  flex: 0 0 28px; width: 28px; height: 28px; line-height: 1; font-size: 14px;
  border: 1px solid #f0d5d0; background: #fff6f4; color: #c1391c; border-radius: 8px; cursor: pointer;
}

/* ---------- 我的项目（草稿） ---------- */
.kds-drafts { list-style: none; margin: 0 0 10px; padding: 0; }
.kds-drafts li {
  display: flex; gap: 8px; align-items: center; padding: 9px 10px;
  border: 1px solid #eee; border-radius: 10px; margin-bottom: 7px; background: #fff;
}
.kds-drafts li.is-active { border-color: #1677FF; background: #E8F3FF; }
.kds-drafts__main { flex: 1; min-width: 0; cursor: pointer; }
.kds-drafts__main b { display: block; font-size: 12.5px; color: #1b1f29; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kds-drafts__main span { font-size: 11px; color: #9aa0ad; }
.kds-drafts__del { flex: 0 0 26px; width: 26px; height: 26px; font-size: 13px; line-height: 1; border: 1px solid #f0d5d0; background: #fff6f4; color: #c1391c; border-radius: 7px; cursor: pointer; }

/* ---------- 底部补充表单（嵌入页面底部） ---------- */
.kds-formcard { margin-top: 14px; }
.kds-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 14px; padding: 14px; }
.kds-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kds-f > span { font-size: 12.5px; color: #6b7180; font-weight: 600; }
.kds-f--wide { grid-column: span 3; }
.kds-f input, .kds-f select, .kds-f textarea {
  width: 100%; border: 1px solid #e6e7ee; border-radius: 10px; padding: 9px 11px;
  font-size: 13px; outline: none; font-family: inherit; background: #fafbfc; color: #1b1f29;
  resize: vertical;
}
.kds-f input:focus, .kds-f select:focus, .kds-f textarea:focus { border-color: #1677FF; background: #fff; }

/* ---------- 底栏：预估价格 + 按钮 ---------- */
.kds-bottom {
  background: #fff; border-top: 1px solid #ececf1; padding: 11px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.kds-bottom__price { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kds-bottom__acts { margin-left: auto; display: flex; gap: 10px; }
.kds-jump {
  border: 1px dashed #d8dae2; background: #fafbfc; color: #6b7180; border-radius: 9px;
  padding: 8px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.kds-jump:hover { border-color: #1677FF; color: #1677FF; }

/* ---------- 响应式 ---------- */
/* 右侧悬浮客服组件避让：客服卡片钉在视口右下（约 216px 宽、距右 20px），
   桌面端正文区右侧留出等宽留白，避免选款清单的删除/印花位置按钮、补充表单
   被浮层压住点不动（浮层为全站共用组件，按规范不改动它本身）。 */
@media (min-width: 861px) {
  .kds-scroll { padding-right: 270px; }
}
@media (max-width: 1399px) {
  .kds-grid { grid-template-columns: 1fr; }
  .kds-form__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kds-f--wide { grid-column: span 2; }
}
@media (max-width: 767px) {
  /* 与手机端底部 Tab 导航共存：收起占位块，正文区高度扣掉 Tab 高度，
     避免操作台内容被底部导航遮挡（也不出现多余 59px 纵向滚动）。 */
  .kds-body .kp-mtab-space { display: none; }
  .kds-body .kdec-shell { height: calc(100vh - 62px - 59px - env(safe-area-inset-bottom, 0px)); height: calc(100svh - 62px - 59px - env(safe-area-inset-bottom, 0px)); }
  .kds-body .kdec-side { bottom: calc(59px + env(safe-area-inset-bottom, 0px)); }
  .kds-scroll { padding: 10px 11px 12px; }
  .kds-notice { font-size: 12.5px; padding: 10px 11px; }
  .kds-grid { gap: 11px; }
  .kds-photo__view { width: 100%; max-height: 58vh; }  /* 手机端预览容器随屏宽自适应，保持竖版比例 */
  .kds-form__grid { grid-template-columns: 1fr; padding: 12px; }
  .kds-f--wide { grid-column: span 1; }
  .kds-bottom { padding: 10px 11px; gap: 9px; }
  /* 手机端客服浮层收成右下角竖排小药丸（约 54px 宽、距右 12px），
     底栏按钮右侧留出等宽留白，保证「确认尺码与下单」可点。 */
  .kds-bottom__acts { margin-left: 0; width: 100%; padding-right: 66px; }
  .kds-bottom__acts .kdec-btn { flex: 1; padding: 11px 10px; }
}

/* ---------- hidden 属性兜底 ----------
   本文件在 kdec.css 之后加载：凡本文件里带 display 的类（同特异性）都会盖掉
   kdec.css 末尾的 [hidden]{display:none}，导致 hidden 属性失效
   （表现为「实拍图未加载时占位层仍压在图上」「实拍图隐藏后仍显示」）。
   故在文件末尾按带类名的选择器再兜底一次，特异性高于单类名基线规则。 */
.kds-photo__view img[hidden],
.kds-photo__view video[hidden],
.kds-photo__empty[hidden],
.kds-empty[hidden],
.kds-thumbs[hidden] { display: none; }

/* ---------- 窄屏（<=520px）工具条两行化 ----------
   .kdec-main__bar 为固定 52px 的单行 flex（不换行），390px 视口下
   「☰素材 + 版型名 + 正/背面 + 缩放 + 清空选款」宽度远超可用空间，
   版型名被压成多行竖排、整条发闷。此处仅在窄屏改为两行：
   第一行「☰素材 + 版型名 + 清空选款」，第二行「正/背面 + 缩放」。
   选择器统一带 .kds-body 前缀，只作用于本页，不影响其它操作台页。 */
@media (max-width: 520px) {
  .kds-body .kdec-main__bar { height: auto; min-height: 52px; flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
  .kds-body .kdec-main__l { order: 1; min-width: 0; }
  .kds-body .kdec-main__r { order: 2; margin-left: auto; }
  .kds-body .kdec-main__c { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 6px; }
  .kds-body .kdec-chip { max-width: 44vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kds-body .kdec-main__bar .kdec-tbtn { padding: 5px 10px; font-size: .74rem; }
  .kds-body .kdec-main__bar .kdec-side-toggle { padding: 5px 9px; font-size: 12px; }
}


/* ============================================================
   流程锁（2026-09-14 方案A）
   工作台只服务「已选定版型」的场景：版型由版型大全页决定，页内不可切换；
   未选定版型时，印花库 / 选款清单 / 提交按钮全部锁定灰化。
   ============================================================ */
html body .kds-curbase { padding: 2px 0 8px; }
html body .kds-curbase__card {
  display: flex; gap: 11px; border: 1px solid #E6EAF2; border-radius: 12px;
  padding: 10px; background: #fff;
}
html body .kds-curbase__ph {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 9px;
  object-fit: cover; background: #F0F2F6;
}
html body .kds-curbase__bd { min-width: 0; flex: 1 1 auto; }
html body .kds-curbase__bd > b { display: block; font-size: 14px; line-height: 1.35; }
html body .kds-curbase__code {
  font-size: 11.5px; color: #86909C;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
html body .kds-curbase__meta { font-size: 12px; color: #5B6B85; margin-top: 4px; line-height: 1.6; }
/* Phase2：后台带入的 B 端业务参数 / 库存 / 物流模板 */
html body .kds-curbase__biz {
  font-size: 12px;
  color: #1677FF;
  background: #F2F7FF;
  border: 1px solid #DBE8FF;
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 6px;
  line-height: 1.7;
  word-break: break-all;
}
html body .kds-curbase__lock {
  display: inline-block; margin-top: 7px; font-size: 11.5px; color: #1677FF;
  background: #EEF4FF; border-radius: 6px; padding: 3px 8px;
}
html body .kds-curbase__acts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; }
html body .kds-curbase__share {
  border: 1px solid #D6E4FF; background: #F2F7FF; color: #1677FF;
  border-radius: 7px; padding: 5px 9px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.2; transition: .16s;
}
html body .kds-curbase__share:hover { background: #1677FF; border-color: #1677FF; color: #fff; }
html body .kds-curbase__change { font-size: 12.5px; color: #86909C; text-decoration: none; }
html body .kds-curbase__change:hover { color: #1677FF; }
html body .kds-curbase__empty { font-size: 13px; color: #86909C; line-height: 1.8; }
html body .kds-curbase__empty a { color: #1677FF; font-weight: 600; }

/* 空态主行动按钮（未选版型时的引导） */
html body .kds-photo__go {
  display: inline-block; margin-top: 16px; background: #1677FF; color: #fff !important;
  font-size: 15px; font-weight: 600; padding: 11px 24px; border-radius: 10px;
  text-decoration: none; box-shadow: 0 6px 18px rgba(22, 119, 255, .22);
}
html body .kds-photo__go:hover { background: #0E5FD8; }

/* 未选版型：印花库 / 选款清单 / 补充信息 / 提交按钮 全部灰化锁定 */
html body.kds-locked [data-grp="gallery"],
html body.kds-locked .kds-picked,
html body.kds-locked .kds-formcard { opacity: .45; filter: grayscale(.45); }
html body.kds-locked [data-grp="gallery"] .kdec-acc__b,
html body.kds-locked .kds-picked__list,
html body.kds-locked .kds-picked__empty,
html body.kds-locked .kds-form__grid { pointer-events: none; }
html body.kds-locked [data-grp="gallery"] .kdec-acc__h::after {
  content: "需先选择版型"; float: right; font-size: 11px; color: #C9CDD4; font-weight: 400;
}
html body.kds-locked .kds-bottom__acts { opacity: .5; }
html body.kds-locked .kds-bottom__acts button { pointer-events: none; }
html body.kds-locked .kds-bottom__price .kdec-price__note { color: #F53F3F; }

@media (max-width: 600px) {
  html body .kds-photo__go { display: block; text-align: center; }
}

/* ============================================================
   版权联动卡片（Phase 3b）：图案库内已确权 + 可商用授权作品
   设计师头像 / 笔名 / 可商用授权标签 / 悬浮授权价 / 一键买授权
   ============================================================ */
.kdec-card--lic { border-color: #BEDAFF; box-shadow: 0 0 0 1px #E8F3FF; }
.kdec-card__des { display: flex; align-items: center; gap: 6px; }
.kdec-card__av { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: inline-flex; }
.kdec-card__avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; background: #E8F3FF; }
.kdec-card__avatar--txt {
  align-items: center; justify-content: center; background: #1677FF; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.kdec-card__lic {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(22,119,255,.92); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px; box-shadow: 0 2px 8px rgba(22,119,255,.35);
}
.kdec-card__acts { display: flex; gap: 7px; padding: 9px 10px; border-top: 1px solid #f1f2f6; }
.kdec-card__buy {
  flex: 1 1 auto; min-width: 0;
  border: 0; border-radius: 9px; padding: 8px 10px;
  background: #1677FF; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.kdec-card__buy:hover { background: #0E5FD8; }
.kdec-card__acts .kdec-card__use {
  flex: 0 0 auto; border: 1px solid #e2e3ea; background: #fff; color: #4a4f5c;
  border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.kdec-card__acts .kdec-card__use:hover { border-color: #1677FF; color: #1677FF; background: #F2F7FF; }

/* ---------- 购买商用授权弹窗 ---------- */
.kds-buy__work { display: flex; gap: 11px; padding: 14px 14px 10px; align-items: center; }
.kds-buy__work img { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 10px; object-fit: cover; background: #f3f4f8; }
.kds-buy__work b { display: block; font-size: 14px; color: #1b1f29; line-height: 1.4; }
.kds-buy__work span { display: block; font-size: 12px; color: #6b7180; margin-top: 3px; }
.kds-buy__hint {
  margin: 0 14px 12px; font-size: 12px; color: #6b7180; line-height: 1.7;
  background: #F2F7FF; border: 1px solid #DBE8FF; border-radius: 9px; padding: 9px 11px;
}
.kds-buy__tiers { padding: 0 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.kds-buy__tier {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid #e6e7ee; border-radius: 10px; padding: 9px 11px; background: #fff;
}
.kds-buy__tier:hover { border-color: #BEDAFF; background: #F7FAFF; }
.kds-buy__tier input { accent-color: #1677FF; width: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
.kds-buy__tier__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kds-buy__tier__main b { font-size: 13.5px; color: #1b1f29; }
.kds-buy__tier__main em { font-style: normal; font-size: 11.5px; color: #9aa0ad; }
.kds-buy__tier__price { font-size: 14px; font-weight: 700; color: #1677FF; white-space: nowrap; }
.kds-buy__tier:has(input:checked) { border-color: #1677FF; background: #E8F3FF; box-shadow: 0 0 0 2px rgba(22,119,255,.25); }
.kds-buy__row { padding: 6px 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.kds-buy__row label { font-size: 12.5px; color: #6b7180; font-weight: 600; }
.kds-buy__row input {
  width: 100%; border: 1px solid #e6e7ee; border-radius: 10px; padding: 9px 11px;
  font-size: 13px; outline: none; font-family: inherit; background: #fafbfc; color: #1b1f29;
}
.kds-buy__row input:focus { border-color: #1677FF; background: #fff; }
.kds-buy__acts { display: flex; gap: 10px; padding: 12px 14px 14px; }
.kds-buy__acts .kdec-btn { flex: 1; }

/* ============================================================
   Phase 10：右栏信息区重构（对标淘宝商品详情「展示 + 下单逻辑」）
   ① 主图区 Tab（图集 / 版型参数 / 尺码表）
   ② 右栏：版型信息 + 社会证明 · 价格区 + 服务承诺 · 规格选择（颜色 / 尺码 / 数量）
   命名空间仍为 .kds-，只作用于本页。
   ============================================================ */

/* ---------- 主图区 Tab ---------- */
.kds-tabs { display: flex; gap: 4px; padding: 4px 14px 0; }
.kds-tabs button {
  flex: 1 1 0; min-width: 0; font-family: inherit; cursor: pointer;
  border: 0; background: transparent; color: #6b7180; font-size: 13px; font-weight: 600;
  padding: 9px 6px; border-bottom: 2px solid transparent; transition: .16s;
}
.kds-tabs button:hover { color: #1677FF; }
.kds-tabs button.is-active { color: #1677FF; border-bottom-color: #1677FF; }
.kds-tabpane { border-top: 1px solid #f1f2f6; background: #fcfdff; }

/* ---------- 版型信息 + 社会证明 ---------- */
.kds-info__head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 12px; }
.kds-info__ttl { flex: 1 1 auto; min-width: 0; }
.kds-info__ttl h2 { margin: 0; font-size: 16px; font-weight: 700; color: #1b1f29; line-height: 1.4; }
.kds-info__code {
  margin: 4px 0 0; font-size: 12px; color: #9aa0ad;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.kds-badge {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #1677FF;
  background: #E8F3FF; border: 1px solid #BEDAFF; border-radius: 100px; padding: 3px 10px;
}
.kds-proof { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 14px 12px; font-size: 12.5px; color: #6b7180; }
.kds-proof b { color: #c1391c; font-weight: 700; }

/* ---------- 价格区 ---------- */
.kds-pricebox {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 12px 0; padding: 12px 14px;
  background: #FFF7E6; border: 1px solid #FFE0A3; border-radius: 12px;
}
.kds-pricebox__l { flex: 1 1 auto; min-width: 0; }
.kds-pricebox__cap { display: block; font-size: 12px; color: #a8712b; }
.kds-pricebox__main { display: flex; align-items: baseline; gap: 2px; margin-top: 2px; }
.kds-pricebox__main em { font-style: normal; font-size: 15px; font-weight: 700; color: #FA541C; }
.kds-pricebox__main b { font-size: 27px; font-weight: 700; color: #FA541C; line-height: 1.1; }
.kds-pricebox__main i { font-style: normal; font-size: 12px; color: #a8712b; }
.kds-pricebox__sub { margin: 4px 0 0; font-size: 11.5px; color: #a8712b; line-height: 1.5; }
.kds-pricebox__r { flex: 0 0 auto; text-align: right; }
.kds-pricebox__promo {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: #FA541C;
  background: #fff; border: 1px solid #FFC069; border-radius: 6px; padding: 2px 7px;
}
.kds-pricebox__total { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; color: #FA541C; }
.kds-pricebox__note { margin: 9px 14px 13px; font-size: 11.5px; color: #9aa0ad; line-height: 1.6; }
.kds-services { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.kds-services span {
  font-size: 11.5px; color: #4a4f5c; background: #f5f6f8;
  border: 1px solid #e9ebf0; border-radius: 6px; padding: 3px 8px;
}

/* ---------- 规格选择 ---------- */
.kds-spec__row { padding: 12px 14px; border-top: 1px solid #f4f5f8; }
.kds-spec__row:first-of-type { border-top: 0; }
.kds-spec__cap { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: #1b1f29; }
.kds-spec__pick { font-size: 12px; font-weight: 400; color: #1677FF; }
.kds-spec__more { margin-left: auto; font-size: 12px; font-weight: 400; color: #1677FF; text-decoration: none; }
.kds-spec__tier { margin-left: auto; font-size: 12px; font-weight: 400; color: #FA541C; }
.kds-spec__tip { margin: 7px 0 0; font-size: 11.5px; color: #9aa0ad; line-height: 1.5; }

.kds-swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.kds-swatch {
  width: 30px; height: 30px; padding: 0; border-radius: 8px; cursor: pointer;
  border: 1px solid #e2e3ea; background: #fff; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit;
}
.kds-swatch > span { width: 100%; height: 100%; display: block; }
.kds-swatch > i { font-style: normal; font-size: 12px; font-weight: 700; color: #4a4f5c; }
.kds-swatch.is-active { border-color: #1677FF; box-shadow: 0 0 0 2px rgba(22,119,255,.28); }
.kds-swatches__empty { font-size: 12px; color: #9aa0ad; }

.kds-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.kds-size {
  min-width: 46px; padding: 6px 12px; font-family: inherit; cursor: pointer;
  border: 1px solid #e2e3ea; background: #fff; border-radius: 8px;
  font-size: 13px; color: #4a4f5c; transition: .16s;
}
.kds-size:hover { border-color: #BEDAFF; color: #1677FF; }
.kds-size.is-active { border-color: #1677FF; background: #E8F3FF; color: #1677FF; font-weight: 700; }
.kds-sizes__empty { font-size: 12px; color: #9aa0ad; }

.kds-stepper {
  display: inline-flex; align-items: stretch; margin-top: 9px;
  border: 1px solid #e2e3ea; border-radius: 9px; overflow: hidden; background: #fff;
}
.kds-stepper button {
  width: 36px; border: 0; background: #fafbfc; color: #4a4f5c;
  font-size: 15px; line-height: 1; cursor: pointer; font-family: inherit;
}
.kds-stepper button:hover { background: #E8F3FF; color: #1677FF; }
.kds-stepper input {
  width: 62px; border: 0; border-left: 1px solid #eef0f4; border-right: 1px solid #eef0f4;
  text-align: center; font-family: inherit; font-size: 14px; color: #1b1f29; outline: none;
  -moz-appearance: textfield;
}
.kds-stepper input::-webkit-outer-spin-button,
.kds-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 767px) {
  .kds-pricebox { flex-wrap: wrap; }
  .kds-pricebox__r { text-align: left; }
}

/* hidden 兜底（本文件后加载且带 display 的类会盖掉 kdec.css 末尾的 [hidden]） */
.kds-tabpane[hidden],
.kds-proof[hidden],
.kds-spec__tier[hidden],
#kdsColor[hidden] { display: none; }

/* ---------- Phase16：主图拖拽看边角 ---------- */
.kds-photo__view { touch-action: pan-y; }
.kds-photo__view img { cursor: zoom-in; }
.kds-photo__view.is-zoomed img { cursor: grab; }
.kds-photo__view.is-zoomed.is-dragging img { cursor: grabbing; }

/* ---------- 淘宝式商品详情改版：面包屑 / 起订徽标 / 价格三行卡 / 交付类型 ---------- */
.kds-crumb {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 2px 2px; font-size: 12.5px; color: #9aa0ad;
}
.kds-crumb a { color: #9aa0ad; text-decoration: none; }
.kds-crumb a:hover { color: #1677FF; }
.kds-crumb i { font-style: normal; color: #c9cdd6; }
.kds-crumb b { color: #1b1f29; font-weight: 600; }

.kds-badge--moq {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px;
  border-radius: 4px; background: #F2F3F7; color: #4a4f5c;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}

/* 价格 / 材质 / 服务 三行灰底信息卡（对标淘宝价格区） */
.kds-pricecard { padding: 12px 14px 13px; }
.kds-pricecard .kds-pricebox__note { margin: 9px 0 0; }
.kds-pricecard .kds-prow { background: #F7F8FA; padding: 10px 12px; }
.kds-pricecard .kds-prow:first-of-type { border-radius: 8px 8px 0 0; }
.kds-pricecard .kds-prow:last-of-type { border-radius: 0 0 8px 8px; }
.kds-prow { display: flex; align-items: flex-start; gap: 12px; }
.kds-prow__cap { flex: 0 0 34px; font-size: 12.5px; color: #8a90a0; line-height: 22px; }
.kds-prow__bd { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #1b1f29; line-height: 1.7; }
.kds-prow--price .kds-prow__cap { line-height: 30px; }
.kds-prow__main { display: inline-flex; align-items: baseline; gap: 2px; color: #FA541C; }
.kds-prow__main em { font-style: normal; font-size: 14px; font-weight: 700; }
.kds-prow__main b { font-size: 24px; font-weight: 700; line-height: 1.1; }
.kds-prow__main i { font-style: normal; font-size: 12px; }
.kds-prow__fee { margin-left: 8px; font-size: 12px; color: #8a90a0; cursor: help; }
.kds-prow--price .kds-pricebox__promo { margin-left: 8px; vertical-align: 2px; }
.kds-services--inline { padding: 0; }
.kds-services--inline span { font-size: 12px; }

/* 交付类型 chips（与尺码 chips 同规格） */
.kds-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.kds-type {
  padding: 5px 12px; border: 1px solid #e2e3ea; border-radius: 6px;
  background: #fff; color: #4a4f5c; font-size: 13px; line-height: 1.5;
  cursor: pointer; font-family: inherit;
}
.kds-type:hover { border-color: #BEDAFF; color: #1677FF; }
.kds-type.is-active { border-color: #1677FF; background: #E8F3FF; color: #1677FF; font-weight: 700; }

@media (max-width: 767px) {
  .kds-crumb { padding-top: 6px; }
  .kds-prow { gap: 8px; }
  .kds-prow__main b { font-size: 21px; }
}
