/* 规则内容单元格样式 */
.cell-content {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;  /* 改为normal允许换行 */
}

/* 场景选择器样式 */
#sceneFilter {
    min-width: 120px;
}

/* 匹配内容卡片样式 */
.match-card {
    border-radius: 2px;
    /* padding: 8px 12px; */
    margin: 4px 0;
    font-size: 15px;
}

/* 匹配内容容器样式 */
.match-words-container {
    display: flex;
    flex-wrap: wrap;  /* 允许标签换行 */
    gap: 4px;  /* 减小间距使布局更紧凑 */
    max-width: 300px;
}

/* 匹配内容标签样式 */
.match-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e6f4ff;  /* 更浅的蓝色背景 */
    border: 1px solid #91caff;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 14px;
}

/* tooltip样式优化 */
.cell-tooltip {
    padding: 12px !important;
    min-width: 200px;
    max-width: 400px !important;
}

.cell-tooltip .match-words-container {
    max-width: 100%;
}

/* 回复内容样式 */
.reply-content {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-radius: 2px;
}

/* 匹配词输入区域样式 */
.tag-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
}

.tag-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

.tags-input-container {
    border-radius: 4px;
    padding: 8px;
    min-height: 100px;
    background: #fff;
}

.tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;  /* 更改为浅灰色背景 */
    border-radius: 16px;        /* 增加圆角实现胶囊形状 */
    padding: 4px 12px;         /* 调整内边距使形状更圆润 */
    font-size: 14px;
    color: #333;
    border: none;              /* 移除边框 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 添加轻微阴影 */
}

.tag-remove {
    margin-left: 8px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.tag-remove:hover {
    color: #ff4d4f;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 修改原有的textarea样式 */
#matchWords,
#fuzzyMatchWords {
    display: none;
}

/* 账号选择相关样式 */
.selected-accounts-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    min-height: 60px;
}

.account-search {
    margin-bottom: 20px;
}

.account-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.account-list {
    margin-bottom: 20px;
}

.account-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.account-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-card.selected {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.selected-account {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    gap: 8px;
}

.selected-account .remove-account {
    cursor: pointer;
    color: #999;
}

.selected-account .remove-account:hover {
    color: #ff4d4f;
}

/* 批量操作按钮样式 */
.batch-actions {
    /* 移除 display: none; 使按钮始终显示 */
    display: flex;
    justify-content: flex-end;
}

/* 添加禁用按钮样式 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 过滤区域布局 */
.filter-section {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.filter-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 回复内容相关样式 */
.reply-content-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.btn-remove-reply {
    background: none;
    border: none;
    color: #ff4d4f;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

#addReplyBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

#addReplyBtn:hover {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 5px;
}

.image-preview img {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

/* 表格中的回复内容样式 */
.reply-contents {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-content {
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-radius: 2px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-separator {
    height: 1px;
    background-color: #e8e8e8;
    margin: 4px 0;
}

.image-reply {
    padding: 4px;
}

.reply-image-thumbnail {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
}

/* 上传区域样式 */
.upload-box {
    border: none;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #1890ff;
}

.upload-placeholder {
    color: #666;
}

.upload-icon {
    font-size: 32px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

/* 图片预览相关样式 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
}

.upload-confirm-btn {
    margin-top: 10px;
    padding: 6px 12px;
}

.success-msg {
    color: green;
    margin-top: 10px;
    font-weight: 500;
}

/* 在文件末尾添加以下样式 */
#addStartTime {
    background: #1890ff;
    color: white;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

#addStartTime:hover { background: #40a9ff }
#addStartTime::-webkit-calendar-picker-indicator { filter: invert(1) }


.selected-time {
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin: 4px 0;
    display: inline-flex;
    align-items: center;
}

.remove-time {
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
}

.remove-time:hover {
    color: #ff4d4f;
}

