/* 引入自定义字体 */
@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;
    letter-spacing: 1px;
    /* justify-content: 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{
    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(-5px) rotate(0);
}

.toggle-icon::after {
    transform: translateY(5px) rotate(0);
}

/* 点击后状态：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);
}

/* 全屏透明弹窗 */
.fullscreen-modal {
    position: fixed;
    flex-direction: column;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    z-index: 1500;
    transition: top 0.5s ease;
    opacity: 1;
}

.fullscreen-modal.show {
    top: 0;
}

.modal-content {
    display: flex;
    width: 100%;
    margin: 70px 5% 20px;
    height: 30%;
    overflow-y: auto;
    border-radius: 0;
}

.daohang{
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: normal;
}

.daohang a{
    color: #333;
    margin: auto;
}

.daohang a:hover{
    color: #333;
}

.boss-info{
    display: flex;
    font-size: 4.5vw;
    justify-content: space-between;
    color: #333; 
    letter-spacing: normal;
    font-weight: 500;
}

/* 导航部分 */
nav {
    display: flex;
    margin: auto 0;
    width: 100%;    /* 宽度100% */
    justify-content: space-between;  /* 元素靠向两边 */
}

/* PC端导航样式 */
@media (min-width: 1024px) {
    .animation-container{
        padding-right: 0%;
    }

    .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;
    }
    
    .fullscreen-modal {
        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;
}

/* News view > 字体 */
.boss-info {
    font-family: 'ABCNormal-Normal', Arial, sans-serif;
}

/* 在index.css中找到原有nav a的样式 */
nav a {
    display: inline-block;
    padding-top: 0.9rem;
    font-size: 0.6rem;
    color: #505050;
    text-decoration: none; 
    outline: none; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-weight: 500;
    /* letter-spacing: 0.5px; */
}

/* 新增全局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;
}

nav a:last-child {
    margin-right: 0;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉内容默认隐藏 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
}

/* 下拉菜单项样式 */
.dropdown-content a {
    color: #505050;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.6rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* 下拉菜单项悬停效果 */
.dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* 移动端：点击显示下拉菜单 */
.dropdown.active .dropdown-content {
    display: block;
}

/* 为下拉切换按钮添加箭头指示器 */
.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.4rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

/* 视频容器 */
.video-container {
    position: relative;
    width: 100%;
    margin: 7% 0;
    overflow: hidden;
    display: block;
}

.video-container video {
    width: 100%;
    height: auto;
    z-index: 3;
    display: block;
    min-height: 100px;
    -webkit-user-drag: none;
    user-drag: none;
}

/* 确保视频控件不可操作 */
.video-container {
    position: relative;
    overflow: hidden;
}

/* 视频包装器样式，添加更强的保护 */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* 完全隐藏视频控件，防止下载 */
.video-wrapper video {
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    z-index: 2;
}

/* 防止视频元素被直接访问 */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    pointer-events: none;
}

/* 禁用所有可能的视频下载方式 */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 4;
    pointer-events: none;
}

/* 针对移动设备的视频优化 */
@media (min-height: 560px) {
    .modal-content {
        display: flex;
        width: 100%;
        margin: 120px 5% 20px;
        height: 40%;
        overflow-y: auto;
        border-radius: 0;
    }
}

/* 针对移动设备的视频优化 */
/* @media (min-height: 526px ) and (max-width: 740px) {
    .modal-content {
        display: flex;
        width: 100%;
        margin: 140px 5% 20px;
        height: 40%;
        overflow-y: auto;
        border-radius: 0;
    }
} */


/* 针对移动设备的视频优化 */
@media (min-height: 660px) {
    .modal-content {
        display: flex;
        width: 100%;
        margin: 120px 5% 60px;
        height: 38%;
        overflow-y: auto;
        border-radius: 0;
    }
}



