
/* 导航栏图标 */
#cep-nav {
    list-style: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 2px 4px;
    padding: 0;
}
#cep-nav:hover {
    background: rgba(52, 120, 246, 0.08);
}/* ====== 聊天数据导出器插件样式 ====== */

/* 工具栏按钮 */
#chat-exporter-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.15s;
    padding: 0;
}
#chat-exporter-btn:hover {
    transform: scale(1.15);
}

/* 主面板 */
#cep-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #ffffff;
    animation: cep-slide-in 0.25s ease;
}
@keyframes cep-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
#cep-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* 头部 */
.cep-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e7;
}
.cep-header-title {
    font-weight: 700;
    font-size: 17px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cep-header-close {
    background: #f0f0f0;
    border: none;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cep-header-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* 内容区 */
.cep-body {
    padding: 16px 20px;
}
.cep-desc {
    color: #86868b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* 表单行 */
.cep-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.cep-form-label {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cep-form-input {
    width: 70px;
    height: 32px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s;
}
.cep-form-input:focus {
    border-color: #3478F6;
}

/* 按钮 */
.cep-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #3478F6, #2563EB);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}
.cep-btn:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    box-shadow: 0 4px 12px rgba(52, 120, 246, 0.3);
    transform: translateY(-1px);
}
.cep-btn:active {
    transform: translateY(0);
}
.cep-btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.cep-btn-secondary:hover {
    background: #e5e5e5;
    box-shadow: none;
}

/* 状态和日志 */
.cep-status {
    margin-top: 10px;
    font-size: 13px;
    color: #86868b;
    text-align: center;
    min-height: 20px;
}
.cep-status.success { color: #34C759; }
.cep-status.error { color: #FF3B30; }

.cep-log {
    margin-top: 10px;
    max-height: 180px;
    overflow-y: auto;
    background: #f8f8fa;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    white-space: pre-wrap;
    color: #555;
    line-height: 1.6;
    border: 1px solid #e5e5e7;
}

/* 会话列表 */
.cep-conv-list {
    margin-top: 12px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e5e5e7;
    border-radius: 10px;
}
.cep-conv-search {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #e5e5e7;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    border-radius: 10px 10px 0 0;
}
.cep-conv-search:focus {
    border-bottom-color: #3478F6;
}
.cep-conv-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #1d1d1f;
    transition: background 0.15s;
}
.cep-conv-item:last-child {
    border-bottom: none;
}
.cep-conv-item:hover {
    background: #f0f5ff;
}
.cep-conv-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 6px;
}
.cep-conv-type-private {
    background: #e8f5e9;
    color: #2e7d32;
}
.cep-conv-type-group {
    background: #e3f2fd;
    color: #1565c0;
}
