body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* 设置背景图片 */
    background-image: url('../images/862x422.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
    text-align: center;
}

.container {
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 定义开幕动画 */
@keyframes dialogOpen {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dialog-container {
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 40px;
    border-radius: 10px;
    max-width: 800px; 
    width: 90%; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
    /* 应用动画 */
    animation: dialogOpen 0.5s ease-out;
}

.dialog-container h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.dialog-container .game-intro {
    font-size: 1.2em;
    max-width: 100%;
    margin-bottom: 40px;
    text-align: left; /* 文本左对齐 */
    line-height: 1.6; /* 行高 */
}

.dialog-container .game-intro h2 {
    color: #ffd700; /* 金色标题 */
    font-size: 2.2em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 文字阴影 */
}

.dialog-container .game-intro h3 {
    color: #00ffcc; /* 青色小标题 */
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 文字阴影 */
}

.dialog-container .game-intro p {
    color: #ffffff; /* 白色文本 */
    margin-bottom: 15px;
}

.dialog-container .game-intro ul {
    list-style-type: none; /* 去除默认列表样式 */
    padding-left: 0;
}

.dialog-container .game-intro li {
    color: #ffffff;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.dialog-container .game-intro li::before {
    content: '▶️'; /* 自定义列表标记 */
    position: absolute;
    left: 0;
    top: 0;
}

.dialog-container .download-section {
    justify-content: center; /* 让下载按钮在 dialog 容器内水平居中 */
}

.download-section {
    display: flex;
    gap: 20px;
}

.download-btn {
    background-color: #ff9900;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #e68a00;
}

/* 调整 dialog 容器在小屏幕下的样式 */
@media (max-width: 768px) {
    .dialog-container {
        padding: 20px; /* 减小内边距 */
        max-width: 90%; /* 增大最大宽度 */
    }

    .dialog-container h1 {
        font-size: 2em; /* 减小标题字体大小 */
    }

    .dialog-container .game-intro {
        font-size: 1em; /* 减小描述字体大小 */
    }

    .download-section {
        flex-direction: column; /* 让下载按钮垂直排列 */
        align-items: center; /* 让按钮在交叉轴方向居中 */
        justify-content: center; /* 让按钮在主轴方向居中 */
    }

    .download-btn {
        width: 80%; 
        margin-bottom: 10px; 
        text-align: center; 
    }
}

.logo-bg {
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 20px; 
    left: 20px; 
    width: 376.8px; 
    height: 219px; 
    background-image: url('../images/logo.png');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center; 
    z-index: 200; /* 增大 z-index 值 */
}

.dialog-overlay {
    display: none;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 使用 flexbox 布局 */
    justify-content: center;
    /* 让内容在垂直方向上居中 */
    align-items: center; 
    z-index: 1001; 
}

.dialog-content {
    background-color: white; 
    border-radius: 10px;
    padding: 20px;
    max-width: 80%; 
    max-height: 80vh; 
    /* 重置顶部外边距 */
    margin-top: 0; 
    margin-left: auto;
    margin-right: auto;
    overflow-y: auto; 
}

.dialog-header {
    text-align: right;
}

.close-btn {
    /* 增大字体大小 */
    font-size: 36px; 
    /* 设置醒目的颜色 */
    color: #ff4444; 
    /* 增加字体粗细 */
    font-weight: bold; 
    cursor: pointer;
    /* 添加过渡效果 */
    transition: color 0.3s; 
}

.close-btn:hover {
    /* 悬停时改变颜色 */
    color: #cc0000; 
    /* 悬停时放大 */
    transform: scale(1.2); 
}

.dialog-body h2 {
    color: #333;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.dialog-body {
    /* 明确设置文本左对齐 */
    text-align: left; 
}

.dialog-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}
