
@charset "utf-8";
/* CSS Document */
/* AI助手按钮样式 */
        .ai-assistant-btn {
            position: fixed;
            bottom: 320px;
            left: 30px;
            width: 100px;
            height: 130px;
            
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
            border: none;
            outline: none;
        }
        .ai-assistant-btn a p { font-size: 16px; line-height: 20px; text-align: center;color: #333;}
        .ai-assistant-btn:hover {
            transform: scale(1.05);
        }
        
        .ai-assistant-btn:active {
            transform: scale(0.98);
        }
        
        .ai-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }
        
        .ai-text {
            font-size: 14px;
            font-weight: 500;
        }
        
        /* 弹窗样式 - 调整比例为4:7，更宽一些 */
        .modal-content {
            position: fixed;
            bottom: 140px; /* 按钮上方 */
            left: 40px; /* 不贴边 */
            width: 420px; /* 增加宽度 */
            height: 600px; /* 按4:7比例调整高度 */
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            z-index: 2000;
            transform: translateY(20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 99999;
        }
        
        .modal-content.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        .modal-header {
            padding: 15px;
            background: #3498db;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 16px;
            font-weight: 600;
        }
        
        button.maximize-btn {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            width: 30px !important;
            height: 30px !important;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
            position: relative;
        }
        
        button.maximize-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .modal-body {
            width: 100%;
            height: calc(100% - 50px);
            position: relative;
            padding: 0;
        }
        
        .modal-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        /* 加载动画样式 */
        .loading-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: white;
            z-index: 10;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        .loading-text {
            color: #666;
            font-size: 14px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-container.hidden {
            display: none;
        }
        
        /* 调试日志样式 */
        .debug-log {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.8);
            color: #0f0;
            padding: 10px;
            border-radius: 5px;
            font-family: monospace;
            font-size: 12px;
            max-width: 300px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 3000;
            display: none;
        }
        
        .debug-log.active {
            display: block;
        }
        
        .debug-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #333;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 3px;
            cursor: pointer;
            z-index: 3000;
            width: auto;
            height: auto;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .modal-content {
                width: 90vw;
                height: 157.5vw; /* 保持4:7比例 */
                max-height: 85vh;
                right: 5vw;
            }
            
            .debug-log {
                max-width: 200px;
            }
        }
        
        @media (max-width: 480px) {
            .modal-content {
                width: 95vw;
                height: 166.25vw; /* 保持4:7比例 */
                right: 2.5vw;
            }
        }