* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
}
.customer-service-btn {
    position: fixed;
    right: 20px;
    bottom: 25%;
    width: 60px;
    height: 160px;
    background: linear-gradient(135deg, #2b85e4, #1a6cbf);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 83, 148, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}
.customer-service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(27, 83, 148, 0.3);
}
.customer-service-btn i {
    font-size: 28px;
    margin-bottom: 12px;
}
.customer-service-btn span {
    writing-mode: vertical-lr;
    letter-spacing: 4px;
    font-size: 16px;
    line-height: 1.6;
}
.chat-wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    min-height: 600px;
    max-height: 600px;
    height: 76vh;
    background-color: transparent;
    border-radius: 8px;
    overflow: visible;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform-origin: bottom right;
}
/*带side的样式为右边智能客服按钮弹窗样式*/
.chat-wrapper-side {
    position: fixed;
    right: 50%;
    bottom: 50%;
    transform: translate(-40%, 50%);
    width: 760px;
    min-height: 600px;
    max-height: 600px;
    height: 76vh;
    background-color: transparent;
    border-radius: 8px;
    overflow: visible;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform-origin: bottom right;
}
.chat-wrapper.hidden {
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.chat-wrapper-side.hidden {
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.chat-container-side {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.chat-header {
    background: #ffffff;
    color: #333;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    height: 40px;
    border-bottom: 1px solid #eaeaea;
}
.chat-header h3 {
    font-size: 16px;
    font-weight: 500;
}
.chat-header-controls {
    display: flex;
    gap: 12px;
}
.header-btn {
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
}
.header-btn:hover {
    color: #333;
}
.chat-iframe-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: calc(100% - 45px);
}
.chat-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden; /* 不显示滚动条 */
}

.close-icon {
    width: 12px;
    height: 12px;
    cursor: pointer;
}