/* 基础样式重置，适配移动端 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* 清除移动端点击高亮 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f8fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 页面主容器 */
.container {
    width: 100%;
    max-width: 480px; /* 限制移动端最大宽度，保证在大屏设备上也不会变形 */
    background-color: #ffffff;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
}

/* 图片容器 */
.image-container {
    width: 100%;
    overflow: hidden;
}

.top-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 按钮容器 */
.button-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* 让按钮区域自适应填充剩余空间 */
}

/* 呼吸效果按钮基础样式 */
.breathe-btn {
    display: inline-block;
    width: 85%;
    max-width: 300px;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border-radius: 30px;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    
    /* 绑定呼吸动画 */
    animation: breatheEffect 2s infinite ease-in-out;
    transition: transform 0.1s ease;
}

/* 定义呼吸动画（缩放与阴影交替变化） */
@keyframes breatheEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
}