/* 针对移动设备的视频优化 */
@media (max-width: 567px) {
    .video-container {
        margin: 5% 0;
    }
    
    .video-container video {
        min-height: 80px;
    }

    /* 轮播图容器 - 只固定最外层高度，避免页面伸缩 */
    .carousel-wrapper {
        width: 100%;
        position: relative;
        overflow: hidden;
        margin-bottom:9%;
        height: 65vh;
        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;
    }
}

/* 轮播图容器 - 只固定最外层高度，避免页面伸缩 */
.carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 66vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 轮播图下方描述文字 */
.carousel-description {
    text-align: center;
    color: #505050;
    font-size: 2.5vw;
    height: 2rem;
}

/* 标题容器内部布局 */
.title-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.title-inner-short {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* VIEW ALL WORKS按钮 */
.view-all-button {
    padding-top: 4px;
    background: transparent;
    width: auto;
}

.view-all-button span {
    font-family: auto;
    font-weight: 300;
    font-size: 12px;
}

.view-all-button .arrow {
    font-family: fangsong;
    padding-left: 1%;
    font-size: 12px;
}

/* 页脚图片容器 */
.footer-image-container {
    width: 100%;
    padding: 10% 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.6rem;
    font-weight: 100;
    font-family: auto;
    margin-bottom: 41px;
}

.copyright-container p {
    padding-top: 1%;
}

/* 回到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #505050;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.8rem;
    font-stretch: condensed;
    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-culture {
    margin: 25% 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 5%;
    font-size: 2.5vw;
    line-height: 2;
    color: #505050;
    margin-top: 75px;
}



/* 轮播图 */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-item {
    width: 100%;
    height: 100%;
    transition: opacity 0.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%;
    aspect-ratio: 3/2;
    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: 2.4vw;
}

/* 轮播指示器样式 */
.carousel-indicator {
    width: 6px;
    height: 6px;
    background-color: #ddd;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* 活动指示器样式 */
.carousel-indicator.active {
    background-color: #505050;
}






/* wedo部分 */
.red-rhythm {
    padding: 3% 5% 15% 5%;
}

/* 标题-按钮图片容器 */
.title-container {
    height: 1.5rem;
    display: block;
    overflow: hidden;
    padding-bottom: 1%;
}

/* 标题-按钮图片 */
.title-container img {
    width: 50%;
}

/* 项目列表 */
.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 平板设备优化 */
@media (min-width: 768px) {
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .boss-info {
        font-size: 3.5vw;
    }
}

/* 项目列表图片 */
.project-list img{
    width: 100%;
    aspect-ratio: 3/2;
    margin-top: 2%;
    object-fit: cover;
}

/* 防抖 */
.project-list > div {
    transition: none; /* 确保无过渡效果 */
    outline: none; 
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* .project-list > div:active {
    opacity: 0.8;
} */

.project-list img,
.project-list p {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* we-do文本 */
.we-do{
    color: #dfdada;
    margin-top: 0;
    line-height: 2.2;
    font-size: 0.9rem;
    
    margin-top: 1%;
    margin-right: 1%;
}

/* 标题文本 */
.title-text{
    font-size: 14px;
    font-weight: 400;
    margin-top: 1%;
    margin-right: 1%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}


/* 项目名称 */
.project-name{
    display: block;
    text-align: left;
    margin: 5px 0 0 0;
    font-weight: 500;
    color: #000000;
    font-size: 13px;
}

/* 项目年份 */
.project-year-item{
    display: block;
    text-align: left;
    margin: 3% 0;
    font-size: 12px;
    color: #505050;
}

/* 项目类型 */
.project-type-item{
    display: block;
    text-align: left;
    font-size: 13px;
    color: #505050;
    margin-top: 8px;
}

/* 更多按钮 */
.more-button{
    background: none; 
    border: none; 
    position: relative; 
    width: 12%;
    max-width: 2.7rem;
    display: block;
    top:  2.4rem;
}

.more-button img{
    width: 100%;
    position: absolute;
    left: 0px;
}

.footer-title{
    font-size: 1.5rem;
    font-weight: 100;
    padding-top: 20%;
    font-family: auto;
}


.video-container {
    position: relative; 
    width: 100%; 
    margin: 5% 0;
}

/* 针对PC设备的全屏样式 */
@media (min-width: 624px) {
    /* 全局样式优化 */
    body {
        font-size: 16px;
    }
    
    /* 头部优化 */
    .head-container {
        display: flex;
        position: fixed;
        align-items: center;
        width: -webkit-fill-available;
        height: 80px;
        /* background-color: #fff; */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
        z-index: 999;
    }
    
    .star-container img {
        width: 3%;
    }
    
    /* 导航栏优化 */
    nav {
        font-size: 46px;
    }
    
    nav a {
        font-size: 1rem;
        padding-top: 1.5rem;
    }

    .view-all-button span{
        font-size: 16px;
    }
    
    /* PC端：鼠标悬停显示下拉菜单 */
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    /* PC端下拉菜单项样式优化 */
    .dropdown-content a {
        font-size: 0.8rem;
        padding: 15px 20px;
    }
    
    /* PC端下拉箭头样式 */
    .dropdown-toggle::after {
        font-size: 0.6rem;
    }
    
    /* 企业故事优化 */
    .corporate-story {
        font-size: 1rem;
        line-height: 2.5;
        padding: 0 5%;
        margin-top: 120px;
    }
    
    /* 轮播图优化 - 只固定最外层高度 */
    .carousel-wrapper {
        height: 45vw;
        margin: 3% 0;
    }

    .carousel-description {
        font-size: 1.5vw;
    }
    
    /* 还原内部容器和轮播项样式 */
    /* .carousel-container {
        height: 26vw;
        margin: 5% 0;
    } */
    
    /* .carousel-item {
        max-height: 21rem;
    } */
    
    /* 企业文化PC端优化 */
    .corporate-culture {
        margin: 15% 0;
        padding: 0;
    }
    
    .corporate-culture-grid {
        gap: 5rem;
    }
    
    .culture-item span {
        font-size: 2rem;
    }
    
    /* 项目列表优化 */
    .project-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    /* 项目图片优化 */
    .project-list img {
        aspect-ratio: 3/2;
        margin-top: 0;
    }
    
    /* 项目名称优化 */
    .project-name {
        font-size: 1.2rem;
        margin: 10px 0 10px 0;
    }
    
    /* 项目类型优化 */
    .project-type-item {
        margin-top: 16px;
        font-size: 1.2rem;
        align-items: center;
    }
    
    /* 标题优化 */
    .title-container {
        height: 6rem;
        /* padding: 0 5%; */
    }
    
    .we-do {
        font-size: 1.5rem;
    }
    
    .title-text {
        font-size: 3.5rem;
    }
    
    /* 更多按钮优化 */
    .more-button {
        width: 8%;
        top: 3rem;
    }

    .footer-title{
        font-weight: 300;
        padding-top: 10%;
        font-family: auto;
    }
    
    /* 轮播图下方文字优化 */
    p[style*="text-align: center"] {
        font-size: 0.8rem;
        margin: 3% 0;
    }
    
    /* wedo部分优化 */
    .red-rhythm {
        padding: 3% 5% 10% 5%;
    }
    
    /* VIEW ALL WORKS按钮优化 */
    button[style*="border: solid 0.1rem #505050"] {
        width: 30%;
        padding: 15px;
        margin: 5% 0;
    }
    
    button[style*="border: solid 0.1rem #505050"] span {
        font-size: 1rem;
    }
    
    /* 页脚优化 */
    footer {
        padding: 0 5%;
    }
    
    footer h3 {
        padding-top: 10%;
    }
    
    footer h2 {
        padding-top: 20%;
    }

    /* 页脚版权信息 */
    .copyright-container {
        font-size: 0.9rem;
    }
}