/* 咨询页面专用样式 */

/* 演示内容区域 */
.demo-content {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1.5rem;
    height: calc(100vh - 160px);
    overflow: hidden;
}

/* 聊天容器 */
.chat-container {
    flex: 2;
    max-width: 1000px;
    margin: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.chat-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: #fafbfc;
    max-height: calc(100vh - 320px);
}

.message {
    display: flex;
    margin: 1.2rem 0;
    align-items: flex-start;
    gap: 1rem;
}

.user-message {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #f0f0f0;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-bubble {
    max-width: 80%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.bot-message .message-bubble {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.message-time {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* 服务列表 */
.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list li {
    padding: 0.3rem 0;
}

/* 材料网格布局 */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.material-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.material-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #667eea;
}

.material-info {
    flex: 1;
}

.material-info strong {
    display: block;
    color: #333;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.material-info small {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* 时间轴样式 */
.timeline {
    margin: 1.5rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 45px;
    bottom: 45px;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 1;
    position: relative;
}

.timeline-content {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid #667eea;
    margin-top: -4px;
}

.timeline-content strong {
    display: block;
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.timeline-content span {
    display: block;
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.timeline-content time {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 总时间显示 */
.total-time {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 10px;
}

.time-value {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 信息卡片 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.info-card i {
    font-size: 1.8rem;
    color: #667eea;
    flex-shrink: 0;
}

.info-card div {
    flex: 1;
}

.info-card strong {
    display: block;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.info-card span {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* 操作区域 */
.action-section {
    text-align: center;
    margin: 2rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.action-btn {
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 简单操作按钮 */
.simple-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.simple-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 18px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.simple-btn.primary {
    background: #4CAF50;
    color: white;
}

.simple-btn.primary:hover {
    background: #45a049;
    transform: scale(1.05);
}

.simple-btn.secondary {
    background: #2196F3;
    color: white;
}

.simple-btn.secondary:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* 打字指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* 聊天输入区域 */
.chat-input {
    border-top: 1px solid #e9ecef;
    padding: 1.2rem 2rem 1.5rem;
    background: white;
}

.quick-questions {
    margin-bottom: 1rem;
}

.quick-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.quick-options {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-btn i {
    font-size: 0.9rem;
}

/* 输入区域 */
.input-area {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.input-area input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.input-area input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    padding: 0.6rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 统计面板 */
.stats-panel {
    flex: 0 0 380px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: 100%;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.panel-header h3 {
    margin: 0;
    color: #333;
}

.real-time-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-value {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

/* 功能特色列表 */
.feature-list {
    margin: 1.5rem 0;
}

.feature-list h4 {
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    color: #333;
}

.feature-list i {
    color: #28a745;
    font-size: 0.9rem;
}

/* 快速操作 */
.quick-actions {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e9ecef;
}

.quick-actions h4 {
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.quick-action-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.quick-action-btn span {
    flex: 1;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .demo-content {
        flex-direction: column;
    }
    
    .stats-panel {
        position: static;
        flex: none;
    }
}

@media (max-width: 768px) {
    .demo-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .chat-messages {
        height: 500px;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-btn {
        justify-content: center;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .message-bubble {
        max-width: 95%;
    }
    
    .chat-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
} 