html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* 隐藏可能出现的滚动条 */
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 高度占满整个视口 */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心属性：确保图片填满容器且不变形 */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}
