
/* 全局样式重置（仅保留核心） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* linear-gradient(rgba(240, 242, 245, 0.9), rgba(240, 242, 245, 0.85)),  */

/* 页面基础布局 */
body {
    font-family: 'Arial', sans-serif;
    background: 
                url(./sqback.png) no-repeat center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.8s ease-in-out;
}

/* 页面标题 */
h1 {
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    font-size: clamp(1.8em, 4vw, 2.8em);
    text-shadow: 0 3px 6px rgba(0,0,0,0.1);
    font-weight: 700;
    animation: slideDown 0.6s ease-out;
}

/* 右侧按钮容器 */
.button-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

/* 双按钮组容器 */
.button-group {
    display: flex;
    gap: 5%;
    width: calc(22.5% * 2 + 5%);
    margin: 0 auto;
}

/* 按钮基础样式（统一所有按钮） */
.jump-button {
    position: relative;
    padding: 14px 18%;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden; /* 隐藏波纹溢出 */
    cursor: pointer;
}

/* 双按钮组内的按钮 */
.button-group .jump-button {
    width: 40%;
    padding: 13px 2%;
}

/* 颜色主题（统一管理） */
.jump-button.blue { background-color: #3b82f6; }
.jump-button.green { background-color: #10b981; }
.jump-button.orange { background-color: #f59e0b; }
.jump-button.yellow {background-color: #fcd34d;}
.jump-button.red { background-color: #ef4444; }
.jump-button.purple { background-color: #8b5cf6; }
.jump-button.fen { background-color: #f65cb6; }

/* 核心交互特效 */
.jump-button:hover {
    transform: scale(1.05); /* 弹性放大 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    filter: brightness(1.1); /* 提亮颜色 */
}

.jump-button:active {
    transform: scale(0.95); /* 按压缩小 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    filter: brightness(0.9); /* 变暗反馈 */
}

/* 点击波纹特效（新增） */
.jump-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.jump-button:active::after {
    width: 300px;
    height: 300px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .button-container {
        position: fixed;
        width: 100%;
        height: auto;
        bottom: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px 8px;
        background-color: rgba(255,255,255,0.98);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        animation: fadeInUp 0.6s ease-out;
    }

    .jump-button {
        padding: 10px 14px;
        font-size: 13px;
        flex: 1;
        min-width: 80px;
    }

    .button-group {
        width: 100%;
        gap: 8px;
    }

    .button-group .jump-button {
        width: calc((100% - 8px) / 2);
        padding: 10px 1%;
    }

    h1 {
        margin-bottom: 20px;
        font-size: clamp(1.5em, 5vw, 2.2em);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    body { padding: 10px; }
    .button-container { gap: 6px; padding: 8px 6px; }
    .jump-button { padding: 8px 10px; font-size: 12px; }
}

/* 动画关键帧 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
