/* 按钮组件 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* 卡片组件 */
.card {
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 表单组件 */
.form-group { margin-bottom: var(--spacing-lg); }

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 右下角客服聊天图标 */
.chat-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(190, 0, 47, 0.4);
}

.chat-icon {
    width: 28px;
    height: 28px;
    position: relative;
}

.chat-icon::before,
.chat-icon::after {
    content: '';
    position: absolute;
    background-color: white;
}

.chat-icon::before {
    width: 22px;
    height: 18px;
    border-radius: 12px 12px 4px 4px;
    top: 4px;
    left: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-icon::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 16px;
    left: 10px;
    box-shadow: 8px 0 0 white, 16px 0 0 white;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(190, 0, 47, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(190, 0, 47, 0.3); }
}