/* basic styles */
html {
    font-size: 100%;
    line-height: 1.5rem;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    height: 100%;
}

body {
    margin: 0 auto;
    padding: 0;
    min-height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

img, video {
    width: 100%;
    height: auto;
    display: block;
}


/* Homepage Hero */
.hero-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-gap: 0;
    align-content: center;
    justify-content: center;
    align-items: start;
    height: 100%;
}

.hero-image-box {
    height: 100vh;
    max-width: 100%;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.hero-image-box::after {
    content: "";
    background-color: rgba(252, 210, 172, 0.4);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


.hero-img, .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video {
    background-color: #000;
    background-image: url("../img/video-snap.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.hero-text-box {
    grid-row: 1 / -1;
    grid-column: 1 / -1;
    align-self: center;
    padding: 1rem;
    z-index: 10;
    text-align: center;
}

.hero-heading {
    font-size: 1.5rem;
    letter-spacing: 0.05rem;
    font-weight: bold;
    text-transform: uppercase;
    color: rgb(173, 44, 44);
}

.hero-text {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: rgb(173, 44, 44);
}

.hero-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;  /* 减少水平内边距以适应长文本 */
    background: none;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 5px;
    margin-top: 2rem;
    white-space: normal;   /* 允许文字换行 */
    min-width: 280px;      /* 减小最小宽度 */
    max-width: 100%;       /* 添加最大宽度限制 */
    word-break: keep-all;  /* 保持词完整 */
    text-align: center;
    line-height: 1.4;
}

.hero-button:hover {
    transform: scale(0.95);
}

.hero-button:active {
    background: rgba(241, 51, 76, 0.3);
}

/* Footer Nav Extra Styles */

.footer {
    text-align: center;
    font-size: 1rem;
    padding: 0.2rem;
}

/* Add Media Queries for large screen */

@media (min-width:600px) {
    .hero-heading {
        font-size: 4rem;
        line-height: 4rem;
    }
    .hero-text-box {
        padding: 2rem;
    }
    .hero-text {
        font-size: 2rem;
        line-height: 2rem;
    }
    .hero-button {
        font-size: 1.5rem;
        min-width: 380px;
        padding: 1rem 2rem;
    }
}
