﻿/* 配色变量 */
        :root {
            --black: #000;
            --red: #FE0005;
            --blue: #60A3BC;
            --gray-bg: #F8FAFC;
            --gray-border: #E2E8F0;
            --dark-gray: #333;
        }

        /* 右下角留言按钮容器 */
        .fixed-msg-btn-wrap {
            position: fixed;
            right: 24px;
            bottom: 20px;
            z-index: 9999;
        }
        #message-form-button {
            background: var(--red);
            color: #fff;
            border: none;
            padding: 12px 24px;
            border-radius: 999px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            transition: background 0.3s ease;
        }
        #message-form-button:hover {
            opacity: 0.9;
        }
        .msg-icon {
            font-size: 18px;
        }

        /* 表单弹窗基础样式 */
        .form-popup {
            position: fixed;
            right: 14px;
            bottom: -100%;
            max-width: 440px;
            width: 100%;
            background: #fff;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            border: 1px solid rgba(10, 61, 98, 0.1);
            z-index: 9999999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease-in-out;
        }
        .form-popup.active {
            bottom: 20px;
            opacity: 1;
            visibility: visible;
        }
        #close-form {
            position: absolute;
            top: 12px;
            right: 12px;
            border: none;
            background: transparent;
            font-size: 20px;
            color: #94A3B8;
            cursor: pointer;
            transition: color 0.3s;
        }
        #close-form:hover {
            color: var(--red);
        }
        .form-popup h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--black);
            margin-bottom: 20px;
        }
        .form-group {
            margin-bottom: 16px;
        }
        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--black);
            margin-bottom: 6px;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--gray-border);
            border-radius: 6px;
            font-size: 14px;
            background: var(--gray-bg);
            transition: all 0.3s ease;
        }
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(96, 163, 188, 0.2);
            background: #fff;
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
            color: #999;
        }
        .submit-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 6px;
            background: var(--black);
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        .submit-btn:hover {
            background: var(--red);
            transform: translateY(-1px);
        }

        /* 右侧悬浮客服栏 */
        .side-service-wrap {
            position: fixed;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 16px;
            z-index: 9999;
        }
        .side-service-wrap a i{font-size:24px;}
        .service-item {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            text-decoration: none;
            position: relative;
            transition: opacity 0.3s;
        }
        .service-item:hover {
            opacity: 0.8;
        }
        .service-tel {
            background: var(--black);
        }
        .service-fb {
            background: #3b5998;
        }
        .service-whatsapp {
            background: #25D366;
        }
        .service-top {
            background: var(--red);
        }
        /* 悬浮提示文字 */
        .service-tip {
            position: absolute;
            right: 100%;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.9);
            color: #fff;
            padding: 6px 10px;
            border-radius: 4px;
            white-space: nowrap;
            margin-right: 10px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            font-size: 20px;
        }
        .service-item:hover .service-tip {
            opacity: 1;
            visibility: visible;
        }

        /* ========== 移动端768px以下适配 ========== */
        @media screen and (max-width: 768px) {
            /* 1. 手机端隐藏右侧全部悬浮客服栏 */
            .side-service-wrap {
                display: none !important;
            }

            /* 2. 留言按钮只显示图标，隐藏文字，改为正圆形 */
            #message-form-button {
                width: 52px;
                height: 52px;
                padding: 0;
                justify-content: center;
            }
            #message-form-button > span:last-child {
                display: none;
            }

            /* 3. 弹窗手机端优化 */
            .form-popup {
                left: 5%;
                right: 5%;
                max-width: 90%;
                padding: 20px;
            }
            .form-popup.active {
                bottom: 70px;
            }
            .form-popup h3 {
                font-size: 18px;
                margin-bottom: 15px;
            }
            .form-group textarea {
                min-height: 80px;
            }
        }