/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 使用will-change提升性能 */
body {
    background-color: #f5f7fa;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    will-change: transform;
}

/* 使用transform代替位置属性提升性能 */
.login-container {
    display: flex;
    position: relative;
    width: 2500px;
    height: 2000px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 0;
    padding: 0;
    transform: translateZ(0);
}

/* 使用硬件加速 */
.login-image-area {
    flex: 1.2;
    background-color: #f5f7fa;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* 优化轮播图性能 */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    will-change: transform;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: opacity;
}

.slide-item.active {
    opacity: 1;
}

/* 优化图片加载 */
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    loading: lazy;
}

/* 轮播图关闭按钮样式 */
.slideshow-close-btn {
    position: absolute;
    top: 640px;
    left: calc(53.6% - 45px);
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: #153dff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.2;
    overflow: hidden;
}

/* 3秒后变成圆形X */
.slideshow-close-btn.compact {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
}

.slideshow-close-btn.compact::before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.slideshow-close-btn.compact .btn-text {
    opacity: 0;
    visibility: hidden;
}

/* 悬停时展开成关闭按钮 */
.slideshow-close-btn.compact:hover {
    width: 50px;
    height: 20px;
    border-radius: 20px;
    font-size: 10px;
    opacity: 1;
}

.slideshow-close-btn.compact:hover::before {
    opacity: 0;
    visibility: hidden;
}

.slideshow-close-btn.compact:hover .btn-text {
    opacity: 1;
    visibility: visible;
}

.slideshow-close-btn:hover {
    background: #153dff;
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* 按钮文字样式 */
.slideshow-close-btn .btn-text {
    transition: all 0.3s ease;
}

/* 轮播图隐藏状态 */
.login-image-area.hidden {
    display: none !important;
}

/* 登录区域居中样式 */
.login-form-area.centered {
    margin: 0 auto;
    flex: none;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 消息提示弹窗样式 */
.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    max-width: 300px;
}

.message-popup.center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    animation: fadeIn 0.3s ease-out forwards;
}

.message-popup.success {
    border-left: 4px solid #67c23a;
    color: #67c23a;
}

.message-popup.error {
    border-left: 4px solid #f56c6c;
    color: #f56c6c;
}

.message-popup.info {
    border-left: 4px solid #909399;
    color: #909399;
}

.message-content {
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 其他样式保持不变 */
/* ... existing code ... */