* {margin: 0;padding: 0;}
.feedback {
    width: 95px; /* 默认宽度 */
    position: fixed;
    right: 48px;
    bottom: -9999px;
    box-shadow: 0 20px 40px 8px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    border-radius: 10px 10px 0 0;
    z-index: 5;
    transition: width 0.3s ease; /* 添加过渡动画 */
    overflow: hidden; /* 防止内容溢出 */
}

/* 展开状态 */
.feedback.expanded {
    width: 372px; /* 展开后的宽度 */
}

.feedback .feedbackHeader {
    height: 40px;
    line-height: 40px;
    border-radius: 10px 10px 0 0;
    color: #ffffff;
    text-indent: 50px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏超出部分 */
    position: relative; /* 为关闭按钮定位提供参考 */
}
.feedback .eMailIco {background: url("../images/emailIco.png") 16px center no-repeat #252c33;background-size: 21px auto;margin: 0;}

.feedbackForm {
    padding: 16px 16px 40px 16px;
    background: white;
    width: 340px; /* 表单保持固定宽度 */
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease; /* 添加过渡效果 */
}

/* 展开时显示表单 */
.feedback.expanded .feedbackForm {
    opacity: 1;
}

.feedbackForm .tips {color: #222d38;padding-bottom: 20px;}
.feedbackForm .line {margin-bottom: 16px;}
.feedbackForm .line input, .feedbackForm .line textarea {
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: solid 1px #ccc;
    color: #222d38;
    display: block;
}

.feedbackForm textarea {
    resize: none;
    height: 78px;
    padding: 11px;
    line-height: 20px;
}

.feedbackForm .line input {
    height: 40px;
    line-height: 40px;
    padding: 0 11px;
}

.feedbackForm .btn {
    background: #18c139;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    height: 40px;
    line-height: 40px;
    color: #ffffff;
    cursor: pointer;
}

.feedback .closeBtn {
    background: url("../images/closeBtn.png") no-repeat;
    width: 28px;
    height: 28px;
    background-size: 28px 28px;
    position: absolute;
    right: 10px; /* 改为相对于右侧定位 */
    top: 6px;
    cursor: pointer;
    display: none;
    z-index: 10; /* 确保在最上层 */
}

/* 展开时显示关闭按钮 */
.feedback.expanded .closeBtn {
    display: block;
}