/* 全局设置 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* 保证页面高度为 100% */
    background-color: #f1f1f1;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: flex-start; /* 顶部对齐 */
    overflow-y: auto; /* 允许垂直滚动 */
}

/* 页面内容区域 */
.content_wrapper {
    width: 100%; /* 页面内容宽度为100% */
    max-width: 600px; /* 最大宽度为600px，适应较大屏幕 */
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* 顶部间距 */
}

/* 按钮样式 */
.btn {
    display: block;
    width: 100%; /* 按钮宽度为100% */
    padding: 14px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-sizing: border-box; /* 让按钮宽度和内边距一致 */
}

.btn:hover {
    transform: scale(1.03);
}

/* 按钮颜色样式 */
.btn1 {
    background-color: #000000; /* 黑色背景 */
    color: white; /* 白色文字 */
}

.btn2 {
    background-color: #e74c3c; /* 红色背景 */
    color: white;
}

.btn3 {
    background-color: #3498db; /* 蓝色背景 */
    color: white;
}

.btn4 {
    background-color: #2ecc71; /* 绿色背景 */
    color: white;
}

.btn5 {
    background-color: #f1c40f; /* 黄色背景 */
    color: white;
}

.btn6 {
    background-color: #a3d39c; /* 淡绿色背景 */
    color: white;
}

.btn7 {
    background-color: #a7c9e9; /* 淡蓝色背景 */
    color: white;
}

/* 按钮的渐变色 */
.btn10 {
    background: linear-gradient(135deg, #d42323, #5c5cd6);
}

.btn11 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn12 {
    background: linear-gradient(135deg, #ffea2e, #5fe865);
}

.btn13 {
    background: linear-gradient(135deg, #ff7f31, #ffea2e);
}

.btn14 {
    background: linear-gradient(135deg, #23a6d5, #ff7f31);
}

.col {
    text-align: center;
    margin-top: 20px;
}

.col a {
    font-size: 16px;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.col a:hover {
    color: #0056b3;
}

/* 针对屏幕宽度小于 768px 进行适配 */
@media (max-width: 768px) {
    html, body {
        height: auto; /* 自适应高度 */
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;  /* 居中 */
        align-items: flex-start;  /* 顶部对齐 */
        overflow-y: scroll;  /* 允许垂直滚动 */
    }

    .content_wrapper {
        width: 95%;         /* 保证在手机端宽度自适应 */
        max-width: 100%;     /* 最大宽度设置为100% */
        padding: 10px;       /* 适当减少内边距 */
        box-sizing: border-box;
        margin-top: 20px;    /* 保证顶部间距不被压缩 */
        min-height: auto;    /* 内容区高度自动调整 */
    }

    .btn {
        width: 100%;        /* 按钮宽度填充父容器 */
        margin: 8px 0;      /* 减少按钮间的间距 */
    }
}

/* 针对屏幕宽度大于等于 769px 进行适配 */
@media (min-width: 769px) {
    html, body {
        align-items: flex-start; /* 顶部对齐 */
    }
}
