        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background-color: #f5f6f7;
            color: #333;
        }
        
        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: #fff;
            min-height: 100vh;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        
        /* 头部 */
        .header {
            background: linear-gradient(135deg, #05b34d 0%, #05b34d 100%);
            color: #fff;
            padding: 14px;
            text-align: center;
            position: relative;
        }
        
        .back-btn {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
        }
        
        /*.back-btn {
            font-size: 24px;
            color: #fff;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
        }*/

        .back-btn img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }
		
        .header-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        /* 公告条 */
        .notice-bar {
            background: linear-gradient(135deg, #99dc8f 0%, #c3dfbf 100%);
            margin: 10px 16px 10px;
            padding: 8px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        
        .notice-icon {
            font-size: 14px;
            flex-shrink: 0;
            animation: bounce 2s ease-in-out infinite;
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-3px);
            }
        }
        
        .notice-text {
            flex: 1;
            overflow: hidden;
            position: relative;
            height: 20px;
            display: flex;
            align-items: center;
        }
        
        .notice-text-content {
            display: inline-block;
            white-space: nowrap;
            font-size: 12px;
            color: #666;
            animation: scrollLeft 20s linear infinite;
            transition: animation-play-state 0.3s ease;
        }
        
        .notice-bar:hover .notice-text-content {
            animation-play-state: paused;
        }
        
        @keyframes scrollLeft {
            0% {
                transform: translateX(100%);
            }
            100% {
                transform: translateX(-100%);
            }
        }
        
        /* 广告模块 */
        .ad-module {
            margin: 0 16px 10px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .ad-banner {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, #4a9eff 0%, #2d7dd2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }
        
        .ad-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.3)"/></svg>') repeat;
            animation: moveStars 20s linear infinite;
        }
        
        @keyframes moveStars {
            0% {
                transform: translateY(0);
            }
            100% {
                transform: translateY(-100px);
            }
        }
        
        .ad-content {
            position: relative;
            z-index: 1;
            text-align: center;
        }
        
        .ad-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .ad-desc {
            font-size: 14px;
            opacity: 0.9;
        }
        
		.service-mode-switch {
			display: flex;
			justify-content: center;
			margin: 10px 0;
			padding: 0 16px;
		}
		.mode-btn {
		    flex: 1;
		    padding: 10px;
		    text-align: center;
		    border: 1px solid #ddd;
		    cursor: pointer;
		    transition: all 0.3s ease;
		}
		.mode-btn.active {
		    background-color: #05b34d;
		    color: white;
		    border-color: #05b34d;
		}
		.mode-btn:first-child {
		    border-radius: 6px 0 0 2px;
		}
		.mode-btn:last-child {
		    border-radius: 0 6px 2px 0;
		}
		
        /* 客服小助手 */
        .assistant-section {
            margin: 0 16px 16px;
            background-color: #f8f9fa;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .assistant-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .assistant-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #05b34d 0%, #05b34d 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #fff;
        }
        
        .assistant-info {
            flex: 1;
        }
        
        .assistant-name {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }
        
        .assistant-status {
            font-size: 12px;
            color: #4caf50;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .assistant-message {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        
        /* 猜你想问 */
        .faq-section {
            margin: 0 16px 16px;
        }
        
        .faq-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .faq-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .faq-refresh {
            font-size: 14px;
            color: #05b34d;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .faq-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .faq-item {
            background-color: #f8f9fa;
            border-radius: 30px;
            padding: 5px 16px;
            font-size: 14px;
            color: #666;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }
        
        .faq-item:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
        }
        
        /* 智能问答区域 */
        .chat-wrapper {
            overflow-y: auto;
            height: 300px;
            -webkit-overflow-scrolling: touch;
        }
        
        .chat-section {
            margin: 0 16px 90px;
        }
        
        .chat-message {
            margin-bottom: 12px;
            display: flex;
            gap: 10px;
        }
        
        .chat-message.user {
            flex-direction: row-reverse;
        }
        
        .chat-message.system {
            justify-content: center;
        }
        
        .chat-message .chat-content {
            flex: 1;
            max-width: 65%;
        }
        
        .system-content {
            text-align: center;
            max-width: 80%;
        }
        
        .system-bubble {
            background-color: #f0f0f0;
            color: #666;
            border-radius: 12px;
            padding: 8px 12px;
            font-size: 12px;
            display: inline-block;
        }
        
        .system-content .chat-time {
            font-size: 11px;
            color: #999;
            margin-top: 4px;
        }
        
        .chat-message.user .chat-content {
            text-align: right;
        }
        
        .chat-bubble {
            padding: 10px;
            border-radius: 10px;
            max-width: 80%;
            line-height: 1.4;
            display: inline-block;
        }
        
        .user-bubble {
            background-color: #e3f2fd;
            color: #333;
            border-bottom-right-radius: 4px;
            margin-left: auto;
            float: right;
            clear: both;
        }
        
        .bot-bubble {
            background-color: #f8f9fa;
            color: #333;
            border-bottom-left-radius: 4px;
            float: left;
            clear: both;
        }
        
        .chat-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            position: relative;
        }
        .chat-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50% !important;
            display: block;
        }
        
        .user-avatar {
            background: linear-gradient(135deg, #4a9eff 0%, #2d7dd2 100%);
            color: #fff;
            position: relative;
        }
        .user-avatar.vip {
            position: relative;
        }
        .user-avatar.vip::after {
            content: 'VIP';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
            color: white;
            font-size: 5px;
            font-weight: bold;
            padding: 1px 6px 3px;
            border-radius: 40px 40px 0 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
            z-index: 10;
            min-width: 24px;
            text-align: center;
            height: 10px;
            line-height: 5px;
        }
        .chat-avatar.user-avatar.vip {
            overflow: visible;
        }
        .user-avatar.vip img {
            border: 2px solid #ffd700;
        }
        
        .bot-avatar {
            background: linear-gradient(135deg, #05b34d 0%, #05b34d 100%);
            color: #fff;
        }
        
        .chat-time {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
            clear: both;
        }
        
        /* 输入区域 */
        .input-area {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #fff;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: 0 auto;
        }
        
        .add-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #a8e6cf;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            animation: btn-pulse 2s ease-in-out infinite;
            flex-shrink: 0;
            position: relative;
        }
        
        .add-btn i {
            font-size: 16px;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
            line-height: 1;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .add-btn:hover {
            transform: scale(1.1);
            background-color: #88d8b0;
        }
        
        /* 用户信息栏样式 */
        .user-info-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .user-info-text {
            font-size: 14px;
            color: #333;
        }
        
        .user-info-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .register-btn,
        .login-btn,
        .logout-btn {
            padding: 6px 12px;
            font-size: 12px;
            border: 1px solid #05b34d;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .register-btn {
            background-color: #05b34d;
            color: white;
        }
        
        .login-btn {
            background-color: white;
            color: #05b34d;
        }
        
        .logout-btn {
            background-color: #f8f9fa;
            color: #666;
            border-color: #ccc;
        }
        
        .register-btn:hover {
            background-color: #049e42;
        }
        
        .login-btn:hover {
            background-color: #f0f9f4;
        }
        
        .transfer-message-btn {
            padding: 6px 12px;
            font-size: 12px;
            background-color: #f0f0f0;
            color: #666;
            border: 1px solid #ccc;
            border-radius: 4px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s ease;
        }
        
        .transfer-message-btn:hover {
            background-color: #e0e0e0;
        }
        
        .user-phone-box {
            margin-left: 8px;
            font-weight: 600;
            color: #05b34d;
            position: relative;
            padding-left: 0;
            padding-top: 16px;
        }
        .user-phone-box::before {
            content: 'VIP';
            position: absolute;
            left: 0;
            top: 0;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
            color: white;
            font-size: 6px;
            font-weight: bold;
            padding: 1px 3px;
            border-radius: 6px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        .user-status.guest {
            color: #666;
        }
        
        .user-status.formal {
            color: #05b34d;
            font-weight: 600;
        }
        
        @keyframes btn-pulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(168, 230, 207, 0.4);
            }
            50% {
                box-shadow: 0 0 0 8px rgba(168, 230, 207, 0);
            }
        }
        
        .message-input {
            flex: 1;
            padding: 10px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s ease;
        }
        
        .message-input:focus {
            border-color: #05b34d;
        }
        
        .send-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #05b34d 0%, #05b34d 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #fff;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        
        .send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
        }
        
        .send-btn:disabled {
            background: #e0e0e0;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* 添加按钮菜单 */
        .add-menu {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 8px 8px 0 0;
            box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
            padding: 0;
            display: none;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            max-width: 800px;
            margin: 0 auto;
        }
        
        /* 表情包按钮 */
        .emoji-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        
        .emoji-btn:hover {
            transform: scale(1.1);
        }
        
        .emoji-btn.active {
            transform: scale(1.1);
        }
        
        /* 表情包菜单 */
        .emoji-menu {
            position: fixed;
            bottom: 60px;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 12px 12px 0 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
            padding: 12px;
            display: none;
            z-index: 999;
            max-width: 800px;
            margin: 0 auto;
            overflow: hidden;
        }
        
        .emoji-menu.show {
            display: block;
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 4px;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .emoji-item {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            padding: 4px;
            cursor: pointer;
            border-radius: 6px;
            transition: background-color 0.2s ease;
        }
        
        .emoji-item:hover {
            background-color: #f0f0f0;
        }
        
        .add-menu.show {
            display: flex;
            flex-direction: column;
            transform: translateY(0);
        }
        
        .add-menu-item {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-size: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .add-menu-item:hover {
            background-color: #f5f6f7;
        }
        
        .add-menu-item.cancel {
            border-bottom: none;
            border-top: none;
            font-weight: 600;
        }
        
        .menu-separator {
            height: 6px;
            background-color: rgba(0, 0, 0, 0.15);
        }
        
        .add-menu-text {
            font-size: 12px;
            color: #333;
            text-align: center;
        }
        
        /* 响应式消息容器宽度 */
        @media (max-width: 768px) {
            .container {
                max-width: 100%;
            }
            
            .input-area {
                max-width: 100%;
            }
            
            .add-menu {
                max-width: 100%;
            }
            
            .chat-message .chat-content {
                max-width: 75%;
            }
            
            /* 移动端客服信息布局调整 - 恢复一行布局 */
            .customer-service-info {
                display: flex;
                align-items: center;
                padding: 10px 16px;
                background-color: #f5f5f5;
                border-radius: 8px;
                margin: 0 16px 4px;
            }
            
            .customer-service-info .service-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: #05b34d;
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 10px;
                font-size: 20px;
            }
            
            .customer-service-info .service-details {
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            .customer-service-info .service-name {
                font-weight: bold;
                margin-bottom: 2px;
                font-size: 14px;
            }
            
            .customer-service-info .service-status {
                font-size: 12px;
                color: #666;
                margin-left: 0;
                margin-top: 0;
            }
            
            .customer-service-info .service-status.online {
                color: #05b34d;
            }
            
            .customer-service-info .end-chat-btn {
                flex-shrink: 0;
                padding: 8px 16px;
                font-size: 14px;
                margin-top: 0;
                width: auto;
            }
            
            /* 移动端满意度评价位置调整 */
            .satisfaction-survey {
                margin: 10px 16px 60px;
                position: relative;
                z-index: 100;
            }
        }
        
        @media (max-width: 480px) {
            .faq-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }
            
            .faq-item {
                padding: 4px 8px;
                font-size: 12px;
            }
            
            .chat-message .chat-content {
                max-width: 80%;
            }
            
            .chat-bubble {
                max-width: 90%;
            }
            
            .chat-section {
                margin-bottom: 60px;
            }
            
            /* 移动端音频按钮样式 */
            .audio-toggle-btn {
                display: inline-block !important;
                visibility: visible !important;
                opacity: 1 !important;
                font-size: 14px !important;
                margin-left: 5px;
                padding: 2px 5px;
            }
        }
