/* 默认深色色模式 */
:root {
    --title-color: #ffffff;
    --background-color: #191919;
    --text-color: #bcb9b6;
    --link-color: #FF6A2C;
    --link-hover-color: #ff9a3b;
    --yeQian-bg: #5d271675;
    --yeQian-line: #672C18;
    --button-bg: #ffffffc9;
    --button-text: #1a1a1a;
    --card-bg: #47474721;
    --line-color: #3f3f3f;
    --footer-bg: #0C0C0C;

    /* 层级变量 */
    --z-nav: 100;
    /* 导航栏最高 */
    --z-modal: 20;
    /* 弹窗比导航栏高 */
    --z-modal-content: 200;
    --z-controls: 120;
    /* 侧边按钮 */
}

/* 浅色模式 */
[data-theme="light"] {
    --title-color: #1d1d1d;
    --background-color: #f3f3f3;
    --text-color: #333;
    --link-color: #FF6A2C;
    --link-hover-color: #ff9a3b;
    --yeQian-bg: #ffffff;
    --yeQian-line: #d8d8d8;
    --button-bg: #333;
    --button-text: #ffffff;
    --card-bg: #ffffff;
    --line-color: #d8d8d8;
    --footer-bg: #ffffff;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* 弹框时禁止滚屏 */
.no-scroll {
    overflow: hidden;
}

body {
    overflow-x: hidden;
    color: var(--text-color);
    transition: var(--background-color) 0.3s, color 0.3s;
    line-height: 1.6;
    /* 行间距加大，阅读更舒适 */
    font-size: 1rem;
    /* 统一基础大小 */
}

body,
html {
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', 'PingFang SC', Arial, system-ui, sans-serif, swap;
    background-color: var(--background-color);
    scroll-padding-top: 76px;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 0 36px;
    margin: 0 auto;
}

p {
    font-size: 1.1rem;
    line-height: 1.5em;
    color: var(--text-color);
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--title-color);
    font-weight: 500;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background-color);
    /* border-bottom: 1px solid #3333336c; */
    /* box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.3); */
    z-index: var(--z-nav);
    backdrop-filter: saturate(5) blur(20px);
}

#headerTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: auto;
    display: flex;
    align-items: center;
    min-width: 150px;
    padding: 20px 0 10px;
}

.logo img {
    width: 54px;
    aspect-ratio: calc(1/1);
}

.logo>a {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 12px;
}

h1 {
    display: block;
    color: var(--title-color);
    font-family: 'ShiShangZhongHeiJianTi';
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.6rem;
    padding-bottom: 4px;
    margin: 0;
}

.logo-text p {
    font-size: 0.8rem;
    line-height: 0.8rem;
}

/* 导航链接 */

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links li {
    padding: 20px 0;
}

.nav-links a {
    position: relative;
    padding-bottom: 10px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.nav-links a::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--link-color);
    position: absolute;
    border-radius: 1px;
    bottom: 0;
    left: 50%;
    transition: all 0.3s ease-in-out;
}

/* 鼠标滑过状态加初始激活链接状态 */
/* header .nav-links a:hover, */
.nav-links a.active {
    color: var(--title-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.mobile-menu {
    display: none;
}

.mobile-menu div {
    background-color: var(--title-color);
    width: 28px;
    height: 3px;
    margin: 8px;
    transition: all 0.3s ease-in-out;
}

.language-selector {
    position: relative;
    padding: 4px 15px;
    border-radius: 8px;
    background-color: #ffffff00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-selector:hover {
    background-color: #ffffff1c;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.language-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 50px;
    height: 100%;
    text-align: center;
}

.language-toggle .iconfont {
    font-size: 24px;
}

.language-toggle .current-lang {
    width: 26px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--background-color);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    min-width: 120px;
}

.language-selector:hover .language-menu,
.language-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
    margin: 4px;
}

.language-option:first-child {
    margin-top: 8px;
}

.language-option:last-child {
    margin-bottom: 8px;
}

.language-option:hover {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.language-option.active {
    background-color: var(--link-color);
    color: white;
}

.headTop {
    height: 78px;
}

section {
    width: 100%;
    padding-bottom: 78px;
}

.titleTop {
    padding-top: 50px;
}

.title-com {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.title-en {
    font-size: 1.6rem;
    line-height: 1.8rem;
    font-weight: 400;
    color: var(--link-color);
    margin: 0;
}

.title-zh {
    font-size: 2.5rem;
    line-height: 2.8rem;
    font-weight: 500;
    color: var(--title-color);
    margin: 0;
}

.title-com hr {
    width: 100%;
    max-width: 1400px;
    border: none;
    height: 1px;
    background-color: hsla(0, 0%, 43%, 0.4);
    margin: 0 30px;
}

/* 页脚footer样式 */
footer {
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 10px 0;
    margin: 0;
}

/* 尾页居中内容 */
footer .container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 1400px;
}

/* 联系方式弹性容器 */
footer .contact-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0;
}


footer .contact-item-left {
    display: flex;
    justify-content: center;
    max-width: 450px;
}

/* 左侧联系方式整体icon盒子 */
footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: space-evenly;
    max-width: 768px;
}

footer ul li {
    display: flex;
    align-items: center;
    list-style: none;
    min-width: 220px;
}

footer li p {
    color: var(--text-color);
    padding-left: 10px;
    font-size: 1rem;
}

/* icon图标设定位置 */
footer li .iconfont {
    font-size: 1.6rem !important;
    color: var(--text-color)
}

