/* 基础样式 */
.chat-container {
    position: fixed;
    width: 1000px;
    height: 800px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chat-header {
    background: #4e83fd;
    color: #fff;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-title {
    font-size: 16px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.close-btn:hover {
    color: #ddd;
}

.chat-iframe {
    width: 90%;
    height: calc(90% - 80px); /* 减去头部高度 */
    border: none;
}

/* 平板和移动端适配 (≤1024px) */
@media (max-width: 1024px) {
    .chat-container {
        width: 100%;
        height: 90%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        box-shadow: none;
    }

    .chat-header {
        padding: 8px;
    }

    .chat-title {
        font-size: 14px;
    }

    .close-btn {
        font-size: 12px;
    }
}