/*
  css3 By RC-XiangYuanHuLian
  Copyright RC-XiangYuanHuLian 2025
*/

/* ================ 字体定义 ================ */
@font-face {
    font-family: "AiDianFengYaHei-2";
    src: url("../font/AiDianFengYaHei-2.ttf");
}
@font-face {
    font-family: "PangMenZhengDaoXiXianTi-2";
    src: url("../font/PangMenZhengDaoXiXianTi-2.ttf");
}
@font-face {
    font-family: "AlimamaFangYuanTi.ttf";
    src: url("../font/AlimamaFangYuanTi.ttf");
}

/* ================ 全局基础样式 ================ */
* {
    font-family: "AlimamaFangYuanTi.ttf", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #F0F8FFFF;
    line-height: 1.5;
    color: #515755;
}

/* ================ 通用组件样式 ================ */
/* Icon组件 */
icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: inherit;
}

icon > img,
icon > svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 分隔线 */
hr {
    border: 0;
    height: 2px;
    width: 90%;
    margin: 1rem auto;
    background: transparent linear-gradient(to right, #cccccc00, #333333FF, #cccccc00);
}

/* 链接基础样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: all ease-in-out 0.2s;
}

/* ================ 导航栏样式 ================ */
.nav-container {
    position: sticky;
    box-sizing: unset !important;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    box-shadow: 1px 1px 15px 0 #1E1E1EFF;
    padding: 0.5rem 1rem;
    min-height: 60px;
}

/* 品牌/Logo区域 */
.nav-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    max-width: 150px;
}

.nav-brand img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

/* 导航链接区域 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: #515755;
    font-size: 1.2rem;
    padding: 0.5rem;
    white-space: nowrap;
    transition: all ease 0.3s;
}

.nav-link:hover {
    color: #000000;
}

/* 用户头像区域 */
.nav-user-area {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-avatar {
    display: flex;
    align-items: center;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: all ease-in-out 0.2s;
    border: 2px solid transparent;
}

.user-avatar img:hover {
    border-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #515755;
    transition: all 0.3s ease;
}

/* ================ 页脚样式 ================ */
.footer-div_links {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    background-color: #292929FF;
    color: #ffffff;
    transition: all ease 0.2s;
}

.footer-div_links-div_aLinks {
    margin: 0;
    padding: 15px 5%;
    width: 100%;
    border-bottom: 1px solid #FFFFFF19;
}

.footer-div_links-div_aLinks:last-child {
    border-bottom: none;
}

.footer-div_links-div_aLinks-p_title {
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-div_links-div_aLinks--aLink {
    margin: 12px 0;
}

.footer-div_links-div_aLinks--aLink a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: #ffffff;
    font-size: 1rem;
}

.footer-div_links-div_aLinks--aLink a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 5px;
    height: 1px;
    background: #ffffff;
    transition: all ease 0.5s;
}

.footer-div_links-div_aLinks--aLink a:hover,
.footer-div_links-div_aLinks--aLink a:focus {
    transform: scale(1.05);
    color: #00ffff;
}

.footer-div_links-div_aLinks--aLink a:hover::after,
.footer-div_links-div_aLinks--aLink a:focus::after {
    left: 0;
    right: 0;
}

.footer-bottom {
    background-color: #171717;
    padding: 15px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.footer-bottom-p_copyright {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom a {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: #ffffff;
}

.footer-bottom-div_info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* ================ 响应式设计 ================ */
@media (min-width: 768px) {
    /* 页脚平板/桌面布局 */
    .footer-div_links {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 2% 0;
    }

    .footer-div_links-div_aLinks {
        margin: 0 0 0 5%;
        padding: 0;
        width: auto;
        border-bottom: none;
    }

    .footer-div_links-div_aLinks-p_title {
        font-size: 140%;
    }

    .footer-div_links-div_aLinks--aLink {
        margin: 3px 0;
    }

    .footer-div_links-div_aLinks--aLink a {
        padding: 0 0 2px 0;
    }

    .footer-div_links-div_aLinks--aLink a::after {
        bottom: 0;
    }

    .footer-div_copyright {
        padding: 1%;
    }

}

@media (max-width: 768px) {
    /* 移动端导航菜单 */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 91px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 91px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgb(30 30 30 / 20%);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-link.at {
        background: #d3d3d3;
        color: #000000;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.5rem;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}