* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url('/img/1.webp'); /* 替换成你的背景图路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #000;
    display: flex; /* 使用 Flexbox */
    flex-direction: column; /* 垂直布局 */
    min-height: 100vh; /* 最小高度为 100vh */
}

header {
    text-align: center;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.1); /* 页头背景颜色 */
}

.logo-container {
    display: inline-block;
    text-align: center;
}

.hexagon {
    position: relative;
    width: 85px;
    height: 80px;
    background-color: #4CAF50;
    margin: 0 auto;
    transform: rotate(90deg);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.hexagon img {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    transform: rotate(-90deg); /* 图片保持水平显示 */
}

.site-title {
    font-size: 2em;
    margin-top: 20px;
}

/* 下载部分样式 */
.download-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 50%;
    max-width: 1000px;
    margin: 10px auto; /* 居中 */
    flex-grow: 1; /* 允许下载部分扩展以填充剩余空间 */
    gap: 10px; /* 设置格子之间的间距 */
}

.download-box {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-basis: 30%; /* 默认宽度为 30% */
    flex-grow: 1; /* 使格子在竖直方向上可扩展 */
    min-height: 100px; /* 设置最小高度 */
    max-height: 150px; /* 设置最大高度，允许一定范围内调整 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 20px; /* 上下10px，左右20px */
}

.download-box h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.download-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.download-link:hover {
    background-color: #45a049;
}

.download-box:hover {
    transform: translateY(-5px);
}

/* 弹出框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content ul li {
    margin: 10px 0;
}

.modal-content ul li a {
    text-decoration: none;
    color: #4CAF50;
    padding: 10px;
    display: inline-block;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-content ul li a:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* 网站尾部样式 */
footer {
    background-color: rgba(0, 0, 0, 0.5); /* 页脚背景颜色 */
    color: #fff; /* 字体颜色 */
    text-align: center;
    padding: 20px 0;
    width: 100%; /* 确保页脚全宽 */
    position: relative;
}

.footer-content {
    margin: 0; /* 确保内容没有额外的外边距 */
}

.footer-content p {
    margin: 10px 0;
}

.footer-content a {
    color: #4CAF50; /* 链接的颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #45a049; /* 鼠标悬停时链接的颜色 */
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.2em;
}

/* 自适应调整格子大小 */
@media (max-width: 1024px) {
    .download-box {
        flex-basis: 40%; /* 中等屏幕时，宽度为 45% */
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5em;
    }

    .download-container {
        flex-direction: column;
        align-items: center;
    }

    .download-box {
        width: 90%; /* 移动端每行1个格子 */
        margin-bottom: 10px;
        min-height: 50px; /* 移动端格子的最小高度 */
    }

    .footer-content {
        font-size: 0.9em;
    }

    .social-icons a {
        margin: 0 5px;
        font-size: 1em;
    }
}
