/* 【会议海报】生成表单样式（独立文件，不改 image-match-drawer.css） */
.meeting-poster-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100%;
    box-sizing: border-box;
}

.mp-form-wrap {
    background: #fff;
}

.mp-btn-area {
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

.mp-btn-generate {
    background: linear-gradient(135deg, #a5b8f9 0%, #b4a4e8 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    border-radius: 22px;
    padding: 0 48px;
    cursor: pointer;
    min-width: 180px;
}

.mp-btn-generate:hover {
    opacity: 0.92;
}

.mp-result-area {
    margin-top: 8px;
    padding: 12px 8px 24px;
    border-top: 1px solid #e8eaf0;
    background: #f7f8fc;
}

.mp-result-title {
    font-size: 15px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.mp-result-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(135deg, #a5b8f9, #b4a4e8);
    flex-shrink: 0;
}

.mp-result-title span {
    font-weight: normal;
    font-size: 12px;
    margin-left: 0;
    color: #888;
}

/* 批次组 + 进度条（对齐医美案例图生成结果） */
.mp-batch-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-batch-group {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mp-batch-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    gap: 12px;
}

.mp-batch-status {
    font-size: 12px;
    margin-left: auto;
    min-width: 80px;
    text-align: right;
    font-weight: normal;
}

.mp-queue-progress {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 4px 0 8px;
}

.mp-progress-track {
    background: #eef0f5;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.mp-progress-bar {
    background: linear-gradient(90deg, #a5b8f9, #7c6dd8, #a5b8f9);
    background-size: 200% 100%;
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: mp-progress-shimmer 1.5s ease infinite;
    position: relative;
}

.mp-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: mp-progress-glow 1.5s ease infinite;
}

@keyframes mp-progress-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes mp-progress-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mp-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.mp-progress-text {
    font-size: 13px;
    color: #888;
}

.mp-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: #7c6dd8;
}

.mp-result-container {
    min-height: 0;
}

.mp-btn-generate.is-loading,
.mp-btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mp-result-loading {
    padding: 28px 12px;
    text-align: center;
    color: #666;
}

.mp-result-loading-text {
    font-size: 14px;
    color: #409EFF;
    margin-bottom: 8px;
}

.mp-result-loading-desc {
    font-size: 12px;
    color: #999;
}

.mp-result-error {
    padding: 20px;
    color: #F56C6C;
    font-size: 13px;
}

.mp-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.mp-result-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: #fdf6ec;
    color: #e6a23c;
    font-size: 12px;
    font-weight: 600;
}

.mp-result-badge.mp-badge-ok {
    background: #f0f9eb;
    color: #67c23a;
}

.mp-result-badge.mp-badge-run {
    background: #ecf5ff;
    color: #409eff;
}

.mp-result-batch {
    color: #bbb;
    font-size: 12px;
}

.mp-result-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.mp-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mp-result-card {
    width: 125px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mp-result-thumb {
    width: 125px;
    height: 222px; /* 9:16 海报比例 */
    background: #f5f6fa;
    overflow: hidden;
}

.mp-result-thumb.mp-result-preview {
    cursor: pointer;
}

.mp-result-thumb.mp-result-preview:hover {
    opacity: 0.92;
}

.mp-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-result-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(160deg, #dce6ff 0%, #e8ddff 100%);
    color: #5a6a9a;
    font-size: 12px;
    line-height: 1.4;
}

.mp-result-card-foot {
    padding: 10px 12px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f9f9fb);
    border-top: 1px solid #f0f0f3;
}

.mp-result-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-result-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.mp-result-tag {
    display: inline-block;
    padding: 0 6px;
    height: 18px;
    line-height: 18px;
    border-radius: 3px;
    background: #ecf5ff;
    color: #409EFF;
    font-size: 11px;
}

.mp-result-status {
    font-size: 11px;
    color: #999;
}

.mp-result-time {
    font-size: 11px;
    color: #bbb;
}

.mp-result-echo {
    margin-top: 12px;
    font-size: 12px;
    color: #bbb;
    line-height: 1.5;
}

.mp-result-empty {
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* 【会议海报】生成页「选择模版」空态提示 */
.mp-template-empty-tip {
    color: #999;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* 【会议海报】选择论坛/专家：下拉多选 + 方框勾选（根节点 .mp-multi-select-enhance） */
.mp-multi-select-enhance .CU-choose-model-select .model-select-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 10px;
    overflow: visible;
    padding-right: 2px;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-search .search-input {
    flex: 1;
    min-width: 0;
    float: none;
    overflow: hidden;
}

.mp-multi-select-enhance .CU-choose-model-select .mp-model-search-tools {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 24px;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-search .search-icon {
    float: none;
    flex: 0 0 28px;
    width: 28px;
    order: 3;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-search .search-input {
    order: 1;
}

.mp-multi-select-enhance .CU-choose-model-select .mp-model-search-tools {
    order: 2;
}

.mp-multi-select-enhance .CU-choose-model-select .mp-model-search-tools a {
    color: #409EFF;
    font-size: 13px;
    text-decoration: none;
    margin-left: 6px;
}

.mp-multi-select-enhance .CU-choose-model-select .mp-model-search-tools a:first-child {
    margin-left: 0;
}

.mp-multi-select-enhance .CU-choose-model-select .select-item.has-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
}

.mp-multi-select-enhance .CU-choose-model-select .select-item-checkbox {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid #c0c4cc;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}

.mp-multi-select-enhance .CU-choose-model-select .select-item.active .select-item-checkbox {
    border-color: #409EFF;
    background: #409EFF;
}

.mp-multi-select-enhance .CU-choose-model-select .select-item.active .select-item-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mp-multi-select-enhance .CU-choose-model-select .select-item-name {
    flex: 1;
    min-width: 0;
}

/* 【20260825】多选实时写回外框后，隐藏取消/确定整栏 */
.mp-multi-select-enhance .CU-choose-model-select .model-select-btn {
    display: none !important;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-tools a {
    color: #409EFF;
    font-size: 13px;
    margin-right: 10px;
    text-decoration: none;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-btn-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/**
 * 【增量·20260824】下拉「取消/确定」对齐表单 card_select（会议论坛/会议嘉宾）pill 样式
 * 取消 ≈ 未选中 .items；确定 ≈ .items.active
 */
.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-cancel,
.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-sure {
    display: inline-block;
    float: none;
    margin: 0;
    min-width: 64px;
    height: auto;
    line-height: 20px;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    border: none;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-cancel {
    background: #e8e8e8;
    color: #444;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-cancel:hover {
    background: #dedede;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-sure {
    background: #1890ff;
    color: #f8f8f8;
}

.mp-multi-select-enhance .CU-choose-model-select .model-select-btn .select-btn-sure:hover {
    background: #40a9ff;
}

.mp-config-panel {
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}

.mp-config-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.mp-config-btn-add {
    background: linear-gradient(135deg, #a5b8f9 0%, #b4a4e8 100%);
    border: none;
    color: #fff;
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
}

.mp-config-btn-add:hover {
    opacity: 0.92;
}

.mp-config-hint {
    font-size: 12px;
    color: #999;
}

.mp-config-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-config-card {
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.mp-config-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mp-config-card-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.mp-config-card-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.mp-config-btn-edit,
.mp-config-btn-del {
    font-size: 13px;
    cursor: pointer;
    color: #409EFF;
}

.mp-config-btn-del {
    color: #F56C6C;
}

.mp-config-card-prompt {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 120px;
    overflow: auto;
    background: #fafbfd;
    padding: 8px 10px;
    border-radius: 4px;
}

.mp-config-card-meta {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
}

/* 新增海报模板配置：模板列表卡片（对齐设计稿） */
.mp-tpl-list-section {
    padding: 8px 0 16px;
    margin-top: 4px;
}

.mp-tpl-list-label {
    color: #222;
    font-size: 14px;
    line-height: 30px;
    margin-bottom: 10px;
}

.mp-tpl-req {
    color: #F56C6C;
    margin-right: 2px;
}

.mp-tpl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.mp-tpl-card {
    width: 105px;
    height: 145px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    position: relative;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.mp-tpl-card-add {
    border: 1px dashed #ddd;
    background: #fafafa;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mp-tpl-card-add:hover {
    border-color: #409EFF;
    color: #409EFF;
}

.mp-tpl-add-plus {
    font-size: 24px;
    color: #aaa;
    line-height: 1;
}

.mp-tpl-add-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.mp-tpl-edit {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: rgba(64, 158, 255, 0.9);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    z-index: 2;
}

.mp-tpl-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    z-index: 2;
}

.mp-tpl-img-wrap {
    width: 100%;
    height: 105px;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    position: relative;
}

/* 【20260828 增量】替换模板图；回退：删除本段 */
.mp-tpl-replace {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 162, 60, 0.92);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.mp-tpl-replace:hover {
    background: rgba(230, 162, 60, 1);
}

.mp-tpl-replace svg {
    display: block;
}

.mp-tpl-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mp-tpl-img-empty {
    color: #ccc;
    font-size: 12px;
}

.mp-tpl-dropdown {
    flex: 1;
    padding: 4px 6px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 0;
}

.mp-tpl-dropdown-display {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 2px;
}

.mp-tpl-dropdown-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.mp-tpl-dropdown-arrow {
    color: #999;
    font-size: 10px;
    flex-shrink: 0;
}

.mp-tpl-dropdown-list {
    display: none;
    position: absolute;
    left: 6px;
    right: 6px;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mp-tpl-dropdown-search {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 6px 8px;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}

.mp-tpl-dropdown-item {
    padding: 5px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}

.mp-tpl-dropdown-item:hover {
    background: #f5f7fa;
    color: #409EFF;
}

/* 编辑海报模板：依据勾选 + 右侧插入变量（对齐设计稿） */
.mp-basis-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0 16px;
    margin: 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}
/* 与 CustomForm .CU-form-label（模板名称/提示词）一致：15px / #222 / 左对齐 / 宽110px */
.mp-basis-label {
    flex: 0 0 110px;
    width: 110px;
    font-size: 15px;
    color: #222;
    line-height: 30px;
    text-align: left;
    box-sizing: border-box;
    padding-right: 0;
    font-weight: normal;
}
.mp-basis-label .mp-req {
    color: #f56c6c;
    margin-left: 2px;
}
.mp-basis-label .mp-basis-hint {
    display: block;
    color: #909399;
    font-size: 12px;
    margin-left: 0;
    margin-top: 0;
    line-height: 18px;
    font-weight: normal;
    text-align: left;
}
.mp-basis-checks {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-height: 32px;
    padding-top: 4px;
}
.mp-basis-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mp-basis-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.mp-basis-check input,
.mp-basis-check-input {
    margin: 0;
}
.mp-basis-select {
    height: 28px;
    min-width: 96px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
}
.mp-basis-select:focus {
    border-color: #409EFF;
}
.mp-prompt-with-vars {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.mp-prompt-with-vars textarea,
.mp-prompt-with-vars .mp-prompt-textarea {
    flex: 1;
    min-width: 0;
    min-height: 280px !important;
    box-sizing: border-box;
}
.mp-var-panel {
    flex: 0 0 128px;
    width: 128px;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    background: #fafbfc;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
    box-sizing: border-box;
}
.mp-var-panel-title {
    font-size: 12px;
    color: #909399;
    padding: 0 10px 8px;
}
.mp-var-list-static .mp-var-item {
    padding: 7px 12px;
    font-size: 13px;
    color: #409EFF;
    cursor: pointer;
    line-height: 1.4;
}
.mp-var-list-static .mp-var-item:hover {
    background: #ecf5ff;
}
