/* 轮播图 */
.slide-box {
    position: relative;
    margin: 30px auto;
    height: 300px;
    max-width: 1200px;
    min-width: 700px;
}

.banner-box {
    position: relative;
    height: 100%;
    width: 100%;
}

.banner-item {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 90%;
    background-color: #000;
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s;
    z-index: 0;
}

.banner-item>img {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    transform: opacity 0.5s;
    object-fit: cover;
}

.banner-item.left {
    left: 0;
    transform: translateX(0);
    z-index: 50;
}

.banner-item.right {
    left: 100%;
    transform: translateX(-100%);
    z-index: 50;
}

.banner-item.middle {
    width: 550px;
    height: 100%;
    z-index: 100;
}

.banner-item.middle>img {
    opacity: 1;
}

.slide-left-btn,
.slide-right-btn {
    position: absolute;
    top: 50%;
    z-index: 200;
    width: 40px;
    height: 40px;
    font-weight: 900;
    color: #b4b4b4;
    border: none;
    background: none;
}

.slide-left-btn:hover,
.slide-right-btn:hover {
    color: #fff;
}

.slide-left-btn {
    left: 1%;
}

.slide-right-btn {
    right: 1%;
}

.pagination-box {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-box>span {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    margin: 0 4px;
    background-color: #b4b4b4;
}

.pagination-box>span.chose {
    background-color: #ff4444;
}

/* 启动魔方机器人按钮 */
.robot-button-container {
    text-align: center;
    margin-top: 110px;
    position: relative;
    z-index: 2;
}

.robot-btn {
    background: linear-gradient(45deg, #8e44ad, #77adff);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 2px 3px 22px rgba(142, 68, 173, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.robot-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
}

.robot-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.6),
        0 0 30px rgba(142, 68, 173, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.robot-btn:hover:before {
    left: 100%;
}

.robot-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 3px 10px rgba(142, 68, 173, 0.4);
}

/* 右侧区域 */
.main-content {
    display: flex;
    flex-direction: column;
    width: 1200px;
    height: calc(100vh - 100px);
    margin: 80px auto 0;
}

.left-box {
    width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-box .scene {
    transform: scale(1.8);
}


.bottom-content {
    display: flex;
    gap: 80px;
    margin-top: 60px;
}

/* 测试模块 */
.level-section,
.tool-panel {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 300px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.level-section h1,
.tool-panel h1 {
    color: #6a85b6;
    margin-bottom: 8px;
}

.level-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #666;
}

.level-section .record {
    width: 100%;
    margin: 6px 0;
    font-size: 18px;
    padding: 12px;
    color: #666;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.level-section .button-container {
    width: 100%;
    margin-top: 12px;
    display: flex;
    justify-content: space-evenly;
}

.level-section .button-container .btn {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    background: #3498DB;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    outline: none;
    letter-spacing: 0.5px;
}

.tool-panel {
    gap: 30px;
}

.tool-panel .btn {
    display: inline-block;
    width: 70%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* 登录模态框 */
/* --- 登录模态框样式美化 --- */
.modal {
    display: none;
    /* 确保初始状态为隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* 使用 Flexbox 居中 */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

/* 当模态框显示时应用的样式 */
.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    /* 使用更干净的白色背景 */
    color: #333;
    padding: 40px;
    /* 增加内边距 */
    border-radius: 16px;
    /* 更大的圆角 */
    width: 450px;
    /* 增大宽度 */
    max-width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    /* 更柔和的阴影 */
    border: 1px solid #e0e0e0;
    /* 更浅的边框 */
    opacity: 0;
    /* 初始透明 */
    transform: scale(0.95);
    /* 初始稍微缩小 */
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* 简化过渡动画 */
}

/* 模态框显示时的动画 */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-login-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    /* 调整位置 */
    right: 15px;
    /* 调整位置 */
    font-size: 32px;
    /* 稍大一点 */
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-login-modal:hover,
.close-login-modal:focus {
    color: #555;
    /* 加深悬停颜色 */
    text-decoration: none;
}

/* 模态框标题样式 */
.modal-content h2 {
    color: #2c3e50;
    /* 使用更深的颜色 */
    font-weight: 600;
    font-size: 28px;
    /* 增大标题字号 */
    margin-bottom: 25px;
    /* 增加标题下方间距 */
    text-align: center;
}

/* 调整模态框内的表单组和输入框样式 */
.modal-content .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    /* 增加组间距 */
    width: 100%;
}

.modal-content .form-group label {
    margin-bottom: 10px;
    /* 增加标签和输入框间距 */
    font-weight: 500;
    /* 中等粗细 */
    color: #34495e;
    /* 标签颜色 */
    text-align: left;
    font-size: 16px;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    padding: 14px 16px;
    /* 调整内边距 */
    border: 1px solid #bdc3c7;
    /* 输入框边框颜色 */
    border-radius: 8px;
    /* 输入框圆角 */
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    color: #000;
    /* 将输入框文字颜色改为黑色 */
    transition: all 0.3s ease;
}

/* 输入框获取焦点时的样式 */
.modal-content input[type="text"]:focus,
.modal-content input[type="password"]:focus {
    outline: none;
    border-color: #5f9ea0;
    /* 焦点颜色 */
    box-shadow: 0 0 0 3px rgba(95, 158, 160, 0.2);
    /* 焦点光晕 */
}

.modal-content input[type="submit"] {
    padding: 14px 20px;
    /* 增大按钮内边距 */
    cursor: pointer;
    background-color: #5f9ea0;
    color: white;
    border: none;
    border-radius: 8px;
    /* 按钮圆角 */
    margin-top: 15px;
    /* 调整上方间距 */
    width: 100%;
    font-weight: bold;
    font-size: 17px;
    /* 增大按钮字体 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content input[type="submit"]:hover {
    background-color: #4e8c8d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.modal-content input[type="submit"]:active {
    transform: scale(0.98);
    /* 点击时轻微缩小 */
}