* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    margin-top: 0;
    padding: 20px;
    background-color: #f5f5f5;
    /* 添加背景图片 */
    background-image: url('../images/background.png'); /* 替换为您的图片文件名 */
    background-size: cover; /* 让背景图片覆盖整个元素 */
    background-position: center; /* 居中显示背景图片 */
    background-repeat: no-repeat; /* 不重复背景图片 */
    background-attachment: fixed; /* 背景图片固定，不随内容滚动 */

    /* 为底部按钮留出空间 */
    padding-bottom: 100px;
    
    /* 确保body作为相对定位的容器 */
    position: relative;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景，增强文本可读性 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    /* 确保容器在按钮下方 */
    position: relative;
    z-index: 1;
}

/* 下载按钮容器样式 */
.download-container {
    position: fixed;
    bottom: 30px; /* 设置距离底部的距离 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* 提高层级确保覆盖在所有内容之上 */
}

/* 下载按钮样式 - 黑白豹纹蕾丝效果 */
.download-btn {
    display: inline-block;
    /* 设置固定宽度和高度 */
    width: 200px;
    height: 60px;
    line-height: 60px;
    padding: 0;
    text-align: center;
    
    color: white;
    font-size: 18px;/* 从18px改为20px，增大文字 */
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;


    /* 黑黄混合字体效果 - 方案1：渐变文字 */
    background: linear-gradient(45deg, #FFD700 30%, #000000 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;

    
    /* 添加边框 - 清晰分界 */
    border: 1px solid rgba(255, 255, 255, 0.8); /* 半透明白色边框 */
    
    
    /* 确保按钮在容器之上 */
    position: relative;
    z-index: 1001;
    
    /* 防止与背景图片混淆 */
    opacity: 0.95;
    
    /* 阻止按钮获取焦点 */
    outline: none; /* 移除焦点轮廓线 */
    user-select: none; /* 阻止文本选择 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    
    /* 黑白豹纹蕾丝背景效果 */
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    
    /* 添加水波纹效果支持 */
    position: relative;
    overflow: hidden;
}

/* 为按钮文字添加专门的样式 */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgb(202, 62, 109) 5px, transparent 5px),
        radial-gradient(rgb(202, 62, 109) 5px, transparent 5px),
        radial-gradient(white 5px, transparent 5px),
        radial-gradient(white 5px, transparent 5px);
    background-size: 10px 10px;
    background-position: 0 0, 20px 20px, 40px 0, 20px 40px;
    z-index: -2;
    animation: movePattern 20s linear infinite;
}

/* 添加文字效果层 */
.download-btn span {
    position: relative;
    z-index: 2;/*设置层级为2，确保文字显示在背景图案之上（避免被遮挡）*/
    
    /* 黑黄混合字体效果 - 方案2：阴影叠加 */
    color: #ff000089; /* 黄色 */
    text-shadow: 
        1px 1px 0 #000,   /* 黑色阴影 */
        -1px -1px 0 #000, /* 黑色阴影 */
        0 0 5px #FFD700,  /* 黄色发光 */
        0 0 10px rgba(255, 215, 0, 0.5); /* 黄色光晕 */
    
    font-weight: 900;
    letter-spacing: 1px;
}





/* 黑白豹纹背景 */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgb(202, 62, 109) 5px, transparent 5px),
        radial-gradient(rgb(202, 62, 109) 5px, transparent 5px),
        radial-gradient(white 5px, transparent 5px),
        radial-gradient(white 5px, transparent 5px);
    background-size: 10px 10px;
    background-position: 0 0, 20px 20px, 40px 0, 20px 40px;
    z-index: -2;
    animation: movePattern 20s linear infinite;
}

/* 蕾丝效果覆盖层 */
.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0) 10px, rgba(255,255,255,0) 20px),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0) 10px, rgba(255,255,255,0) 20px);
    mix-blend-mode: overlay;
    opacity: 0.3;
    z-index: -1;
}

/* 按钮悬停效果 */
.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* 按钮点击效果 */
.download-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 定义按钮上下抖动动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-5px); /* 向上抖动5px */
    }
    20%, 40%, 60%, 80% {
        transform: translateY(5px); /* 向下抖动5px */
    }
}

/* 抖动类 - 用于点击时添加 */
.btn-bounce {
    animation: bounce 0.6s ease-in-out;
}

/* 背景图案移动动画 */
@keyframes movePattern {
    0% {
        background-position: 0 0, 20px 20px, 40px 0, 20px 40px;
    }
    100% {
        background-position: 40px 40px, 60px 60px, 80px 40px, 60px 80px;
    }
}

/* 悬停时加速背景图案移动 */
.download-btn:hover::before {
    animation-duration: 15s;
}

/* 水波纹效果样式 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* 水波纹扩散动画 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 使用相对单位设置字体大小，便于适配不同设备 */
h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}


/* 媒体查询 - 适配不同屏幕尺寸的手机 */
@media screen and (max-width: 768px) {
    /* 调整下载按钮大小 */
    .download-btn {
        width: 180px;
        height: 55px;
        line-height: 55px;
        font-size: 18px; /* 平板设备上的文字大小 */
    }
}

@media screen and (max-width: 480px) {
    /* 进一步调整下载按钮大小 */
    .download-btn {
        width: 160px;
        height: 50px;
        line-height: 50px;
        font-size: 18px; /* 手机设备上的文字大小 */
    }
}

@media screen and (max-width: 320px) {
    .download-btn {
        font-size: 16px; /* 小屏幕手机上的文字大小 */
    }
}