.float-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-button__item {
    position: relative;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: #1e5484;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30, 84, 132, 0.28);
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.float-button__item--back-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.float-button__item--back-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whatsapp {
    background: #4dc247;
}

.float-button__item:hover,
.float-button__item:focus-visible {
    transform: scale(1.12);
    box-shadow: 0 12px 24px rgba(30, 84, 132, 0.36);
}

.float-button__item--back-top.is-visible:hover,
.float-button__item--back-top.is-visible:focus-visible {
    transform: translateY(0) scale(1.12);
}

.float-button__item:focus-visible {
    outline: 2px solid rgba(30, 84, 132, 0.35);
    outline-offset: 3px;
}

.float-button__icon {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: normal;
    pointer-events: none;
}

.float-button__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    box-sizing: border-box;
    pointer-events: none;
}

.float-button__badge.is-hidden {
    display: none;
}
.float-button__item.is-hidden {
    display: none;
}

@media (max-width: 640px) {
    .float-button {
        right: 16px;
        bottom: 16px;
    }
}

img.float-button__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
img.float-button__chat {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* 模态弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.modal-overlay.is-visible {
    display: block;
}

/* 模态弹窗容器 */
.modal-form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    height: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
@media (max-width: 768px) {
    .modal-form-container {
        width: 99%;
    }
}

.modal-form-container.is-visible {
    display: block;
}

.modal-form-container.is-fullscreen {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
}

/* 全屏状态下的模态内容区域 - 实现垂直居中 */
.modal-form-container.is-fullscreen .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 模态弹窗头部 */
.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    z-index: 10;
}

/* 模态弹窗控制按钮 */
.modal-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-minimize-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.modal-fullscreen-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E");
}

.modal-form-container.is-fullscreen .modal-fullscreen-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z'/%3E%3C/svg%3E");
}

/* 模态弹窗内容区域 */
.modal-content {
    width: 100%;
    height: 100%;
}


/* 模态弹窗表单 */
.modal-form-container .container {
    min-height: 600px;
    width: 100%;
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-form-container .container {
    width: 100%;
}

/* 全屏状态下的容器样式 - 让表单卡片居中 */
.modal-form-container.is-fullscreen .container {
    height: 100%;
}

.modal-form-container .form-card {
    width: auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 32px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-form-container .window-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-form-container .window-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-form-container .window-btn:hover {
    background: #e5e7eb;
}

.modal-form-container .window-btn svg {
    width: 16px;
    height: 16px;
}

.modal-form-container .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-right: 64px;
}

.modal-form-container .header-icon {
    width: 40px;
    height: 40px;
    background: #1e3a5f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-form-container .header-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.modal-form-container .header-title {
    font-size: 24px;
    font-weight: bold;
    color: #1e3a5f;
}

.modal-form-container .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-container .form-group {
    display: flex;
    flex-direction: column;
}

.modal-form-container .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal-form-container .form-label .required {
    color: #ef4444;
}

.modal-form-container .form-input {
    box-sizing: border-box;
    width: auto;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #374151;
    transition: all 0.2s;
}

.modal-form-container .form-input::placeholder {
    color: #9ca3af;
}

.modal-form-container .form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: transparent;
}

.modal-form-container .select-wrapper {
    position: relative;
}

.modal-form-container .select-btn {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #374151;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-form-container .select-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: transparent;
}

.modal-form-container .select-btn .placeholder {
    color: #9ca3af;
}

.modal-form-container .select-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.modal-form-container .phone-input-wrapper {
    display: flex;
}

.modal-form-container .phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #e2e8f0;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    gap: 4px;
}

.modal-form-container .phone-prefix svg {
    width: 16px;
    height: 16px;
    color: #4b5563;
}

.modal-form-container .phone-input {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    color: #374151;
    transition: all 0.2s;
}

.modal-form-container .phone-input::placeholder {
    color: #9ca3af;
}

.modal-form-container .phone-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: transparent;
}

.modal-form-container .radio-group {
    display: flex;
    gap: 24px;
}

.modal-form-container .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.modal-form-container .radio-label input[type="radio"] {
    display: none;
}

.modal-form-container .radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-form-container .radio-label:hover .radio-custom {
    border-color: #3b82f6;
}

.modal-form-container .radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #1e3a5f;
    background: #1e3a5f;
}

.modal-form-container .radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.modal-form-container .radio-text {
    font-size: 16px;
    color: #374151;
}

.modal-form-container .submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: #1e3a5f;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 95, 0.2);
}

.modal-form-container .submit-btn:hover {
    background: #1e40af;
}

.modal-form-container .submit-btn svg {
    width: 20px;
    height: 20px;
}

.modal-form-container .submit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-form-container .dropdown-menu {
    position: absolute;
    z-index: 10;
    width: 100%;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 192px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-form-container .dropdown-item {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 16px;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-form-container .dropdown-item:hover {
    background: #eff6ff;
}

.modal-form-container .dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.modal-form-container .dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.modal-form-container .modal-select-container {
    height: 30px;
    width: 100%;
    border: 0;
    background: #e2e8f0;
}