* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.cs-button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cs-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.chat-window {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message.service {
    flex-direction: row;
}

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.message-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 16px;
    line-height: 1.5;
}

.message.user .message-content {
    background: #007bff;
    color: white;
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #dee2e6;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
}

.chat-input button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.chat-input button:hover {
    background: #0056b3;
}

/* 链接卡片样式 */
.link-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.link-card-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.link-card-icon i {
    font-size: 20px;
    color: #007bff;
}

.link-card-content {
    flex: 1;
    overflow: hidden;
}

.link-card-title {
    font-size: 14px;
    color: #007bff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card-desc {
    font-size: 12px;
    color: #666;
}

.message.user .link-card {
    background: #f8f9fa;
}

.message.service .link-card {
    background: #ffffff;
}

/* 确保链接卡片在消息气泡中正确显示 */
.message-content .link-card {
    max-width: 100%;
    margin: 8px 0;
} 