/* AI 客服悬浮窗 - 与主站科技感风格一致 */
.ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--neon-blue, #00d4ff), var(--neon-cyan, #06b6d4));
    color: #0a0e27;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ai-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5);
}

.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 420px;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-panel.hidden {
    display: none;
}

.ai-chat-header {
    padding: 14px 18px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    font-size: 15px;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--text-primary, #f8fafc);
}

.ai-chat-msg.assistant {
    align-self: flex-start;
    background: rgba(37, 43, 69, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary, #cbd5e1);
}

.ai-chat-msg.loading {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
}

.ai-chat-input-wrap {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary, #f8fafc);
    background: rgba(37, 43, 69, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 10px;
    outline: none;
}
.ai-chat-input::placeholder {
    color: var(--text-muted, #94a3b8);
}
.ai-chat-input:focus {
    border-color: var(--neon-blue, #00d4ff);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.ai-chat-send {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0e27;
    background: linear-gradient(135deg, var(--neon-blue, #00d4ff), var(--neon-cyan, #06b6d4));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ai-chat-send:hover:not(:disabled) {
    opacity: 0.9;
}
.ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
