/* 统一按钮样式 */
.button, #okBtn, #cancelBtn, .insiders-button {
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white; /* 确保文字颜色为白色，增加可见性 */
    display: inline-block; /* 确保按钮正确显示 */
}

.button:hover, #okBtn:hover, #cancelBtn:hover, .insiders-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 修改背景为浅色渐变 */
body {
    background: linear-gradient(-45deg, #f3f9ff, #e6f4ff, #d9efff, #cceaff);
    background-size: 600% 600%;
    animation: gradientBG 15s ease infinite;
}

/* 新增容器样式 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 新增副标题样式 */
.subtitle {
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  margin-top: 10px;
  opacity: 0.8;
}

/* 新增版本框样式 */
.version-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* 新增Insiders容器样式 */
.insiders-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 新增Insiders容器悬停效果 */
.insiders-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 新增信息框样式 */
.info-box {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 18px;
  margin: 24px 0;
  color: rgba(255,255,255,0.7);
}

/* 改进版本链接样式 */
.version-box a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.version-box a:hover {
    background-color: #007bff; /* 修改为较浅的蓝色 */
    color: white;
}

.version {
  font-weight: bold;
  font-size: 1.1em;
}

.platform {
  font-size: 0.9em;
  opacity: 0.8;
}

/* 改进按钮组样式 */
.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* 添加Insiders按钮样式 */
.insiders-button {
  background-color: #007BFF;
  color: white;
}

.insiders-button:hover {
  background-color: #0056b3;
}

/* 改进确认按钮样式 */
#okBtn {
  background-color: #28a745; /* 保持绿色主色 */
}

#okBtn:hover {
  background-color: #218838;
}

/* 改进取消按钮样式 */
#cancelBtn {
  background-color: #6c757d; /* 保持灰色主色 */
}

#cancelBtn:hover {
  background-color: #5a6268;
}

/* 设置页面背景颜色和字体 */
body {
    background: linear-gradient(-45deg, #00ff99, #00ccff, #6633ff, #cc00ff); /* 修改为极光效果的颜色 */
    background-size: 600% 600%; /* 增大背景尺寸，使渐变更平滑 */
    animation: gradientBG 15s ease infinite; /* 删除 slideUp 动画 */
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 确保背景延伸到页面底部 */
}

/* 背景动态效果 */
@keyframes gradientBG {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* 添加文字由模糊到清晰的动态效果 */
@keyframes fadeInText {
    from {
        opacity: 0;
        filter: blur(5px); /* 初始模糊效果 */
    }
    to {
        opacity: 1;
        filter: blur(0); /* 最终清晰效果 */
    }
}

/* 设置标题样式 */
h1 {
    text-align: center;
    color: #fff;
    margin-top: 20px;
    font-size: 2.5em;
    animation: fadeInText 2s ease-in-out, float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

/* 新增发光效果 */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

/* 设置段落样式 */
p {
    text-align: center;
    font-size: 1.2em;
    margin: 10px 0;
    color: rgba(34, 87, 177, 0.84);
    animation: fadeInText 2s ease-in-out; /* 添加文字动态效果 */
}

/* 设置列表样式 */
ul {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    width: 50%;
    text-align: center;
}

/* 设置列表项样式 */
li {
    margin: 10px 0;
}

/* 设置链接样式 */
a {
    text-decoration: none;
    color: #007BFF;
    font-size: 1.1em;
    padding: 10px 15px;
    border: 1px solid #007BFF;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;/* 添加这一行，使按钮不重叠 */
    background-color: rgba(255, 255, 255, 0.8);
    animation: fadeInText 2s ease-in-out; /* 添加文字动态效果 */
}

/* 设置链接悬停效果 */
a:hover {
    background-color: #007BFF;
    color: white;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 遮罩层样式 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

/* 确认框样式 */
#confirmBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease-in-out;
}

/* 确认框淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 确认框段落样式 */
#confirmBox p {
    color: rgba(34, 87, 177, 0.84);
    margin-bottom: 20px;
    animation: none; /* 确保没有动画 */
}

/* 取消和确认按钮样式 */
#cancelBtn, #okBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px; /* 修改原5px为8px */
    cursor: pointer;
    margin: 0 10px;
    animation: fadeInText 1s ease-in-out; /* 添加模糊到清晰的动画 */
}

#cancelBtn {
    background-color: #ccc;
    color: #333;
}

#okBtn {
    background-color: #007BFF;
    color: white;
}

/* 取消和确认按钮悬停效果 */
#cancelBtn:hover {
    background-color: #bbb;
}

#okBtn:hover {
    background-color: #0056b3;
}

/* 新增 GPL3 协议内容框样式 */
.gpl3-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    line-height: 1.6;
}

/* 新增的 insiders 框样式 */
.insiders-box {
    background-color: rgba(255, 255, 255, 0.1); /* 修改透明度与available builds一致 */
    border-radius: 20px;
    padding: 25px;
    margin: 20px auto;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 改进Insiders按钮样式 */
.insiders-button {
  border-radius: 8px;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,123,255,0.3);
  }
}

/* 新增 No available builds 样式 */
#builds-list li, #old-builds-list li {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#builds-list li:hover, #old-builds-list li:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 新增浮动动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 同步修改确认/取消按钮圆角 */
#cancelBtn, #okBtn {
    border-radius: 8px; /* 修改原5px为8px */
}

/* 同步修改版本下载链接圆角 */
.version-box a {
    border-radius: 8px; /* 新增统一圆角 */
}
.insiders-box a {
    border-radius: 8px; /* 新增统一圆角 */
}
/* 同步Insiders按钮圆角 */
.insiders-button {
    border-radius: 8px; /* 修改原5px为8px */
    &:hover {
        border-radius: 8px; /* 同步悬停状态圆角 */
    }
}
