/* 营销活动页 — 批量活动报名弹窗 */

.jk-gl-modal .jk-ae-scope {
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(500px, 1.08fr);
  gap: 18px;
  min-height: 100%;
  font-family: MiSans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #303133;
}

.jk-gl-modal .jk-ae-left,
.jk-gl-modal .jk-ae-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jk-gl-modal .jk-ae-toggle-panel,
.jk-gl-modal .jk-ae-template-panel,
.jk-gl-modal .jk-ae-rules-panel,
.jk-gl-modal .jk-ae-activities-panel,
.jk-gl-modal .jk-ae-log-panel {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 12px;
}

.jk-gl-modal .jk-ae-toggle-btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.18s ease;
}

.jk-gl-modal .jk-ae-red-note {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: #d4380d;
  background: #fff2f0;
  border-left: 3px solid #f5222d;
  padding: 7px 9px;
  border-radius: 0 5px 5px 0;
}

.jk-gl-modal .jk-ae-template-panel > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.jk-gl-modal .jk-ae-template-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.jk-gl-modal .jk-ae-template-actions select {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #333;
}

.jk-gl-modal .jk-ae-template-actions button,
.jk-gl-modal .jk-ae-section-head button {
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
}

.jk-gl-modal .jk-ae-template-actions button:last-child {
  color: #d4380d;
  border-color: #ffccc7;
}

.jk-gl-modal .jk-ae-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.jk-gl-modal .jk-ae-section-head strong {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.jk-gl-modal .jk-ae-section-head span {
  font-size: 12px;
  color: #7c8898;
}

.jk-gl-modal .jk-ae-section-head button {
  margin-left: auto;
}

.jk-gl-modal .jk-ae-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jk-gl-modal .jk-ae-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(80px, 0.75fr) 28px;
  grid-template-areas:
    "keyword min del"
    "price stock del";
  gap: 8px;
  align-items: end;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  padding: 9px;
  background: #fbfcfe;
}

.jk-gl-modal .jk-ae-rule-cell {
  min-width: 0;
}

.jk-gl-modal .jk-ae-keyword-cell {
  grid-area: keyword;
}

.jk-gl-modal .jk-ae-min-cell {
  grid-area: min;
}

.jk-gl-modal .jk-ae-price-cell {
  grid-area: price;
}

.jk-gl-modal .jk-ae-stock-cell {
  grid-area: stock;
}

.jk-gl-modal .jk-ae-rule-cell label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #5b6572;
  white-space: nowrap;
}

.jk-gl-modal .jk-ae-rule-cell input,
.jk-gl-modal .jk-ae-rule-cell select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 0 7px;
  background: #fff;
  color: #333;
  font-size: 12px;
  box-sizing: border-box;
}

.jk-gl-modal .jk-ae-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
}

.jk-gl-modal .jk-ae-price-cell .jk-ae-combo {
  grid-template-columns: 50% calc(50% - 4ch);
  position: relative;
}

.jk-gl-modal .jk-ae-rule-del {
  grid-area: del;
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 30px;
  border: 1px solid #ffccc7;
  border-radius: 5px;
  background: #fff;
  color: #d4380d;
  cursor: pointer;
  font-size: 20px;
  line-height: 26px;
  padding: 0;
}

.jk-gl-modal .jk-ae-activities-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.jk-gl-modal .jk-ae-discount-filter {
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fbfcfe;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jk-gl-modal .jk-ae-discount-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jk-gl-modal .jk-ae-discount-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.jk-gl-modal .jk-ae-discount-summary {
  font-size: 12px;
  color: #d46b08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jk-gl-modal .jk-ae-discount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-gl-modal .jk-ae-discount-chip {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 13px;
  background: #fff;
  color: #5b6572;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.jk-gl-modal .jk-ae-discount-chip:hover {
  border-color: #fa8c16;
  color: #d46b08;
}

.jk-gl-modal .jk-ae-discount-chip.active {
  background: linear-gradient(135deg, #fa8c16 0%, #d46b08 100%);
  border-color: #d46b08;
  color: #fff;
  font-weight: 600;
}

.jk-gl-modal .jk-ae-discount-chip.hidden {
  display: none;
}

.jk-gl-modal .jk-ae-discount-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5b6572;
}

.jk-gl-modal .jk-ae-discount-custom input {
  width: 64px;
  height: 26px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 0 6px;
  background: #fff;
  color: #333;
  font-size: 12px;
  box-sizing: border-box;
}

.jk-gl-modal .jk-ae-discount-custom .jk-ae-discount-apply {
  height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 5px;
  background: #fa8c16;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.jk-gl-modal .jk-ae-discount-custom .jk-ae-discount-apply:hover {
  background: #d46b08;
}

.jk-gl-modal .jk-ae-discount-hint {
  font-size: 11px;
  color: #8c8c8c;
  line-height: 1.5;
  border-top: 1px dashed #e5eaf0;
  padding-top: 6px;
}

.jk-gl-modal .jk-ae-price-suffix {
  position: absolute;
  right: 3px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #5b6572;
  white-space: nowrap;
  pointer-events: none;
}

.jk-gl-modal .jk-ae-daily-cell {
  grid-area: daily;
}

.jk-gl-modal .jk-ae-rule-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(80px, 0.75fr) 28px;
  grid-template-areas:
    "keyword min del"
    "price stock del"
    "daily daily del";
}

