* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}







: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;
    }
}






@font-face {
    font-family: '鼎猎珠海体';
    src: url('../字体/鼎猎珠海体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

p {
    font-family: '鼎猎珠海体';
    font-size: 1.5em;
}

h2 {
    color: #000;
}

h3 {
    color: #000;
}

/* 消除 li 元素的默认样式 */
ul li {
    list-style-type: none;
    /* 如果需要去除列表项的内边距和外边距，可以添加以下两行 */
    margin: 0;
    padding: 0;
}

body {
    background-image: url(../img/culture-2/背景1.png);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    min-block-size: 100%;
    display: grid;
    place-content: center;
    /* 设置上下内边距为 30% 视口高度 */
    /* padding-block: 22dvh; */
    /* background: #f7d6ff; */
    margin: 50px 0;
    align-items: center;
    height: 100%;
    flex: 1;
}

.nav {
    width: 100%;
    display: flex;
    background-image: url(../img/culture-2/供养人图像-1.png);

}

.nav ul {
    display: flex;
    height: 100%;
    margin-top: 10px;
}

.nav ul li {
    width: 8%;
    height: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
    list-style: none;
}

.nav ul li a {
    padding: 2px;
    text-decoration: none;
    color: #081869;
    font-size: 22px;
    font-weight: bold;
}

.nav ul li a:hover {
    border: medium solid #081869;
}

@media (max-width: 1600px) {
    .nav ul li a {
        font-size: 18px;
    }
}

@media (max-width: 1300px) {
    .nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 1020px) {
    .nav ul li a {
        font-size: 10px;
    }
}

.nav ul:first-child {
    width: 20%;
}

.nav ul:first-child li {
    width: 20%;
    margin-left: 10%;
}

.nav ul:last-child {
    width: 80%;
    margin-left: -9%;
    justify-content: center;
}

@font-face {
    font-family: '余思源颜黄体';
    src: url('../字体/余思源颜黄体.ttf') format('truetype');
    font-weight: normal;
    /* 字体粗细 */
    font-style: normal;
    /* 字体样式（斜体） */
}

@keyframes slide-fade-in {
    from {
        opacity: 0;
        box-shadow: none;
        transform: scale(.8) translateY(15vh);
    }
}

.cards {
    display: grid;
    gap: 2rem;
    /* 自动排列 */
    grid-auto-flow: dense;
    grid-template-columns: repeat(4, 30ch);
}

.card h2 {
    font-family: '余思源颜黄体';
    font-weight: 400;
    font-size: 2.7rem;
    margin: 20px 0 20px 0;
}

.card h3 {
    font-family: '余思源颜黄体';
    font-weight: 400;
    font-size: 2rem;
    margin: 20px 0 0 20px;
    justify-content: center;
}

.card p {
    padding: 20px;
    font-size: 18px;
}

.card {
    animation: slide-fade-in both;
    /* 使用浏览器的视图时间线,允许动画根据视口的变化进行同步 */
    animation-timeline: view();
    /* 定义动画时间范围 */
    animation-range: contain 0% contain 50%;
    box-shadow: 0px 8px 20px #00000022;
    color: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


.card .box-1 {
    display: flex;
}

.card img {
    width: 100%;
    height: 100%;
}

.card:nth-of-type(4n) {
    grid-column: span 2;
}

.card:nth-of-type(5n) {
    grid-column: span 2;
}

.card:nth-of-type(7n) {
    grid-row: span 2;
}

.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;
    display: flex;
    justify-content: center;
    align-items: center;
}

.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;
}