/* --- 基础和字体设置 --- */
        :root {
            --primary-color: #007BFF;
            --primary-hover-color: #0056b3;
            --header-bg: linear-gradient(135deg, #007BFF, #0056b3);
            --form-bg: #ffffff;
            --text-color: #333333;
            --light-text-color: #f8f9fa;
            --border-color: #dddddd;
            --shadow-color: rgba(0, 0, 0, 0.15);
        }

        /* --- 表单总容器 --- */
        .contact-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            width: 340px;
            box-shadow: 0 10px 25px var(--shadow-color);
            border-radius: 15px;
            background-color: var(--form-bg);
            /* PC端默认显示 */
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
            /* 移动端默认隐藏 */
        }

        /* --- 移动端初始状态 --- */
        @media (max-width: 768px) {
            .contact-widget {
                transform: translateY(110%);
                opacity: 0;
                pointer-events: none;
                width: calc(100% - 40px);
                right: 20px;
            }
            .contact-widget.is-open {
                transform: translateY(0);
                opacity: 1;
                pointer-events: auto;
            }
        }

        /* --- 表单头部 --- */
        .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            background: var(--header-bg);
            color: var(--light-text-color);
            cursor: pointer;
            border-radius: 15px 15px 0 0;
        }

        .form-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .toggle-button {
            background: none;
            border: none;
            color: var(--light-text-color);
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: transform 0.3s;
        }

        /* --- 表单内容区域 --- */
        .form-body {
            padding: 0 10px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
        }

        /* --- 展开状态 --- */
        .contact-widget:not(.is-minimized) .form-body {
            max-height: 500px;
            padding: 10px;
        }

        .contact-widget:not(.is-minimized) .toggle-button {
            /*transform: rotate(180deg);*/
        }

        /* --- 表单字段样式保持不变 --- */
        .form-group {
            margin-bottom: 5px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: var(--text-color);
            font-size: 14px;
            font-weight: 500;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            box-sizing: border-box;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* --- 提交按钮 --- */
        .submit-button {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
        }

        /* --- 移动端悬浮按钮 --- */
        .mobile-fab {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: var(--header-bg);
            color: white;
            border-radius: 50%;
            border: none;
            box-shadow: 0 5px 15px var(--shadow-color);
            cursor: pointer;
            z-index: 1001;
            font-size: 24px;
            justify-content: center;
            align-items: center;
        }
        @media (max-width: 768px) {
            .mobile-fab {
                display: flex;
            }
        }