/* 组件化样式库 - 用于统一管理通用UI组件 */

/* ===== 卡片组件 ===== */
.default-cards {
    display: flex;
    gap: 16px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.default-card {
    width: 250px;
    height: 240px;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.default-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 热门话题卡片 */
.default-card:nth-child(1) {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFB6C1 100%);
}

/* 使用反馈卡片 */
.default-card:nth-child(2) {
    background: linear-gradient(135deg, #B5EAD7 0%, #C7CEEA 100%);
}

/* 示例问题卡片 */
.default-card:nth-child(3) {
    background: linear-gradient(135deg, #E2F0CB 0%, #FFDAC1 100%);
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    padding-right: 28px;
    font-size: 14px;
}

.card-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateX(4px);
}

.card-item-icon {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

.card-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item-arrow {
    position: absolute;
    right: 12px;
    font-size: 14px;
    opacity: 0.7;
    color: #1a73e8;
    transform: translateY(-1px);
}

/* ===== 按钮组件 ===== */

/* 基础按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: none;
    gap: 6px;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #1557b0;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}

.btn-outline {
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn-outline:hover {
    background-color: #f0f7ff;
}

/* 圆形按钮 */
.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
}

/* 发送按钮样式 */
.send-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
}

.send-button:hover {
    background-color: #1557b0;
}

/* 技能按钮样式 */
.skill-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #666;
}

.skill-button:hover {
    background-color: #f5f5f5;
    border-color: #c2e7ff;
    color: #1a73e8;
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
}

.skill-button span {
    font-size: 14px;
    color: #333;
}

/* 不同技能按钮的图标颜色 */
.skill-order .skill-icon {
    color: #4caf50;  /* 绿色 */
}

.skill-pricing .skill-icon {
    color: #2196f3;  /* 蓝色 */
}

.skill-tracking .skill-icon {
    color: #ff9800;  /* 橙色 */
}

.skill-faq .skill-icon {
    color: #9c27b0;  /* 紫色 */
}

.skill-document .skill-icon {
    color: #f44336;  /* 红色 */
}

/* 聊天头部按钮组 */
.chat-header-btn {
    background: none;
    border: 1px solid #ddd;
    color: #555;
    margin-left: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    height: 32px;
    box-sizing: border-box;
}

.chat-header-btn:hover {
    background-color: #f2f2f2;
    border-color: #ccc;
}

.chat-header-btn i {
    margin-right: 4px;
    font-size: 12px;
}

.chat-header-btn.close-chat-btn {
    padding: 6px 8px;
    height: 32px;
    border: none;
    background-color: transparent;
}

.chat-header-btn.close-chat-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
}

.chat-header-btn.close-chat-btn i {
    margin-right: 0;
}

/* 新对话按钮样式 */
.new-chat-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    height: 32px;
}

/* 切换模式按钮样式 - 与新对话按钮保持一致 */
.switch-mode-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    height: 32px;
}

/* ===== 输入框组件 ===== */
.input-wrapper {
    display: flex;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 12px;
}

.rich-input-container {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 8px 40px 8px 12px;
    outline: none;
    overflow-y: auto;
    line-height: 1.5;
    word-break: break-word;
    font-size: 14px;
}

.rich-input-container:empty:before {
    content: attr(placeholder);
    color: #aaa;
    pointer-events: none;
}

.message-input {
    flex: 1;
    border: none;
    border-radius: 4px;
    padding: 8px 40px 8px 12px;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    max-height: 120px;
    overflow-y: auto;
    background-color: transparent;
    /* 移除滚动条样式 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    min-height: 40px;
}

/* 移除 Webkit 浏览器的滚动条 */
.message-input::-webkit-scrollbar {
    display: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .default-cards {
        flex-direction: column;
    }
    
    .default-card {
        width: 100%;
    }
} 