/**
 * 懂AI专家助手 - 前端样式
 */

/* ===== 专家对话页面样式 ===== */

/* 进度提示 */
.chat-progress-tip {
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #06b6d4;
    margin-bottom: 12px;
    animation: progressPulse 1.5s ease-in-out infinite;
}
@keyframes progressPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 思考框 - 折叠样式 */
.chat-thinking {
    margin-bottom: 8px; padding: 10px 14px;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 12px; font-size: 0.82rem;
    color: rgba(251,191,36,0.8);
    display: none;
}
.chat-thinking.active { 
    display: block; 
}
.chat-thinking:not(.active) {
    /* 折叠状态：只显示一行提示 */
    display: block;
    padding: 6px 12px;
    background: rgba(251,191,36,0.05);
    border: 1px dashed rgba(251,191,36,0.2);
}
.chat-thinking:not(.active) .chat-thinking-text {
    display: none;
}
.chat-thinking-label {
    font-weight: 600; color: #f59e0b; margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}
.chat-thinking-label a {
    color: #06b6d4;
    text-decoration: underline;
    cursor: pointer;
}

/* 欢迎消息 */
.chat-welcome {
    text-align: center; padding: 40px 24px;
}
.chat-welcome-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; margin: 0 auto 20px;
}
.chat-welcome-title {
    font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.chat-welcome-desc {
    font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 24px;
}

/* 快速问题 */

/* ===== 首页专家入口区域 ===== */

/* 首页专家入口区域 */
.dongai-experts-section {
    margin-bottom: 32px;
}

.dongai-experts-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dongai-experts-section .section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 2px;
}

.dongai-experts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.dongai-expert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dongai-expert-card:hover {
    transform: translateY(-4px);
    border-color: #06b6d4;
    box-shadow: 0 8px 24px rgba(6,182,212,0.15);
}

.dongai-expert-card .dex-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dongai-expert-card .dex-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
}

.dongai-expert-card .dex-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    text-align: center;
}

.dongai-expert-card .dex-title {
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* 响应式 */
@media (max-width: 768px) {
    .dongai-experts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .dongai-expert-card {
        padding: 12px 8px;
    }
    
    .dongai-expert-card .dex-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .dongai-expert-card .dex-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dongai-experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 暗色模式适配（如果需要）*/
@media (prefers-color-scheme: dark) {
    .dongai-experts-section .section-title {
        color: #e2e8f0;
    }
    
    .dongai-expert-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .dongai-expert-card .dex-name {
        color: #e2e8f0;
    }
    
    .dongai-expert-card .dex-title {
        color: #94a3b8;
    }
}
