/* 悬浮按钮容器样式 */
.coly-side-right {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 浮动按钮通用样式 */
.coly-menu-float, .coly-top-float {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.coly-menu-float:hover, .coly-top-float:hover {
    transform: translateX(-5px);
}

/* 确保按钮图片显示正常 */
.coly-menu-float img, .coly-top-float img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.coly-menu-float img:hover, .coly-top-float img:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 调整已有的底部定位样式，确保按钮垂直排列 */
.coly-menu-float.coly-right[style*="bottom"],
.coly-top-float.coly-right {
    bottom: auto !important;
}

/* 优化表单容器样式 */
.form-model {
    width: 35%;
    max-width: 500px;
    padding: 2.5rem;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translate(130%, -50%);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999999;
}

/* 表单标题样式（可选添加） */
.form-model h3 {
    color: #fff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 优化输入框样式 */
.contact-form .info input,
.contact-form .message textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form .info input:focus,
.contact-form .message textarea:focus {
    outline: none;
    border-color: #3cbbff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(60, 187, 255, 0.1);
}

/* 优化文本域样式 */
.contact-form .message textarea {
    height: 120px;
    resize: none;
    padding-top: 12px;
}

/* 美化提交按钮 */
.form-model-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: linear-gradient(145deg, #feec54, #ffd700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-model-btn:hover {
    background: linear-gradient(145deg, #ffd700, #f0c100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 236, 84, 0.3);
}

.form-model-btn:active {
    transform: translateY(0);
}

/* 关闭按钮美化 */
.form-model .closeBtn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-model .closeBtn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .form-model {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .form-model {
        width: 80%;
        padding: 1.5rem;
        right: 50%;
        transform: translate(150%, -50%);
    }
    
    .form-model.active {
        transform: translate(50%, -50%);
    }
}

/* 优化表单激活状态的动画 */
.form-model.active {
    transform: translate(0, -50%);
    animation: formSlideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translate(130%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* 表单标签和占位符优化 */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}