/* 新增容器样式 */
.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: 30px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 新增过渡属性 */
}
.insiders {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 新增过渡属性 */
}
.version-box:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 将transition放在非:hover状态 */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 修正Insiders容器悬停效果写法 */
.insiders:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 将transition放在非:hover状态 */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 新增信息框样式 */
.info-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

/* 改进版本链接样式 */
.version-box a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.insiders a {
    border-radius: 8px;
    padding: 16px;
    transition: all 0.25s ease;
}
.version-box a:hover {
    background-color: #0056b3; /* 修改为更深的蓝色 */
    color: white;
}
.insiders a:hover {
    background-color: #0056b3; /* 修改为更深的蓝色 */
    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;
}

/* 改进确认按钮样式 */
#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;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

/* 背景动态效果 */
@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(255, 255, 255, 0.8);
    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;
}

/* 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;
}

/* 隐藏类 */
.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;
}

/* 改进Insiders按钮样式 */
.insiders-button {
    border-radius: 8px;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInText 2s ease-in-out, pulse 1.5s infinite;
}

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

/* 新增浮动动画效果 */
@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 a {
    border-radius: 8px; /* 新增统一圆角 */
}
/* 修改Insiders按钮圆角 */
.insiders-button {
    border-radius: 8px; /* 修改原5px为8px */
    &:hover {
        border-radius: 8px; /* 同步悬停状态圆角 */
    }
}

/* 新增 No available builds 样式 */
#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 {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
