body {
    background-color: #404040; /* 暗色背景 */
    color: #ffffff; /* 文字颜色为白色 */
    font-family: Arial, sans-serif;
    height: 100vh; /* 设置页面高度为视口高度 */
    margin: 0; /* 移除默认的页面边距 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.outer-container {
    width: 100vw; /* 设置为全屏宽度 */
    height: 100vh; /* 设置为全屏高度 */
    background-color: #2c2c2c; /* 大框背景色 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    flex-direction: column; /* 使内部元素垂直排列 */
}

.container {
    text-align: center; /* 文字居中 */
    width: 100%; /* 宽度占满父元素 */
    display: flex;
    flex-direction: column; /* 内部元素垂直排列 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.result-box {
    width: 500px; /* 设置输出框宽度 */
    height: 300px; /* 设置输出框高度 */
    border: 2px solid #6b6b6b; /* 白色边框 */
    border-radius: 10px; /* 圆角边框 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 20px; /* 下方留出空间给按钮 */
    font-size: 20px; /* 字体大小 */
    background-color: #353535; /* 输出框背景色 */
    overflow: hidden; /* 隐藏超出部分 */
    position: relative; /* 设置定位相对父元素 */
}

.result-box::after {
    content: ""; /* 添加一个伪元素 */
    position: absolute; /* 绝对定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左边对齐 */
    width: 100%; /* 宽度占满输出框 */
    height: 100%; /* 高度占满输出框 */
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.5), rgba(0,0,0,0)); /* 添加从上到下的渐变效果 */
    z-index: 1; /* 设置图层顺序 */
}

.random-button {
    padding: 10px 20px; /* 内边距设置 */
    font-size: 18px; /* 按钮字体大小 */
    color: #ffffff; /* 按钮文字颜色 */
    background-color: #555555; /* 按钮背景颜色 */
    border: none; /* 移除按钮边框 */
    border-radius: 5px; /* 按钮圆角 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
}

.random-button:hover {
    background-color: #0056b3; /* 鼠标悬停时按钮颜色变深 */
}
