        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 悬浮留言图标 */
        .message-icon {
            position: fixed;
            right: 20px;
            bottom: 20px;
            width: 60px;
            height: 60px;
            background: #1890ff;
            border-radius: 50%;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            z-index: 998;
            transition: all 0.3s ease;
        }
        
        /* 新消息图标闪烁动画 */
        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 rgba(24, 144, 255, 0.7); }
            50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(24, 144, 255, 0.9); }
            100% { transform: scale(1); box-shadow: 0 0 0 rgba(24, 144, 255, 0.7); }
        }
        
        .message-icon.blinking {
            animation: pulse 1.5s infinite;
        }
        
        .new-message-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4d4f;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            font-weight: bold;
            z-index: 999;
        }
        
        /* 留言面板样式 */
        .message-panel {
            position: fixed;
            right: 20px;
            bottom: 90px;
            width: 360px;
            height: 500px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            z-index: 999;
            overflow: hidden;
        }
        
        .panel-header {
            padding: 16px;
            background: #1890ff;
            color: white;
            font-weight: bold;
            text-align: center;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            position: relative;
        }
        
        .message-close-btn {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: #fafafa;
            display: flex;
            flex-direction: column;
        }
        
        .message-item {
            margin-bottom: 16px;
            padding: 12px;
            border-radius: 8px;
            max-width: 80%;
            word-wrap: break-word;
        }
        
        .user-message {
            background: #e6f7ff;
            margin-left: auto;
            border: 1px solid #91d5ff;
        }
        
        .admin-message {
            background: #f6ffed;
            margin-right: auto;
            border: 1px solid #b7eb8f;
        }
        
        .message-time {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
        }
        
        .image-thumbnail {
            max-width: 100px;
            max-height: 100px;
            margin: 4px 0;
            cursor: pointer;
            border-radius: 4px;
            transition: transform 0.2s ease;
        }
        
        .image-thumbnail:hover {
            transform: scale(1.05);
        }
        
        .input-area {
            padding: 16px;
            border-top: 1px solid #e8e8e8;
            background: white;
        }
        
        /* 图片预览容器样式 */
        .image-previews {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            max-height: 100px;
            overflow-x: auto;
            padding-bottom: 5px;
        }
        
        .preview-item {
            position: relative;
            width: 70px;
            height: 70px;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .remove-img {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff4d4f;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            border: none;
        }
        
        .message-input {
            width: 100%;
            min-height: 40px;
            max-height: 120px;
            padding: 8px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            resize: none;
            margin-bottom: 8px;
        }
        
        .action-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .upload-btn, .send-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        
        .upload-btn {
            background: #fafafa;
            border: 1px solid #d9d9d9;
        }
        
        .send-btn {
            background: #1890ff;
            color: white;
        }
        
        .send-btn:hover {
            background: #40a9ff;
        }
        
        .loading {
            text-align: center;
            padding: 10px;
            color: #999;
        }
        
        .upload-status {
            font-size: 12px;
            color: #52c41a;
            margin-top: 4px;
        }
        
        .upload-error {
            font-size: 12px;
            color: #ff4d4f;
            margin-top: 4px;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .message-panel {
                width: 100%;
                height: 100%;
                right: 0;
                bottom: 0;
                border-radius: 0;
            }
            
            .message-item {
                max-width: 90%;
            }
        }
        
        /* 图片查看模态框 */
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1001;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .image-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
        }
