/* 单店 Offer（独立模块，逻辑见 /js/shopTasks.js）。类名统一以 ss- 开头，不和其他页面共用 */

.ss-actions { display: flex; gap: 8px; align-items: center; }
.ss-btn-sm { padding: 5px 12px; font-size: 12px; }
.ss-info a.btn { text-decoration: none; display: inline-block; }
.ss-muted { color: #888; font-size: 12px; }
.ss-required { color: #e53e3e; }
.ss-center { text-align: center; padding: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ss-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ss-toolbar input { width: 320px; max-width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.ss-toolbar input:focus { outline: none; border-color: #4361ee; }
.ss-count { color: #888; font-size: 12px; }

.ss-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ss-cards > .card { margin-bottom: 0; }
.ss-cards > .empty { grid-column: 1 / -1; }
.ss-task-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.ss-task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ss-task-name { font-size: 15px; word-break: break-word; }
.ss-task-head .badge { white-space: nowrap; }
.ss-task-meta { color: #666; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-task-offers { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #f2f2f2; font-size: 13px; }
.ss-task-label { color: #888; font-size: 12px; }
.ss-task-offer { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-task-offer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-task-offer .ss-offer-code { flex-shrink: 0; white-space: nowrap; }
.ss-task-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ss-task-ops { flex-shrink: 0; white-space: nowrap; }
.ss-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d0d4dc; flex-shrink: 0; }
.ss-dot-on { background: #2f9e44; }
.ss-task-ops .btn + .btn { margin-left: 4px; }
.ss-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ss-table th { text-align: left; padding: 10px 14px; background: #f8f9fc; color: #666; font-weight: 500; border-bottom: 1px solid #eee; white-space: nowrap; }
.ss-table td { padding: 10px 14px; border-bottom: 1px solid #f2f2f2; vertical-align: top; }
.ss-table tr:last-child td { border-bottom: none; }
.ss-table.ss-small { font-size: 12px; }
.ss-table.ss-small th, .ss-table.ss-small td { padding: 6px 10px; }
.ss-link { color: #4361ee; cursor: pointer; font-weight: 500; }
.ss-link:hover { text-decoration: underline; }
.ss-url-text { word-break: break-all; font-family: monospace; font-size: 12px; }

.ss-top { margin-bottom: 12px; }
.ss-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ss-title { font-size: 20px; font-weight: 600; color: #222; }
.ss-info { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.ss-info dt { color: #888; }
.ss-info dd { margin: 0; color: #222; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

.ss-cap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #555; font-size: 13px; }
.ss-sub-title { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: #333; }
.ss-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-shot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; padding: 6px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: zoom-in; font-size: 12px; color: #666; }
.ss-shot img { width: 100%; height: 100px; object-fit: cover; object-position: top; background: #f3f4f6; border-radius: 4px; }
.ss-shot-failed { cursor: default; color: #e53e3e; }

.ss-section { border: 1px solid #eee; border-radius: 8px; margin-top: 10px; }
.ss-section > summary { padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 500; color: #333; }
.ss-section-count { margin-left: 8px; color: #888; font-weight: 400; font-size: 12px; }
.ss-section-body { padding: 0 14px 12px; max-height: 520px; overflow: auto; }
.ss-pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.6; background: #f8f9fc; padding: 10px; border-radius: 6px; margin: 0; }
.ss-headings { margin: 0; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.8; }
.ss-tag { display: inline-block; min-width: 28px; margin-right: 8px; padding: 0 4px; border-radius: 4px; background: #eef2ff; color: #4361ee; font-size: 11px; text-align: center; }
.ss-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ss-img { position: relative; border: 1px solid #eee; border-radius: 6px; padding: 6px; }
.ss-img-del {
  position: absolute; top: 4px; right: 4px; z-index: 1; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer;
}
.ss-img-del:hover { background: #c0392b; }
.ss-img-del:disabled { opacity: 0.5; cursor: default; }
.ss-img img { width: 100%; height: 100px; object-fit: contain; background: #f8f9fc; }
.ss-img-meta { font-size: 11px; color: #777; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ss-modal-box { width: 720px; max-width: 94vw; }
.ss-reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ss-reg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 160px; overflow: auto; }
.ss-reg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-reg-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.ss-reg-tag button { border: none; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 13px; line-height: 1; }
.ss-reg-code { opacity: .65; font-size: 11px; }
.ss-small-text { font-size: 12px; margin-top: 4px; }
.ss-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ss-offer-section { border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }
.ss-offer-block { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px 2px; margin-bottom: 10px; background: #fafbff; }
.ss-offer-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ss-offer-block-title { font-weight: 500; color: #333; font-size: 13px; }
.ss-offer-code { padding: 1px 8px; border-radius: 4px; background: #eef2ff; color: #4361ee; font-size: 12px; font-weight: 500; font-family: monospace; }
.ss-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ss-error-text { color: #e53e3e; }
.ss-ok-text { color: #2f9e44; }

/* 详情页：顶部店铺卡片 + 标签页（基本信息 / 页面内容） */
.ss-members-acc summary { cursor: pointer; font-size: 13px; color: #888; margin-top: 6px; }
.ss-members { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f4; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.ss-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }
.ss-tab { padding: 10px 16px; border: none; background: none; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ss-tab:hover { color: #4361ee; }
.ss-tab.active { color: #4361ee; border-bottom-color: #4361ee; font-weight: 500; }
.ss-intro { margin-bottom: 16px; padding: 8px 12px; border-left: 3px solid #4361ee; background: #f5f8ff; color: #555; font-size: 13px; border-radius: 0 6px 6px 0; }
.ss-member { border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.ss-member-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ss-member-title { font-size: 14px; color: #111; min-width: 0; }
.ss-fields { display: grid; grid-template-columns: 100px 1fr; gap: 14px 16px; font-size: 13px; margin: 0; }
.ss-fields dt { color: #888; }
.ss-fields dd { margin: 0; color: #333; word-break: break-word; min-width: 0; }
.ss-mono { font-family: monospace; }
.ss-own-code { font-family: monospace; font-size: 14px; font-weight: 600; word-break: break-all; }
.ss-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-code-note { margin-top: 4px; }
.ss-link-row { display: flex; gap: 6px; align-items: flex-start; }
.ss-link-row .code-box { flex: 1; min-width: 0; padding: 8px 10px; }
.ss-link-row .btn { flex-shrink: 0; text-decoration: none; }
.ss-empty-box { padding: 32px 16px; text-align: center; color: #666; font-size: 13px; }
.ss-guide { background: #f5f8ff; border: 1px solid #dbe4ff; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.ss-guide-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ss-guide-row .btn { flex-shrink: 0; }
.ss-guide-title { font-size: 14px; font-weight: 500; color: #222; margin-bottom: 2px; }
.ss-warn { margin-top: 4px; font-size: 12px; color: #b7791f; }
.ss-guide-steps { margin-top: 8px; font-size: 13px; color: #444; }
.ss-guide-steps summary { cursor: pointer; color: #4361ee; }
.ss-guide-steps ol { margin: 8px 0 0 20px; line-height: 1.8; }
.ss-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #eef0f4; }
.ss-switch-label { font-size: 12px; color: #888; margin-right: 4px; }
.ss-switch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #d0d5dd; border-radius: 16px; background: #fff; color: #555; font-size: 12px; cursor: pointer; }
.ss-switch-btn:hover { border-color: #4361ee; color: #4361ee; }
.ss-switch-btn.active { border-color: #4361ee; background: #4361ee; color: #fff; }
.ss-switch-btn.active .ss-dot { box-shadow: 0 0 0 1px #fff; }
.ss-target { margin-bottom: 16px; }

@media (max-width: 700px) {
  .ss-form-row { grid-template-columns: 1fr; }
  .ss-info { grid-template-columns: 1fr; }
  .ss-fields { grid-template-columns: 1fr; }
  .ss-guide-row { flex-direction: column; align-items: flex-start; }
}

/* AI 挑选 */
.ss-promo-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 12px; border: 1px dashed #c7d2fe; border-radius: 8px; background: #f8f9ff; font-size: 13px; color: #444; }
.ss-promos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ss-promo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; padding: 6px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 12px; color: #666; }
.ss-promo img { width: 100%; height: 100px; object-fit: contain; background: #f3f4f6; border-radius: 4px; cursor: zoom-in; }
.ss-pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ss-pick-model { width: auto; min-width: 140px; }
.ss-pick-only { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #555; margin-left: auto; cursor: pointer; }
.ss-pick-running { font-size: 13px; color: #4361ee; }
.ss-pick-summary { font-size: 13px; color: #333; }
.ss-pick-head { margin-top: 10px; }
.ss-pick-lines { margin-top: 10px; border: 1px solid #eee; border-radius: 8px; max-height: 600px; overflow: auto; }
.ss-pl { display: flex; gap: 10px; padding: 5px 10px; border-bottom: 1px solid #f3f4f6; font-size: 13px; line-height: 1.6; color: #999; }
.ss-pl:last-child { border-bottom: none; }
.ss-pl-no { flex-shrink: 0; width: 34px; text-align: right; color: #bbb; font-size: 11px; line-height: 21px; }
.ss-pl-text { word-break: break-word; }
.ss-pl-on { color: #222; background: #eef6ee; }
.ss-pl-on .ss-pl-no { color: #2f855a; font-weight: 600; }

/* 选关键词 */
.ss-kw-files { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ss-kw-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #eee; border-radius: 6px; font-size: 13px; }
.ss-kw-file > span:first-child { font-weight: 500; word-break: break-all; }
.ss-kw-file .btn { margin-left: auto; }
.ss-kw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 6px; }
.ss-kw-filters { display: flex; gap: 6px; margin-left: auto; }
.ss-kw-table-wrap { margin-top: 8px; max-height: 640px; overflow: auto; border: 1px solid #eee; border-radius: 8px; }
.ss-kw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ss-kw-table th { position: sticky; top: 0; background: #f8f9fc; text-align: left; padding: 6px 10px; color: #666; font-weight: 500; z-index: 1; }
.ss-kw-table td { padding: 5px 10px; border-top: 1px solid #f3f4f6; vertical-align: top; }
.ss-kw-row { color: #666; }
.ss-kw-row-on { color: #222; background: #eef6ee; }
.ss-kw-word { font-weight: 500; }
.ss-kw-num, .ss-kw-table th.ss-kw-num { white-space: nowrap; text-align: right; }
.ss-kw-sort { cursor: pointer; user-select: none; }
.ss-kw-sort:hover, .ss-kw-sort-on { color: #4361ee; }
.ss-kw-sort-arrow { margin-left: 4px; color: #bbb; }
.ss-kw-sort-on .ss-kw-sort-arrow { color: #4361ee; }
.ss-kw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 13px; color: #555; }
.ss-kw-state { white-space: nowrap; font-size: 12px; }
.ss-kw-on { color: #2f855a; font-weight: 600; }
.ss-kw-off { color: #999; }
.ss-kw-pending { color: #b7791f; }

/* 写广告 */
.ss-ad-step { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; margin-top: 12px; background: #fff; }
.ss-ad-stale { border-color: #f6d860; background: #fffdf3; }
.ss-ad-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 14px; }
.ss-ad-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: #4361ee; color: #fff; font-size: 12px; }
.ss-ad-lang, .ss-ad-note { margin-top: 10px; font-size: 13px; color: #333; }
.ss-ad-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f4; }
.ss-ad-list-title { margin: 10px 0 4px; font-size: 12px; color: #888; }
.ss-ad-item { padding: 6px 10px; border: 1px solid #f0f0f0; border-radius: 6px; margin-bottom: 4px; font-size: 13px; }
.ss-ad-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ss-ad-text { color: #111; word-break: break-word; }
.ss-ad-label { flex-shrink: 0; font-size: 12px; color: #888; }
.ss-ad-count { margin-left: auto; font-size: 12px; color: #2f855a; white-space: nowrap; font-family: monospace; }
.ss-ad-zh { margin-top: 2px; font-size: 12px; color: #666; }
.ss-ad-refs { margin-top: 2px; font-size: 11px; color: #999; }
.ss-ad-ref { margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #f3f4f6; cursor: help; }
.ss-ad-dropped { margin-top: 6px; font-size: 12px; color: #666; }
.ss-ad-dropped summary { cursor: pointer; color: #b7791f; }
.ss-ad-drop { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #eee; }
.ss-ad-why { color: #c53030; }
.ss-ad-promo { margin-top: 8px; }
.ss-ad-acc { margin-top: 8px; border: 1px solid #eee; border-radius: 8px; }
.ss-ad-acc > summary { padding: 8px 12px; cursor: pointer; color: #4361ee; font-size: 13px; }
.ss-ad-kw-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.ss-ad-kw-table th { text-align: left; padding: 6px 12px; background: #f8f9fc; color: #666; font-weight: 500; }
.ss-ad-kw-table td { padding: 6px 12px; border-top: 1px solid #f3f4f6; vertical-align: top; word-break: break-word; }
.ss-ad-kw-c1 { width: 50%; }
.ss-ad-kw-c2 { width: 35%; }
.ss-ad-kw-c3 { width: 15%; }
