.section {
    padding: 10px 0 0 0;
    text-align: center;
}
h2{
    font-size: 1.5rem;
}
h3{
    font-size: 1rem;
}
h4{
    font-size: 0.8rem;
}
h2,h3{
    color:#f5f0f0;

}
 p{
    line-height: 20px;
    color:#f0f6fc;
}
a {
    color: #6dd5ed; /* 浅蓝色 */
    text-decoration: none; /* 移除下划线 */
    transition: color 0.3s ease; /* 添加颜色过渡效果 */
}

a:hover {
    color: #2193b0; /* 鼠标悬停时的深蓝色 */
}
.card-container{
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scroll-padding: 10px;
    gap: 10px;
    padding: 5px 0;
}
.card {
    flex: 0 0 auto;
    text-align: center;
    /* 使用 rgba 设置半透明背景 */
    background: rgba(255, 255, 255, 0.1); /* 0.8 是透明度，可以调整 */
    /* 或者使用 backdrop-filter 实现磨砂玻璃效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari 兼容 */
    -ms-backdrop-filter: blur(10px); /* Edge 兼容性 */
    padding: 20px 10px 10px 5px;
    border-radius: 5px;
    width: 130px; /* 适合移动端的宽度 */
    text-align: center;
    margin:  10px 0;
    scroll-snap-align: start;
}
.card:hover {
    transform: translateY(-5px);
}
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    /* 使用 rgba 设置半透明背景 */
    background: rgba(255, 255, 255, 0.1); /* 0.8 是透明度，可以调整 */
    /* 或者使用 backdrop-filter 实现磨砂玻璃效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari 兼容 */
    -ms-backdrop-filter: blur(10px); /* Edge 兼容性 */
    padding: 20px 15px;
    box-sizing: border-box;
    border-radius: 8px;
    /* 更新阴影效果，使其更柔和 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* 添加过渡效果 */
    transition: all 0.3s ease;
}

/* 悬停效果（可选） */
.container:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(240, 237, 237, 0.15);
}

.project img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
.project h3 {
    font-size: 1em;
    color: #f5f0f0;
    margin: -2px 0;
}
.project p {
    font-size: 0.5em;
    color: #f0f6fc;
}
/* 自定义滚动条样式 */
.project-list::-webkit-scrollbar {
    height: 10px;
}
#project-list::-webkit-scrollbar-thumb {
    background: #f0f6fc;
    border-radius: 5px;
}
.project-list::-webkit-scrollbar-track {
    background: #9c9c9c;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .project-list {
        gap: 15px;
        padding: 15px 0;
    }
    
    .project-card {
        flex: 0 0 200px;
    }
}

/* 打赏 */
.support{
    margin: 2px 0;
}
.btn-font{
    margin-left: 8px;
}

/* 支付按钮样式 */
#payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease; /* Safari 兼容 */
    -moz-transition: all 0.3s ease; /* Firefox 兼容 */
    -o-transition: all 0.3s ease; /* Opera 兼容 */
    -ms-transition: all 0.3s ease; /* 旧版 Edge 兼容 */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    color: white;
}

button:first-child {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

button:last-child {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 赞助人 */
.sponsor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* 自定义滚动条样式 */
.sponsors-list::-webkit-scrollbar {
    height: 10px;
}
.sponsors-list::-webkit-scrollbar-thumb {
    background: #f0f6fc;
    border-radius: 5px;
}
.sponsors-list::-webkit-scrollbar-track {
    background: #9c9c9c;
}


/* 模态框样式 */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    /* 背景颜色，用于兼容性 */
    background-color: rgba(0,0,0,0.4); 
    /* 磨砂效果 */
    backdrop-filter: blur(8px);
}



/* 为旧版浏览器提供兼容性 */
@supports not (backdrop-filter: blur(8px)) {
    .modal {
        background-color: rgba(255, 255, 255, 0.8); /* 白色背景，添加半透明效果 */
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    text-align: center;
    /* 为了视觉效果，可以给对话框内容添加一些阴影 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 6px 20px rgba(0,0,0,0.1);
    /* 可以考虑给对话框内容添加一个轻微的磨砂效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#qrcode {
    width: 100%;
    max-width: 300px;
}

@media (min-width: 600px) {
    body {
      overflow: hidden;
    } 
  }

/* 添加过渡效果 */
body {
    background-color: #141010; /* 设置一个默认背景色 */
    transition: background-image 0.3s ease-in;
}

#qrcode {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    width: 100%;
    max-width: 300px;
}

/* 添加加载动画样式 */
.loading {
    position: relative;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.section-divider {
    width: 80%;
    margin: 2rem auto;
    border: none;
    border-top: 1px solid #e0e0e0;
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 600px) {
    body {
      overflow: hidden;
    } 
  }

