/**
 * AI创作面板 · 聊天工具 · 上传图与视频模块样式
 * 独立命名空间 ai-create-chat-media-*
 */

.ai-create-chat-media-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

.ai-create-chat-media-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-create-chat-media-add-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(107, 140, 255, 0.12);
    color: #6b8cff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}
.ai-create-chat-media-add-btn:hover {
    background: rgba(107, 140, 255, 0.22);
    border-color: rgba(107, 140, 255, 0.5);
    color: #8094ff;
}
.ai-create-chat-media-add-btn:focus {
    outline: none;
    border-color: #6b8cff;
    box-shadow: 0 0 0 2px rgba(107, 140, 255, 0.35);
}

.ai-create-chat-media-trigger-label {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: #aaaaaa;
}

.ai-create-chat-media-preview {
    display: none;
    flex-direction: column;
    gap: 6px;
}
.ai-create-chat-media-preview.is-visible { display: flex; }

.ai-create-chat-media-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-create-chat-media-preview-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1f23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.ai-create-chat-media-preview-item img,
.ai-create-chat-media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-create-chat-media-preview-item .ai-create-chat-media-item-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2px 4px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
}

.ai-create-chat-media-preview-item .ai-create-chat-media-item-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.ai-create-chat-media-preview-item .ai-create-chat-media-item-remove:hover {
    background: rgba(200, 60, 60, 0.9);
}
.ai-create-chat-media-preview-item .ai-create-chat-media-item-remove:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.ai-create-chat-media-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-create-chat-media-clear-btn {
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #999;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ai-create-chat-media-clear-btn:hover {
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.35);
}

.ai-create-chat-media-token-hint {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    color: #888;
}

.ai-create-chat-media-zone-disabled .ai-create-chat-media-add-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(80, 80, 80, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
    color: #666;
    pointer-events: none;
}
.ai-create-chat-media-zone-disabled .ai-create-chat-media-trigger-label {
    color: #666;
}

.ai-create-chat-body.ai-create-chat-body-drag-over {
    outline: 2px dashed #6b8cff;
    outline-offset: -2px;
    background: rgba(107, 140, 255, 0.08);
}

