.floating-window {
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background-color: #d31e1e;
}
.floating-window-tou {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 47px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background-color: #d31e1e;
}
.floating-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.floating-window:hover {
    transform: scale(1.1);
}
.floating-window-tou:hover {
    transform: scale(1.1);
}

#my-modal {
    display: none; /* 默认隐藏弹窗 */
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    z-index: 1000; /* 确保弹窗在最上层 */
    display: flex; /* 使用 flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

#my-modal form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1000px; /* 表单最大宽度 */
    position: relative; /* 相对定位 */
    margin: 0; /* 移除 margin: auto */
}

/* 表单组样式 */
.form-group {
    flex: 1; /* 使表单项平分宽度 */
    margin-bottom: 0; /* 移除原有的 margin-bottom */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea{
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-group select {
    width: 46.5%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

/* 提交和关闭按钮样式 */
#submit-form-button,
#close-modal-button {
    background-color: #a1080f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

#submit-form-button:hover,
#close-modal-button:hover {
    background-color: #0056b3;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* 表单项之间的间距 */
    margin-bottom: 15px;
}

.required-marker {
    color: red;
}

/* 适配手机屏幕 */
@media (max-width: 600px) {
    #my-modal form {
        width: 95%;
    }

    .form-row {
        flex-direction: column; /* 手机端恢复为单列布局 */
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px; /* 恢复表单项之间的间距 */
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 12px;
    }

    #submit-form-button,
    #close-modal-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .floating-window {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 65px;
    }
    .floating-window-tou {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }
}