/* 轮播图所在 section 容器样式，可按需调整样式 */
.carousel-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 轮播图容器样式 */
.carousel {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 第一张轮播图样式 */
.carousel > img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* 第二张轮播图容器样式 */
.carousel-slide {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* 第二张轮播图背景图片样式 */
.slide-bg {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

/* logo 样式 */
.overlay-logo {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: auto;
    z-index: 3;
}

/* 活动状态样式 */
.carousel > img.active,
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 重置基础样式 */
body, main {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 导航栏固定定位 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 确保导航栏显示在其他内容上层 */
    background-color: pxrgba(0, 0, 0,1); /* 半透明黑色背景 */
    padding: 10px 0; /* 适当的内边距 */
}

/* 为了防止内容被固定导航栏遮挡，给 main 添加上边距 */
main {
    padding-top: 5%; /* 根据导航栏高度调整 */
}

/* 所有导航项去除下划线 */
nav ul li a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 18px;
}

/* 第一个导航项（黑神话：悟空）保持红色 */
nav ul li:first-child a {
    color: #b70707;
    text-decoration: none;
    font-size: 20px;
}

/* 其他导航项的悬停效果（亮白色） */
nav ul li:not(:first-child) a:hover {
    color: #FFFFFF;  /* 纯白色 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
    text-decoration: none;
}

/* 黑神话悟空的悬停效果保持不变 */
nav ul li:first-child a:hover {
    color: #ffffff;
}

/* 第一张轮播图容器 */
.first-slide {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.first-slide img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* 第二张轮播图容器 */
.carousel-slide {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* 活动状态 */
.first-slide.active,
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 轮播图文字内容容器 */
.carousel-content {
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.carousel-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.carousel-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 10px 40px;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 按钮悬停效果 */
.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 第二个 section 的内容样式 */
.a-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.a-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.a-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* 按钮样式可以复用之前的 cta-button 类 */
.a-content .cta-button {
    display: inline-block;
    padding: 10px 40px;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.a-content .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 确保父容器有正确的定位 */
.a {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.a img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* 网格部分的容器样式 */
.grid-section {
    width: 100vw;
    overflow: hidden;
}

.grid-container {
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* 每行的样式 */
.grid-row {
    width: 100vw;
    display: flex;
    font-size: 0; /* 消除图片之间的间隙 */
}

/* 图片样式 */
.grid-row img {
    width: 50vw; /* 每张图片占据视窗宽度的一半 */
    height: auto; /* 让高度根据图片比例自动调整 */
    object-fit: cover;
    display: block; /* 消除图片底部的间隙 */
}

/* Footer 样式 */
footer {
    width: 100vw;
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
}

/* Footer 内的链接样式 */
footer a {
    color: #FFFFFF;
    text-decoration: none;
}

/* Footer 内的链接悬停效果 */
footer a:hover {
    color: #CCCCCC;
}

/* Footer 内的段落样式 */
footer p {
    margin: 10px 0;
    font-size: 14px;
}

/* Footer 内的列表样式 */
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    display: inline-block;
    margin: 0 15px;
}

/* Footer 按钮容器 */
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 40px; /* 按钮之间的间距 */
    margin-bottom: 30px; /* 与下方内容的间距 */
}

/* Footer 按钮样式 */
.footer-button {
    padding: 12px 40px;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 按钮悬停效果 */
.footer-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 网格项内容容器 */
.grid-item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 背景图片样式 */
.grid-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* logo 样式 */
.grid-logo {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    width: 600px; /* 根据需要调整大小 */
    height: auto;
    z-index: 2;
}

/* 视频样式调整 */
.grid-item-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 鼠标悬停效果 */
.grid-item:hover .grid-bg,
.grid-item:hover .grid-logo {
    opacity: 0;
}

/* 网格项样式 */
.grid-item {
    width: 50vw;
    position: relative;
    overflow: hidden;
}

/* 图片基础样式 */
.grid-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

/* logo 覆盖样式 */
.grid-item .overlay-logo {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    z-index: 2;
}
.grid-item .overlay-logo2 {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: auto;
    z-index: 2;
}

.grid-item .overlay-logo3 {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: auto;
    z-index: 2;
}
/* 视频样式 */
.grid-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 鼠标悬停效果 */
.grid-item:hover .a {
    opacity: 0;
}
.grid-item:hover .overlay-logo .overlay-logo1 .overlay-logo2 {
    opacity: 1;
}

.grid-item:hover video {
    opacity: 1;
}


/* 文字容器样式 */
.grid-text {
    position: absolute;
    left: 50%;
    top: 60%;  /* 位于 logo 下方 */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;  /* 控制文字宽度 */
    padding: 20px;
}

/* 标题样式 */
.grid-text h2 {
    font-size: 40px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* 段落样式 */
.grid-text p {
    font-size: 30px;
    line-height: 1.8;
    margin: 0;
}



.grid-item1 {
    width: 50vw;
    position: relative;
    overflow: hidden;
}

/* 图片基础样式 */
.grid-item1 img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

/* 文字容器样式 */
.grid-text1 {
    position: absolute;
    left: 50%;
    top: 50%;  /* 位于 logo 下方 */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;  /* 控制文字宽度 */
    padding: 20px;
}

/* 标题样式 */
.grid-text1 h2 {
    font-size: 70px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* 按钮样式 */
/* 按钮样式可以复用之前的 cta-button 类 */
.btn1 {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 80%;  /* 位于 logo 下方 */
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    font-size: 20px;
    padding: 12px 40px;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* 按钮悬停效果 */
.btn1:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
