body, html {
    margin: 0; /* 页面边距为0 */
    padding: 0; /* 页面内边距为0 */
    width: 100%; /* 页面宽度 */
    height: 100%; /* 页面高度 */
    font-family: Arial, sans-serif; /* 设置字体 */
    background: url('../image/name1.jpg') no-repeat center center; /* 设置背景图像不重复且居中显示 */
    background-size: cover; /* 背景图像覆盖整个页面 */
}

header {
    color: #fff; /* 设置文本颜色 */
    padding: 10px 20px; /* 设置上下内边距为10px，左右为20px */
    display: flex; /* 使用Flexbox布局（使页面元素自适应排列）  */
    justify-content: space-between; /* 主轴上的子元素间隔 */
    align-items: center; /* 子元素垂直居中 */
    /* background: rgba(0, 0, 0, 0);  */ /* 背景颜色 */
}

.logo {
    font-size: 24px; /* 设置字体大小 */
    font-weight: bold; /* 设置字体加粗 */
}

nav ul {
    list-style: none; /* 移除列表默认的样式 */
    display: flex; /* 使用Flexbox布局 */
    margin: 0; /* 移除外边距 */
    padding: 0; /* 移除内边距 */
}

nav ul li {
    margin: 0 15px; /* 设置每个列表项的左右外边距为15px */
}

nav ul li a {
    color: #fff; /* 设置链接文本颜色 */
    text-decoration: none; /* 移除链接的下划线 */
    font-size: 16px; /* 设置链接字体大小 */
}

main {
    display: flex; /* 使用Flexbox布局 */
    flex-direction: column; /* 设置子元素的排列方向为列 */
    align-items: center; /* 子元素居中对齐 */
    justify-content: center; /* 子元素居中对齐 */
    height: calc(110px); /* 设置main部分的高度，减去页眉和页脚的高度，可以根据实际情况调整 */
    color: #fff; /* 设置文本颜色为白色 */
    text-align: center; /* 文本居中对齐 */
    position: relative; /* 设置为相对定位，以便子元素使用绝对定位 */
}

h1 {
    font-size: 48px; /* 设置主标题字体大小 */
    margin-bottom: 0px; /* 设置主标题的下外边距 */
}

p {
    font-size: 24px; /* 设置段落字体大小 */
    margin-bottom: 40px; /* 设置段落的下外边距 */
}
.trailer {
     position: absolute;/* 设置trailer部分为绝对定位 */
     top: 60px;         /* 设置距离顶部距离 */
     left: 100px;       /* 设置距离左边距离*/
} 

.trailer video {
    display: block;
    width: 560px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

@media (max-width: 768px) {
    body,
    html {
        min-height: 100%;
        height: auto;
        background-position: 58% center;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: linear-gradient(to bottom, rgba(8, 24, 50, 0.18), rgba(8, 15, 38, 0.7));
    }

    main {
        min-height: calc(100dvh - 68px);
        height: auto;
        padding: 36px 16px;
    }

    #home {
        width: min(100%, 620px);
    }

    h1 {
        margin: 0 0 12px;
        font-size: clamp(2rem, 9vw, 3.25rem);
        line-height: 1.2;
        text-wrap: balance;
    }

    p {
        margin: 0 0 28px;
        font-size: clamp(1rem, 4.5vw, 1.3rem);
    }

    .trailer {
        position: static;
        width: 100%;
    }

    .trailer video {
        width: 100%;
        border-radius: 10px;
    }
}

/* .trailer iframe {
    width: 190%;         
    max-width: 560px;
    height: 315px;
    border: none;       没有边框
    
} */

/* footer {
    color: #fff;
    text-align: center;
    padding: 0px 0;
    background: rgba(0, 0, 0, 0); 
    width: 100%;
} */
