/** 重置 **/
@font-face {
    font-family: 'Noto Sans SC';
    /* 给字体起个名字 */
    src: url('/font/NotoSans/NotoSansSC-Regular.otf') format('otf');
}

* {
    margin: 0%;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans SC", sans-serif;
    user-select: none;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/** 导航栏 **/
nav {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    /* 导航栏位于页面其他内容上，请确认页面内容高度与导航栏同步！padding-top=60px */
}

nav img {
    width: 120px;
    height: 50px;
    margin-left: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: absolute;
    left: 50px;
    margin-left: 120px;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

nav div {
    display: flex;
    align-items: center;
}

nav div a {
    text-decoration: none;
    color: #fff;
    margin-left: 20px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
}

nav ul li a:hover {
    color: skyblue;
}


/** 标题 **/
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.top-section {
    margin-bottom: 20px;
    /* 在顶部区域和描述之间添加一些间距 */
    font-size: 35px;
}

h1 {
    animation: fade-in-down 1s both;
    -webkit-animation: fade-in-down 1s both;
    mix-blend-mode: screen;
    font-family: "Noto Sans SC", sans-serif;
}

h1:hover {
    animation: pageTitleText 2s infinite;
    -webkit-animation: pageTitleText 1s infinite;

}


@keyframes pageTitleText {

    0% {
        text-shadow: 4px 0 0 tomato;
    }

    10% {
        text-shadow: -4px -4px 0 gold;
    }

    20% {
        text-shadow: 4px 0 0 turquoise;
    }

    30% {
        text-shadow: 4px 0 0 lime;
    }

    40% {
        text-shadow: 4px 4px 0 tomato;
    }

    50% {
        text-shadow: 0 -4px 0 gold;
    }

    60% {
        text-shadow: 0 4px 0 turquoise;
    }

    70% {
        text-shadow: 4px 0 0 lime;
    }

    80% {
        text-shadow: 4px -8px 0 tomato;
    }

    90% {
        text-shadow: 4px 4px 0 gold;
    }

    100% {
        text-shadow: 4px 0 0 turquoise;
    }
}

.description {
    font-size: 15px;
    /* 可以根据需要调整字体大小 */
    line-height: 1.5;
    /* 增加行高，提高可读性 */
}

.description h2 {
    font-weight: normal;
}

/** 弹窗遮罩 **/
#mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 更深的透明遮罩层 */
    z-index: 1000;
    backdrop-filter: blur(5px);
    /* 模糊背景，提升质感 */
}

/** 弹窗主体 **/
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    /* 渐变背景 */
    border-radius: 15px;
    /* 圆角效果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* 投影效果 */
    padding: 30px;
    width: 90%;
    max-width: 600px;
    /* 限制最大宽度 */
    z-index: 1001;
    animation: fadeIn 0.5s ease-in-out;
    /* 弹窗淡入效果 */
}

/** 标题样式 **/
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.popup-header h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.close-button {
    font-size: 1.2em;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #333;
}

/** 正文内容样式 **/
.popup-content p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.popup-content .highlight {
    color: #333;
    font-weight: bold;
}

.highlight-link {
    color: #007bff;
    font-weight: bold;
}

.highlight-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.edit-time {
    color: #999;
}

.Furina {
    color: skyblue;
    font-family: '站酷文艺体';
    font-size: 160%;
}

.Furina:hover {
    color: deepskyblue;
}

/** 团队信息 **/
.team {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team h4 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.team p {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
}

.member {
    font-weight: bold;
    color: #007bff;
}

.member:hover {
    text-decoration: underline;
    color: #0056b3;
}

/** 弹窗页脚样式 **/
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

#countdown {
    font-size: 0.9em;
    color: #777;
}

#closePopup {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: absolute;
    right: 30px;
    bottom: 20px;
}

#closePopup:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

#closePopup:hover:enabled {
    background-color: #0056b3;
}

/** 弹窗淡入动画 **/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/** 横幅 **/
.banner {
    width: 100%;
    height: 50px;
    background-color: lightyellow;
    padding: 10px 20px;
    line-height: 25px;
    font-size: 14px;
    color: darkorange;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* 固定在页面顶部 */
    top: 60px; /* 位于导航栏下方 */
    left: 0;
    z-index: 999; /* 确保横幅在内容之上，但在导航栏之下 */
}

.popup-link {
    font-weight: bold;
    color: darkorange;
    text-decoration: none;
    /* 可选：去掉下划线 */
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    color: gray;
    margin-right: 10px;
}

.banner span:first-child {
    flex: 1;
}

/**footer**/
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    /* 灰色背景 */
    color: white;
    /* 白色文字 */
    padding: 20px 0;
    z-index: 1000;
    /* 确保 footer 在其他内容之上 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    max-height: 50px;
    /* 调整logo大小 */
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin: 10px 0;
}

.footer-contact span {
    margin-right: 15px;
}

.footer-copyright {
    font-size: 0.9em;
}


/* 响应式设计 */

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        /* 保持这个值,确保菜单在导航栏下方 */
        left: 20px;
        /* 与导航栏的左内边距对齐 */
        width: auto;
        /* 改为自动宽度 */
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        padding: 10px;
        border-radius: 0 0 5px 5px;
        /* 可选:添加圆角 */
        z-index: 2;
    }

    .nav-menu li {
        margin: 5px 0;
        text-align: left;
        /* 左对齐文本 */
        white-space: nowrap;
        /* 防止文本换行 */
    }

    .nav-menu.active {
        display: flex;
    }

    .container {
        width: 90%;
    }

    .container {
        width: 95%;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    #popup {
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
}

h1 {
    align-items: center;
    justify-content: center;
    color: white;
    animation: ChangeColor 3s infinite;
}

@keyframes ChangeColor {
    0% {
        color: deepskyblue;
    }

    50% {
        color: aqua;
    }

    100% {
        color: deepskyblue;
    }
}