* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/*ado 黑体 std*/
@font-face {
    font-family: 'AdobeHeitiStd-Regular';
    src: url('/font/AdobeHeitiStd-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/*平方特粗*/
@font-face {
    font-family: 'PingFang Heavy';
    src: url('/font/PINGFANG HEAVY.TTF') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/*苹方常规*/
@font-face {
    font-family: 'PingFang Regular';
    src: url('/font/PINGFANG REGULAR.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*苹方细体*/
@font-face {
    font-family: 'PingFang Thin';
    src: url('/font/PPINGFANG THIN.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*苹方中等*/
@font-face {
    font-family: 'PingFang medium';
    src: url('/font/PINGFANG MEDIUM_0.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*苹方粗体*/
@font-face {
    font-family: 'PingFang Bold';
    src: url('/font/PINGFANG BOLD.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 头部导航栏 */
.header {
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    background: #e1e1e1; /* 背景颜色 */
    color: white;
    padding: 13px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: .7;
}

.footer {
    padding: 50px 0;
}

/* 中间主体（包含 logo 和导航） */
header .container, footer .container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer .container {
    justify-content: center;
}

/* Logo */
.logo {
    display: block;
    width: 80px;
    margin-left: 40px;
}

.logo img {
    width: 100%;
    height: auto;
}

/* 导航栏 */
.nav {
    list-style: none;
    display: flex;
    padding: 0;
}

.nav li {
    display: inline;
    padding: 0 10px;
}

.nav a {
    color: #4b4b4b;
    text-decoration: none;
    font-size: 22px;
    transition: 0.3s;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.nav a img {
    width: 23px;
    margin-right: 10px;
}

header .nav li:last-child {
    border-left: 1px solid #afafaf;
}

/*.nav a:hover, .nav a.active {*/
/*    background: rgba(255, 255, 255, 0.2);*/
/*    border-radius: 5px;*/
/*}*/

.header .language {
    position: absolute;
    right: 90px;
    top: -3px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.header .language.active {
    display: flex;
}

.header .language:hover {
    cursor: pointer;
    background: #6a6a6a;
}

.header .language .lg-nav {
    position: absolute;
    top: 50px;
    left: -10px;
    list-style: none;
    background: white;
    padding: 5px 0;
    border-radius: 5px;
}

.header .language .lg-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 20px;
    background: #fff;
    color: #333333;
}

.header .language .lg-nav li:hover, .header .language .lg-nav li.active {
    background: #cbcbcb;
}

.header .language .lg-nav img {
    width: 20px;
    margin-right: 5px;
}

/*向上三角形*/
.language .triangle-up {
    position: absolute;
    left: 10px;
    top: 40px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff; /* 你可以改变这个颜色 */
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 970px) {
    header .container {
        width: calc(100% - 50px);
        padding: 0 25px;
        justify-content: space-between;
    }

    header .logo {
        width: 50px;
        margin: 0;
    }

    /* 汉堡菜单样式 */
    header .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    header .hamburger span {
        width: 100%;
        height: 2px;
        background: #4b4b4b;
        transition: 0.3s;
    }

    /* 导航菜单移动端样式 */
    header .nav {
        position: fixed;
        top: 47px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 60px);
        background: #e1e1e1;
        flex-direction: column;
        transition: 0.3s;
        padding: 20px 0;
    }

    header .nav.active {
        right: 0;
    }

    header .nav li {
        padding: 15px 20px;
        border-bottom: 1px solid #d0d0d0;
    }

    header .nav a {
        font-size: 18px;
        padding: 10px;
        justify-content: flex-start;
    }

    header .nav a img {
        width: 20px;
    }

    /* 语言切换适配 */
    header .header .language {
        right: 20px;
        top: 15px;
    }

    /* 隐藏PC版语言项 */
    header .nav li:last-child {
        display: none;
    }

    /* 调整三角形位置 */
    header .language .triangle-up {
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 默认隐藏汉堡菜单 */
header .hamburger {
    display: none;
}

@media (max-width: 970px) {
    /* 移动端显示汉堡菜单 */
    header .hamburger {
        display: flex;
    }

    /* 隐藏PC导航 */
    header .nav {
        display: none;
    }

    /* 显示移动端导航 */
    header .nav.active {
        display: flex;
    }
}

/*尾部导航的适配*/
/* 小屏幕适配（768px - 991px） */
@media (max-width: 991px) {
    .footer {
        padding: 35px 0;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    footer .logo {
        margin-left: 0;
        width: 65px;
        order: -1; /* 将logo移到最前面 */
    }

    footer .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
    }

    footer .nav li {
        padding: 0 8px;
    }

    footer .nav a {
        font-size: 18px;
        padding: 5px 8px;
    }

    footer .nav a img {
        width: 18px;
        margin-right: 6px;
    }
}

/* 超小屏幕适配（<768px） */
@media (max-width: 767px) {
    .footer {
        padding: 25px 0;
    }

    .footer .container {
        gap: 20px;
    }

    footer .logo {
        width: 55px;
    }

    footer .nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    footer .nav li {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    footer .nav a {
        font-size: 16px;
        padding: 8px 0;
        justify-content: center;
        width: 100%;
        border-bottom: 1px solid rgba(75,75,75,0.2); /* 添加分隔线 */
    }

    footer .nav a img {
        width: 16px;
        margin-right: 5px;
    }

    /* 最后一项去掉下划线 */
    footer .nav li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 568px) {
    .header {
        padding: 0;
    }
}
