/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Hero 全屏背景 */
.hero {
    height: 100vh;
    background: url('images/background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 半透明覆盖层 */
.hero .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 50px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
}

/* 文字样式 */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* 按钮样式 */
.hero .btn {
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #ff3300;
}

/* 响应式文字调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.5s;
}

.fade-in.delay-2 {
    animation-delay: 1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 背景轻微缩放动画 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    z-index: -1;
    animation: zoom 20s infinite alternate;
}

@keyframes zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}
/* 左上角 Logo */
.logo-top {
    position: absolute;
    top: 20px;
    /* 距离顶部 */
    left: 20px;
    /* 距离左边 */
    width: 120px;
    /* 控制宽度 */
    height: auto;
    /* 高度按比例自动缩放 */
    z-index: 10;
    /* 确保在背景上 */
}

/* 响应式 Logo */
@media (max-width: 768px) {
    .logo-top {
        width: 80px;
        top: 10px;
        left: 10px;
    }
}