* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background: url('../../背景.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

html {
    background: url('../../背景.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 100vw;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 顶部元素 */
.header {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.header-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮容器 */
.buttons-container {
    margin-bottom: 30px;
}

/* 四宫格按钮 */
.grid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* 居中按钮 */
.center-button {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* 按钮链接样式 */
.btn-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    transform: scale(1.05);
}

/* 按钮图片样式 */
.btn-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 按钮5特殊样式 */
.btn5-image {
    /* 按钮5尺寸较小，保持原尺寸 */
}

/* 底部小字 */
.footer {
    display: flex;
    justify-content: center;
}

.footer-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100vw;
    }
    
    .grid-buttons {
        gap: 15px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .buttons-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        max-width: 100vw;
    }
    
    .grid-buttons {
        gap: 10px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .btn-image {
        max-width: 100%;
        width: 100%;
    }
}