/* 分割线 */
footer hr {
    width: 100%;
    border: none;
    height: 1px;
    background-color: #e2e2e2;
    margin-bottom: 18px;
}

footer .endText {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

footer .endText p {
    font-size: 1rem;
    color: var(--text-color);
}

#side-control {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    right: 10px;
    top: 80%;
    gap: 10px;
    z-index: var(--z-controls);
}

#backTop.show {
    transform: translateY(0);
    opacity: 1;
}

#backTop .icon-back {
    font-size: 1.6rem;
}

/* 音乐播放器按钮 */

#side-control .iconfont {
    font-size: 1.4rem;
    line-height: 40px;
    /* transition: all 0.2s; */
    color: var(--button-text);
}

#toggleButton.active .icon-moon {
    display: block;
}

#toggleButton.active .icon-sunny {
    display: block;
}

#side-control button {
    background-color: var(--button-bg);
}

#side-control button:hover {
    transform: scale(1.1);
    background-color: var(--link-color);
    /*  hover 放大 */
    transition: 0.2s;
    /* 快速反馈 */
}

#playButton,
#toggleButton,
#backTop {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 0;
    box-shadow: #00000013 0 2px 6px;
    z-index: var(--z-controls);
}

#playButton:hover,
#toggleButton:hover,
#backTop:hover {
    box-shadow: #33333367 0 2px 6px;
    transition: all 0.3s ease-in-out;
}

/* 播放按钮图标样式 */
#playButton .iconfont {
    font-size: 20px;
    color: var(--button-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#playButton .icon-stop {
    display: none;
}

#backTop {
    bottom: 20px;
    transform: translateY(70px);
    opacity: 0;
    /*初始隐藏*/
    transition: all 0.3s ease-in-out;
}


/* 当页面窗口屏幕尺寸适配小于900px情况下执行样式 */
@media (max-width: 900px) {
    header {
        box-shadow: none;
    }

    section {
        padding-bottom: 50px;
    }

    .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .headerTop {
        position: relative;
    }

    nav {
        order: 2
    }

    .language-selector {
        position: absolute;
        padding: 4px 10px;
        right: 70px;
        order: 1;
    }

    .nav-links {
        padding-top: 7vh;
        position: absolute;
        top: 76px;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        padding: 0;
        width: 90%;
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 1vh;
        transform: translateX(100%);
        opacity: 0;
    }

    .nav-links li a {
        font-size: 1.4rem;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu {
        display: block;
        z-index: 100;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-menu.active div {
        transition: 0.3s ease-in-out 0.1s;

    }

    .mobile-menu.active .top-line {
        transform: rotate(-45deg) translate(-7px, 8px);
    }

    .mobile-menu.active .middle-line {
        opacity: 0;
        transform: translateX(50%);
        transition: 0.3s ease-in-out;
    }

    .mobile-menu.active .bottom-line {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    /* 添加菜单项滑入动画 */
    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .title-en {
        font-size: 1.4rem;
        line-height: 1.6rem;
    }

    .title-zh {
        font-size: 2rem;
        line-height: 2rem;
    }

    footer ul {
        padding-left: 0;
    }

    footer .endText p {
        font-size: 0.8rem;
    }
}

/* 当页面窗口屏幕尺寸适配小于576px-767px 情况下执行样式 */
@media (max-width: 768px) {
    .modal-content {
        width: 80vw;
        /* 手机端宽度接近视口边缘 */
        max-width: 80vw;
        max-height: 90vh;
        /* 高度也接近视口边缘 */
    }

    #modal-video {
        width: 100%;
        max-height: 90vh;
        /* 与容器一致 */
    }

    .video-close {
        font-size: 40px;
        /* 手机端关闭按钮稍小，适配小屏幕 */
        right: 20px;
    }

    footer ul li {
        padding-right: 0;
    }

    footer li p {
        font-size: 1rem;
        padding-left: 2px;
    }

    footer li .iconfont {
        font-size: 1.2rem !important;
    }

    footer .contact-item-left {
        max-width: 450px;
    }

}

/* 当页面窗口屏幕尺寸适配小于576px情况下执行样式 */
@media (max-width: 576px) {
    .logo {
        padding: 10px 0;
    }

    .logo img {
        width: 44px;
    }

    .logo>a {
        display: flex;
        align-items: center;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding-left: 12px;
    }

    h1 {
        font-weight: 400;
        font-size: 1.8rem;
        line-height: 1.8rem;
        padding-bottom: 0;
    }

    .nav-links {
        padding-top: 7vh;
        position: absolute;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 64px);
    }

    .logo-text p {
        display: none;
    }

    .right-sm {
        padding: 16px;
        width: 94vw;
        margin: 0 auto 10px;
    }

    .title-com {
        margin-bottom: 20px;
    }

    .title-zh {
        font-size: 2rem;
        line-height: 2.4rem;
    }


    footer .contact-info {
        flex-wrap: wrap;
    }

    .wx-qrcode {
        max-width: 100px;
        aspect-ratio: calc(1/1);
    }

    footer .contact-item-left {
        max-width: 220px;
    }

    footer .endText {
        gap: 2px;
        margin: 0;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 201;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    z-index: var(--z-modal-content);
    transition: transform 0.4s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#modal-video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.video-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #e0e0e0;
    font-size: 40px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    z-index: var(--z-modal);
}

.video-close:hover,
.video-close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: move;
    z-index: var(--z-modal);
    background: transparent;
    display: block;
}