@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}





:root {
    --imperial-blue: #d28a39;
    --gold: #4f5f96;
}

@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

a {
    font-family: '鼎猎珠海体';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* 消除 li 元素的默认样式 */
ul li {
    list-style-type: none;
    /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
    margin: 0;
    padding: 0;
}

/* 其他样式保持不变 */

/* 添加固定导航栏的样式 */
.nav-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 确保导航栏在其他元素之上 */
}

@font-face {
    font-family: '峄山碑篆体';
    /* 自定义字体名称 */
    src: url('../字体/峄山碑篆体.ttf') format('truetype');
    /* 兼容旧浏览器 */
    font-weight: normal;
    /* 字体粗细（根据实际文件调整） */
    font-style: normal;
    /* 字体样式（斜体等） */
}

span {
    font-family: '峄山碑篆体';
    font-size: 32px;
    letter-spacing: 5px;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.nav-container {
    background-color: var(--imperial-blue);
    /* padding: 10px 20px; */
    background-color: #77201f;
    background-size: cover;
}

.nav-bar {
    font-family: '鼎猎珠海体';
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* 调整图片样式 */
.brand img {
    width: 70px;
    /* 根据实际情况调整宽度 */
    height: auto;
    /* 保持图片比例 */
}

.nav-menu {
    font-family: '鼎猎珠海体';
    display: flex;
    list-style: none;
    position: relative;
    transition: opacity 0.3s;
}

.nav-item {
    margin-left: 15px;
    position: relative;
}

.nav-link {
    font-family: '鼎猎珠海体';
    color: white;
    text-decoration: none;
    padding: 0px 30px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
}

.nav-link:hover {
    background-color: #77201f;
    border-radius: 4px;
}

.dropdown-menu {

    display: none;
    list-style: none;
    position: absolute;
    top: 124%;
    left: 0;
    background-color: #77201f;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(119, 181, 186, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-height: 40px;
}

.dropdown-menu.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    transition: 0.2s;
}

.dropdown-item a {
    color: #ffffff;
}

.dropdown-item a:active {
    color: #4f5f96;
}

.dropdown-item:hover {
    background-color: #77201f;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 32px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--imperial-blue);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #77201f;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu.visible {
        max-height: 500px;
    }

    .hamburger {
        display: block;
    }
}






body {
    background: url(../img/culture/Culture-背景.png);

}

@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

/* 消除 li 元素的默认样式 */
ul li {
    list-style-type: none;
    /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(0, 0, 0, .2);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

@font-face {
    font-family: '余思源颜黄体';
    src: url('../字体/余思源颜黄体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

.parallax {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* 撑起页面*/
    background-image: url(../img/culture/Culture-背景.png);
    background-repeat: no-repeat;
    width: 100%;
}

#text {
    font-family: '余思源颜黄体';
    position: absolute;
    font-size: 12em;
    font-weight: normal;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}

.parallax img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;

}

/* 以上为视觉差效果 */

.sec {
    width: 70%;
    margin: auto;
    position: relative;
    margin-top: 155px;
    background-color: #f3d7b7;
    /* padding: 120px; */
}

.sec h2 {
    font-family: '鼎猎珠海体';
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.sec h3 {
    font-family: '鼎猎珠海体';
    font-size: 1.5em;
    color: #000000;
    text-align: center;
    font-weight: 500;
}

.sec p {
    font-size: 1em;
    color: #000000;
    font-weight: 300;
    font-size: 18px;
    text-indent: 2em;
}

.title {
    background: url(../img/figure/背景2.png);
}

.title h1 {
    font-family: '鼎猎珠海体';
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    padding-top: 30px;

}

.title p {
    font-family: '鼎猎珠海体';
    font-size: 1em;
    color: #f9f9f9;
    font-weight: 300;
    font-size: 18px;
    line-height: 200%;
    width: 90%;
    margin: auto;
    padding-bottom: 50px;
}

/* 图片墙那一节 */
.title-1 {
    background: url("") no-repeat center center;
    background-size: cover;
    margin-top: 50px;
    /* margin-bottom: 100px; */
}

.title-1__pictures {
    /* width: 70%; */
    /* margin: auto; */
    display: grid;
    grid-template-columns: 6fr 3fr 2fr 2fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    /* padding: .5rem; */
    aspect-ratio: 3/1;
}

.title-1__pictures>div {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.title-1__pictures>div>img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    margin: auto;
    /* margin: 0 0 0 -30px; */
}

.title-1__xl {
    grid-row-start: 1;
    grid-row-end: 3;
}

.title-1__lg {
    grid-row-start: 1;
    grid-row-end: 3;
}

/* 滑动人物介绍 */
.container {
    display: flex;
    /* width: 70%; */
    margin: auto;
}

.textbox {
    width: 50%;
    padding: 50px;
    box-sizing: border-box;
    background-color: #fcfafa;
}

.textbox p {
    font-family: '鼎猎珠海体';
    margin-top: 10px;
}

.image-container {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.image-1 {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-image: url('../img/figure/开拓者.png');
    background-size: cover;
    background-position: center;
    transition: right 0.8s ease;
}

.image-1.show {
    right: 0;
}

.image-2 {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-image: url('../img/figure/大国工匠.png');
    background-size: cover;
    background-position: center;
    transition: left 0.8s ease;
}

.image-2.show {
    left: 0;
}

/* 相册容器样式 */
.carousel {
    width: 100%;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    width: 200%;
    animation: carousel-scroll 12s linear infinite;
}

.carousel-item {
    width: 25%;
    position: relative;
    padding: 0 8px 0 8px;
}

.carousel-item img {
    width: 100%;
    height: 300px;
    display: block;
}

.carousel-caption h4 {
    font-family: '鼎猎珠海体';
}

.carousel-caption {
    font-family: '鼎猎珠海体';
    position: absolute;
    bottom: 0;
    top: 50%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}


@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 滑入文字 */
.text-container {
    width: 100%;
    padding: 50px;
    box-sizing: border-box;
    text-align: center;
}

.text-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-item.show {
    font-family: '鼎猎珠海体';
    opacity: 1;
    transform: translateY(0);
}

.footer {
    background-image: url('../img/yuewu/footer2.png');
    /* 替换为实际的图片路径 */
    background-size: cover;
    /* 使背景图覆盖整个容器，保持比例且不变形 */
    background-position: center;
    /* 背景图居中显示 */
    background-repeat: no-repeat;
    /* 防止背景图重复 */
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_content {
    width: 100%;
}

.footer_title {
    margin-bottom: 10px;
}

.footer_data {
    list-style-type: none;
    padding: 0;
}

.footer_data li {
    margin-bottom: 5px;
}

.footer {
    background-image: url('../img/yuewu/footer2.png');
    /* 替换为实际的图片路径 */
    background-size: cover;
    /* 使背景图覆盖整个容器，保持比例且不变形 */
    background-position: center;
    /* 背景图居中显示 */
    background-repeat: no-repeat;
    /* 防止背景图重复 */
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_content {
    width: 100%;
}

.footer_title {
    font-family: '鼎猎珠海体';
    margin-bottom: 10px;
}

.footer_data {
    list-style-type: none;
    padding: 0;
}

.footer_data li {
    font-family: '鼎猎珠海体';
    margin-bottom: 5px;
}