.jk-gl-modal .jk-ae-activity-list {
  min-height: 168px;
  max-height: 325px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jk-gl-modal .jk-ae-activity-group {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 4px -3px 0;
  padding: 8px 10px;
  border-left: 4px solid #1677ff;
  border-radius: 0 5px 5px 0;
  background: #eef5ff;
  color: #1d3557;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.jk-gl-modal .jk-ae-activity-subgroup {
  margin: 3px 0 0 4px;
  padding: 2px 4px;
  color: #5b6572;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.jk-gl-modal .jk-ae-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  padding: 8px;
  background: #fbfcfe;
}

.jk-gl-modal .jk-ae-activity-select {
  flex-shrink: 0;
  width: 62px;
  height: 28px;
  border: 1px solid #91caff;
  border-radius: 5px;
  background: #fff;
  color: #1677ff;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.jk-gl-modal .jk-ae-activity-select.selected {
  background: #52c41a;
  border-color: #52c41a;
  color: #fff;
}

.jk-gl-modal .jk-ae-activity-info {
  min-width: 0;
  flex: 1;
}

.jk-gl-modal .jk-ae-activity-name {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
}

.jk-gl-modal .jk-ae-activity-meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.65;
  color: #7c8898;
  white-space: pre-wrap;
  word-break: break-word;
}

.jk-gl-modal .jk-ae-empty {
  color: #9aa4b2;
  font-size: 13px;
  text-align: center;
  padding: 18px 8px;
}

.jk-gl-modal .jk-ae-log-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.jk-gl-modal .jk-ae-log {
  min-height: 118px;
  max-height: 205px;
  overflow-y: auto;
  background: #f6f8fb;
  border: 1px solid #e5eaf0;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #5b6572;
}

.jk-gl-modal .jk-ae-log-line {
  word-break: break-all;
  white-space: pre-wrap;
}

.jk-gl-modal .jk-ae-log-success {
  color: #237804;
}

.jk-gl-modal .jk-ae-log-error {
  color: #cf1322;
}

.jk-gl-modal .jk-ae-log-warn {
  color: #ad6800;
}
.jk-gl-modal .jk-ae-right,
.jk-gl-modal .jk-ae-main-view,
.jk-gl-modal .jk-ae-detail-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.jk-gl-modal .jk-ae-activity-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.jk-gl-modal .jk-ae-activity-title {
  min-width: 0;
}

.jk-gl-modal .jk-ae-activity-highlight {
  color: #cf1322;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.jk-gl-modal .jk-ae-detail-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 3px;
}

.jk-gl-modal .jk-ae-detail-activity {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfcfe;
}

.jk-gl-modal .jk-ae-detail-activity-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jk-gl-modal .jk-ae-detail-activity-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: #303133;
}

.jk-gl-modal .jk-ae-detail-activity-status {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.jk-gl-modal .jk-ae-detail-activity-success {
  color: #237804;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.jk-gl-modal .jk-ae-detail-activity-fail {
  color: #cf1322;
  background: #fff1f0;
  border: 1px solid #ffa39e;
}

.jk-gl-modal .jk-ae-detail-activity-pending {
  color: #ad6800;
  background: #fffbe6;
  border: 1px solid #ffe58f;
}

.jk-gl-modal .jk-ae-detail-summary {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.jk-gl-modal .jk-ae-detail-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: #7c8898;
  font-size: 12px;
}

.jk-gl-modal .jk-ae-detail-reason-line {
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 3px solid #f5222d;
  background: #fff2f0;
  color: #d4380d;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.jk-gl-modal .jk-ae-detail-items {
  margin-top: 9px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jk-gl-modal .jk-ae-detail-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(130px, 0.8fr);
  gap: 8px;
  align-items: start;
  padding: 6px 7px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #edf1f6;
  font-size: 12px;
  line-height: 1.5;
}

.jk-gl-modal .jk-ae-detail-status {
  text-align: center;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.jk-gl-modal .jk-ae-detail-success {
  color: #237804;
  background: #f6ffed;
}

.jk-gl-modal .jk-ae-detail-fail {
  color: #cf1322;
  background: #fff1f0;
}

.jk-gl-modal .jk-ae-detail-skip {
  color: #ad6800;
  background: #fffbe6;
}

.jk-gl-modal .jk-ae-detail-pending {
  color: #5b6572;
  background: #f6f8fb;
}

.jk-gl-modal .jk-ae-detail-label {
  color: #303133;
  overflow-wrap: anywhere;
}

.jk-gl-modal .jk-ae-detail-reason {
  color: #7c8898;
  overflow-wrap: anywhere;
}

.jk-gl-modal .jk-ae-detail-empty {
  padding: 8px;
  color: #9aa4b2;
  text-align: center;
  font-size: 12px;
}
