/* styles.css */

/* 全屏设置 */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

/* 背景图片容器 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1); /* 初始比例为1 */
    transition: opacity 1.5s ease, transform 8s ease; /* 平滑切换效果 */
    will-change: opacity, transform; /* 提升性能 */
}

.background img.active {
    opacity: 1;
    transform: scale(1.05); /* 慢慢放大到1.05倍 */
}

/* 内容容器样式 */
.container {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    z-index: 2;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

.button {
    background-color: #ff6347;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #e0533d;
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 0.8rem;
    }

    .button {
        font-size: 0.8rem;
        padding: 10px 20px;
    }

    .container {
        padding: 15px;
    }
}
