/* 引入自定义字体 */
@font-face {
    font-family: 'ABCNormal-Normal';
    src: url('../assets/fonts/ABCNormal-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ABCNormal-Bold';
    src: url('../assets/fonts/ABCNormal-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'FZLTH';
    src: url('../assets/fonts/FZLTH_GBK.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
html {
    scroll-behavior: smooth;
    touch-action: manipulation; /* 禁用双击放大 */
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'FZLTH', 'ABCNormal-Normal', Arial, sans-serif; */
    background-color: #F4F4F5;
    color: #000;
    text-align: center;
    user-select: none; /* 禁止文本选择 */
    -webkit-user-drag: none; /* 禁止图片拖拽 */
}

/* 父容器 */
.container{
    overflow: hidden;
}

/* 头部容器 */
.head-container {
    display: flex;
    position: fixed;
    align-items: center;
    width: -webkit-fill-available;
    padding-top: 8px;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    z-index: 999;
}

/* Logo样式 */
.logo{
    text-align: left; 
    font-size: 4vw; 
    z-index: 2000; 
    font-weight: bold;
    letter-spacing: normal;
}

/* 动效按钮样式 */
.animation-container {
    display: flex;
    align-items: center;
    padding-right: 5%;
}

.toggle-button {
    background: none;
    border: none;
    width: 32px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2000;
}

.toggle-icon {
    display: block;
    height: 2px;
    background-color: transparent;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s ease;
}

/* 默认状态：等号 */
.toggle-icon::before {
    transform: translateY(0) rotate(45deg)
}

.toggle-icon::after {
    transform: translateY(0) rotate(-45deg)
}

/* 点击后状态：X形 */
.toggle-button.active .toggle-icon {
    background-color: transparent;
}

.toggle-button.active .toggle-icon::before {
    transform: translateY(0) rotate(45deg);
}

.toggle-button.active .toggle-icon::after {
    transform: translateY(0) rotate(-45deg);
}

/* 导航部分 */
nav {
    display: flex;
    margin: auto 0;
    width: 100%;    /* 宽度100% */
    justify-content: space-between;  /* 元素靠向两边 */
}

.carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 5% 0;
    height: 63vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daohang{
    font-weight: 500;
    letter-spacing: normal;
}

/* PC端导航样式 */
@media (min-width: 1024px) {
    .head-container {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .logo {
        position: absolute;
        left: 1%;
        font-size: 28px;
        z-index: 2000;
    }
    
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
        z-index: 1000;
    }
    
    /* PC端导航 */
    .pc-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }
    
    .pc-nav .daohang {
        display: flex;
        flex-direction: row;
        gap: 25px;
        font-size: 1rem;
    }
    
    .pc-nav .daohang a {
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        color: #333;
    }
    
    .pc-nav .daohang a:hover {
        background-color: #f5f5f5;
    }
    
    /* 隐藏移动端元素 */
    .toggle-button {
        display: none;
    }

}

/* 移动端保持原样式 */
@media (max-width: 1023px) {
    .logo {
        text-align: left;
        padding-left: 5%;
        font-size: 1rem;
        z-index: 2000;
        font-weight: bold;
        letter-spacing: normal;
    }
    
    /* 隐藏PC端导航 */
    .pc-nav {
        display: none;
    }
}

/* KD.Culture 字体 */
nav > div:first-child {
    font-family: 'ABCNormal-Bold', Arial, sans-serif;
}

/* 新增全局a标签样式 */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
    transition: none;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

a:active,
a:focus {
    outline: none !important;
    background-color: transparent !important;
    color: inherit;
}

/* 企业故事部分 */
.corporate-story {
    position: relative;
    text-align: left;
    font-weight: 100;
    padding: 0 5%;
    font-size: 2.5vw;
    line-height: 2;
    color: #505050;
    margin-top: 85px;
}

/* 企业故事部分 */
.corporate-introduction {
    position: relative;
    text-align: left;
    padding: 0 3%;
    font-size: 11px;
    line-height: 2;
    color: #505050;
    margin-top: 20px;
}


/* 轮播图 */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

/* 轮播图下方描述文字 */
.carousel-description {
    text-align: center;
    color: #505050;
    font-size: 2.5vw;
    height: 2rem;
}

.carousel-item {
    width: 100%;
    height: 100%;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 轮播指示器容器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 0.2rem;
}

/* 轮播指示器样式 */
.carousel-indicator {
    width: 5px;
    height: 5px;
    background-color: #ddd;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* 活动指示器样式 */
.carousel-indicator.active {
    background-color: #505050;
}

/* 回到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #505050;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.corporate-story p{
    font-size: 9px;
}

/* footer */
.footer-title{
    font-size: 9px;
    font-weight: 100;
    padding-top: 15%;
    font-family: auto;
}


/* 页脚图片容器 */
.footer-image-container {
    /* width: 100%; */
    padding: 0 0 5% 0;
    display: flex;
    flex-direction: column;
}

.footer-image-container img {
    width: 100%;
    height: auto;
}

/* 页脚联系我们 */
.contact-us{
    margin-top: 15%;
}

.contact-us p {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 100;
    font-family: auto;
}

/* 页脚微信公众号 */
.wechat-qrcode {
    width: 6rem;
    height: 6rem;
    background-color: #FFF003;
    color: #FFF003;
    margin: auto;
}

.wechat-text {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 100;
    font-family: auto;
}

/* 页脚版权信息 */
.copyright-container {
    padding-top: 2%;
    color: #000000;
    font-size: 0.7rem;
    font-weight: 100;
    font-family: auto;
}

.copyright-container p {
    padding-top: 1%;
}


/* 企业文化部分样式 */
.corporate-culture {
    margin: 15% 0;
    padding: 0 3%;
}

/* 企业文化网格布局 */
.corporate-culture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* 企业文化项目样式 */
.culture-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* 企业文化图片样式 */
.culture-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 企业文化图片悬停效果 */
.culture-item img:hover {
    transform: scale(1.02);
}

/* 企业文化文字样式 */
.culture-item span {
    color: #505050;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
}

/* 企业故事部分 */
.corporate-story {
    position: relative;
    text-align: left;
    font-weight: 100;
    padding: 0 3%;
    font-size: 2.5vw;
    line-height: 2;
    color: #505050;
    margin-top: 85px;
}

/* 针对PC设备的全屏样式 */
@media (min-width: 584px) {

    .corporate-story span{
        margin: 3% 0;
    }

    .footer-image-container {
        padding: 0 15%;
    }

    /* 全局样式优化 */
    body {
        font-size: 16px;
    }
    
    /* 头部优化 */
    .head-container {
        display: flex;
        position: fixed;
        align-items: center;
        width: -webkit-fill-available;
        height: 80px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
        z-index: 999;
    }
    
    /* 企业故事优化 */
    .corporate-story {
        font-size: 1rem;
        line-height: 2.5;
        padding: 0 15%;
        margin-top: 7vh;
    }

    .corporate-introduction {
        font-size: 1.5vw;
        line-height: 2.5;
        padding: 0 15%;
        margin-top: 9vw;
    }

    .corporate-story p{
        font-size: 1.6vw;
    }
    
    /* 轮播图优化 - 只固定最外层高度 */
    .carousel-wrapper {
        height: 45vw;
        margin: 3% 0;
    }

    .carousel-indicator {
        width: 7px;
        height: 7px;
    }
    .carousel-indicators {
        margin-top: 3vw;
        gap: 1vw;
    }

     /* 企业文化PC端优化 */
    .corporate-culture {
        margin: 15% 0;
        padding: 0 15%;
    }
    
    .corporate-culture-grid {
        gap: 5rem;
    }

    .culture-item span {
        font-size: 2rem;
    }

    .footer-title{
        font-size: 1.2rem;
    }
}

/* 针对移动设备的视频优化 */
@media (max-width: 567px) {
    /* 轮播图容器 - 只固定最外层高度，避免页面伸缩 */
    .carousel-wrapper {
        width: 100%;
        position: relative;
        overflow: hidden;
        margin: 5% 0;
        height: 63vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .toggle-icon::before,
    .toggle-icon::after {
        content: '';
        display: block;
        width: 26px;
        height: 2px;
        background-color: #333;
        position: absolute;
        transition: all 0.3s ease;
    }
}
