/* 营销中心-活动管理：活动列表 / 选择场景 / 编辑BC联动（分步表单） */

/* ==================== 通用页头（返回 + 标题） ==================== */
.cam-page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cam-back-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: var(--td-text-color-primary, rgba(0,0,0,.9)); background: #f3f3f3; transition: background .2s; border: none; }
.cam-back-btn:hover { background: #e7e7e7; }
.cam-page-title { font-size: 18px; font-weight: 600; color: rgba(0,0,0,.9); }

/* ==================== 活动列表 ==================== */
.cam-list-filter .filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.cam-list-filter .filter-item { display: flex; align-items: center; }
.cam-list-filter .filter-label { width: 90px; text-align: left; color: rgba(0,0,0,.9); font-size: 14px; flex-shrink: 0; }
.cam-list-filter .filter-control { flex: 1; min-width: 0; }
.cam-list-filter .filter-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0 8px; }

.cam-list-toolbar { display: flex; justify-content: flex-start; margin-bottom: 12px; }

.cam-name-link { color: var(--td-brand-color, #0052d9); cursor: pointer; }
.cam-name-link:hover { text-decoration: underline; }

/* ==================== 选择场景页 ==================== */
.scene-cats { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.scene-cat-pill { padding: 5px 18px; border-radius: 16px; font-size: 14px; cursor: pointer; border: 1px solid var(--td-component-border, #dcdcdc); color: rgba(0,0,0,.7); background: #fff; transition: all .2s; user-select: none; }
.scene-cat-pill:hover { color: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); }
.scene-cat-pill.active { background: var(--td-brand-color, #0052d9); border-color: var(--td-brand-color, #0052d9); color: #fff; }

.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scene-card { background: #fff; border: 1px solid var(--td-component-border, #e7e7e7); border-radius: 9px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.scene-card:hover { box-shadow: var(--td-shadow-1, 0 1px 10px rgba(0,0,0,.08)); transform: translateY(-2px); }
.scene-card-img-wrap { position: relative; aspect-ratio: 1 / 1; background: #fff7e0; overflow: hidden; }
.scene-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-card-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,82,217,.85); color: #fff; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; }
.scene-card-body { padding: 10px 12px 12px; }
.scene-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.scene-card-tag { font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 3px; color: #2ba471; background: #e3f9e9; }
.scene-card-name { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); }

/* ==================== 编辑BC联动（分步表单） ==================== */
.cae-steps-wrap { display: flex; justify-content: center; margin-bottom: 20px; }

.cae-tabs-wrap { margin-bottom: 16px; border-bottom: 1px solid var(--td-component-border, #e7e7e7); }

/* 两列布局：左表单 + 右侧活动规则面板 */
.cae-two-col { display: flex; gap: 16px; align-items: flex-start; }
.cae-form-col { flex: 1 1 auto; min-width: 0; }
.cae-rule-col { flex: 0 0 320px; width: 320px; }

/* 表单行：label 左置 150px */
.cae-form-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.cae-form-row .cae-label { width: 150px; flex-shrink: 0; text-align: left; font-size: 14px; color: rgba(0,0,0,.9); line-height: 32px; }
.cae-form-row .cae-label .req { color: var(--td-error-color, #d54941); margin-left: 2px; }
.cae-form-row .cae-control { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cae-w320 { width: 320px; }
.cae-info-icon { color: var(--td-text-color-placeholder, rgba(0,0,0,.4)); display: inline-flex; align-items: center; cursor: help; margin-left: 2px; }
.cae-label-inner { display: inline-flex; align-items: center; line-height: 32px; }
.cae-link-btn { color: var(--td-brand-color, #0052d9); cursor: pointer; font-size: 14px; }
.cae-link-btn:hover { text-decoration: underline; }
.cae-hint { font-size: 12px; color: var(--td-text-color-placeholder, rgba(0,0,0,.4)); line-height: 20px; margin-top: 4px; }

/* 右侧活动规则面板 */
.cae-rule-panel { background: #f3f3f3; border-radius: 9px; padding: 16px; }
.cae-rule-title { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); margin-bottom: 12px; }
.cae-rule-item { margin-bottom: 12px; }
.cae-rule-head { display: flex; align-items: center; justify-content: space-between; }
.cae-rule-name { display: inline-flex; align-items: center; font-size: 14px; color: rgba(0,0,0,.9); }
.cae-rule-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.cae-rule-body .cae-rule-inline { display: flex; align-items: center; gap: 8px; }

/* 区块（活动奖品 / 投放策略 / 奖品发放控制） */
.cae-section { margin-top: 24px; }
.cae-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cae-section-title { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); }

/* 复选组 / 单选组排布 */
.cae-check-group { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* 消费者H5 右侧面板 */
.cae-h5-panel { background: #f3f3f3; border-radius: 9px; padding: 16px; }
.cae-h5-screen { background: #fff; border: 1px solid var(--td-component-border, #e7e7e7); border-radius: 9px; height: 380px; display: flex; align-items: center; justify-content: center; color: var(--td-text-color-placeholder, rgba(0,0,0,.26)); margin-bottom: 12px; }
.cae-h5-screen svg { width: 48px; height: 48px; }

/* ==================== 投放策略Tab：左策略列表 + 右策略配置 ==================== */
.strat-layout { display: flex; gap: 16px; align-items: flex-start; }
.strat-side { flex: 0 0 300px; width: 300px; background: #fff; border: 1px solid var(--td-component-border, #e7e7e7); border-radius: 9px; overflow: hidden; }
.strat-side-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--td-component-border, #e7e7e7); font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); }
.strat-list { max-height: 620px; overflow: auto; }
.strat-item { padding: 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background .2s; }
.strat-item:last-child { border-bottom: none; }
.strat-item:hover { background: #f7f7f7; }
.strat-item.active { background: #f2f7ff; box-shadow: inset 3px 0 0 var(--td-brand-color, #0052d9); }
.strat-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.strat-item-name { font-weight: 600; font-size: 14px; color: rgba(0,0,0,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strat-item-meta { font-size: 12px; color: var(--td-text-color-placeholder, rgba(0,0,0,.4)); margin-top: 4px; line-height: 18px; }
.strat-config { flex: 1 1 auto; min-width: 0; }
.strat-form { flex: 1 1 auto; min-width: 0; }
.strat-prize-bar { display: flex; align-items: center; justify-content: space-between; width: 480px; margin-bottom: 8px; font-size: 14px; color: rgba(0,0,0,.9); }

/* 规则打散后的表单行：开关与条件控件间距 */
.cae-control .t-switch { margin-right: 4px; }

/* 底部固定操作条 */
.cae-footer-bar { position: sticky; bottom: -16px; margin: 24px -24px -16px; padding: 12px 24px; background: #fff; border-top: 1px solid var(--td-component-border, #e7e7e7); display: flex; justify-content: center; gap: 8px; z-index: 5; }

/* 按箱金额上限下方金额 */
.cae-amount-preview { font-size: 14px; color: rgba(0,0,0,.9); }
