/* 引入本地字体 */
@font-face {
    font-family: 'ChongqingBangbangti'; /* 自定义字体名称 */
    src: url('https://cdn.holytreasure.space/tff/chongqing-bangbangti.ttf') format('truetype'); /* 路径指向你的字体文件 */
}

/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif; /* 默认字体 */
    overflow: hidden; /* 隐藏滚动条 */
}

/* 导航栏字体设置 */
.navbar, .navbar .nav-links, .navbar .nav-links li, .navbar .nav-links a {
    font-family: 'ChongqingBangbangti', sans-serif; /* 导航栏使用自定义字体 */
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/blackground.jpg') no-repeat center center/cover;
    z-index: -1;
}

.logo img {
    width: auto; 
    height: 65px; 
    margin-left: 50px; /* 向右移动50px */
}

.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 35px;
    box-sizing: border-box; /* 确保内边距和边框包含在元素的宽度内 */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    box-sizing: border-box;
}

.nav-links li {
    text-align: center;
    width: auto; /* 根据内容自动调整宽度 */
}

.nav-links a {
    text-decoration: none;
    color: #414040;
    font-size: 1.5em;
    display: block;
    padding: 15px;
    box-sizing: border-box;
}
/* 弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 59, 59, 0.298);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffffa9;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: zoomIn 0.3s ease;
    font-family:'ChongqingBangbangti', sans-serif;/* 字体 */
}
.modal-p {
    font-size: 25px;
    text-indent: 2em;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* 提示窗样式 */
.notification {
    position: fixed;
    bottom: 20px;
    right: -600px; /* 初始位置在屏幕右侧之外 */
    background-color: #e1e1e1ad;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.5s ease-in-out;
}

.notification.active {
    right: 10px; /* 最终位置在屏幕右侧 */
}

.close-notification-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #b5b5b5; /* 文字颜色 */
    z-index: 1000; /* 确保在最上层 */
}
/* 移动端样式 */
@media(max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 97%;
        max-width: 100vw;
        background-color: rgba(255, 255, 255, 0.808);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        border-radius: 30px;
        overflow: hidden; /* 隐藏溢出内容 */
        position: absolute;
        top: 95px;
        left: 50%;
        transform: translateX(-50%) translateY(-0%); /* 初始状态向上偏移 */
        transition: 
            max-height 0.3s ease-in-out,
            transform 0.3s ease-in-out;
        max-height: 0; /* 初始高度为 0 */
        box-sizing: border-box;
    }

    .logo {
        margin-left: -50px;
    }

    .nav-links.active {
        max-height: calc(100vh - 120px); /* 展开时最大高度 */
        transform: translateX(-50%) translateY(0); /* 回到原始位置 */
    }

    .nav-links li {
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
}