@font-face {
    font-family: 'siyuan';
    src: url('../image/index/siyuan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 透明度为0的类，用于初始隐藏元素 */
.opacity-0 {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tenglong-banner {
    width: 100%;
    height: 100vh;
    background-image: url('../image/index/bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.tenglong-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色阴影 */
    z-index: 0;
}

/* 滚动指示器样式 */
.tenglong-scroll-indicator {
    position: absolute;
    bottom: 30px;  /* 调整位置，确保在可见区域内 */
    left: 48%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
    opacity: 1;
    visibility: visible;
    width: fit-content;
    margin: 0 auto;
}

.tenglong-scroll-indicator:hover {
    opacity: 0.8;
}

.tenglong-mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 6px 0;
    margin-bottom: 10px;
    position: relative;
}

.tenglong-mouse-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.tenglong-mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}

.tenglong-scroll-text {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tenglong-scroll-arrow {
    color: #fff;
    font-size: 20px;
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollArrow {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}

.tenglong-banner-slogan {
    font-family: 'siyuan', sans-serif;
    font-size: 32px; /* 字体缩小一半，从64px改为32px */
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
    position: absolute; /* 改回绝对定位，只在Banner区域内显示 */
    right: 50px; /* 距离右边50px */
    bottom: 20px; /* 距离底部20px */
    z-index: 1; /* 调整回原来的z-index值 */
    text-shadow: 
        0 1px 0 #ccc, 
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

.tenglong-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* 增加间距，从40px改为80px */
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: -100px; /* 向上调整位置 */
}

.tenglong-logo-card {
    position: relative;
    width: 400px;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.tenglong-logo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tenglong-logo-card img {
    width: 250px; /* 增大图片尺寸，从160px改为200px */
    height: auto;
    z-index: 1;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    position: relative;
    top: 10px; /* 减小向下偏移，使图片位置更高 */
}

.tenglong-logo-card:hover img {
    transform: scale(1.1);
}

.tenglong-logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
    transition: background 0.3s ease;
}

.tenglong-logo-card:hover::before {
    background: rgba(255, 255, 255, 0.1); /* 悬停时半透明白色背景更淡 */
}

.tenglong-logo-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.tenglong-logo-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* 半透明黑色背景 */
    z-index: 0;
}

.tenglong-custom-bg::before {
    background: rgba(255, 255, 255, 0.7); /* 半透明白色背景，只浅显显示背景图 */
}

.tenglong-logo-text {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'siyuan', sans-serif;
    font-size: 20px;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 为腾龙精线集团logo图片添加特殊样式，使其尺寸变小 */
.tenglong-logo-bg img[alt="腾龙精线集团"] {
    width: 300px;
}

/* 为腾龙精线集团logo图片添加特殊样式，使其位置往下调整 */
.tenglong-logo-card .tenglong-logo-bg img[alt="腾龙精线集团"] {
    top: 40px; /* 将图片位置再往下调整，从50px增加到70px */
}

/* 为腾达紧固科技logo图片添加特殊样式，使其位置往下调整 */
.tenglong-logo-card .tenglong-logo-bg img[alt="腾达紧固科技"] {
    top: 15px; /* 将图片位置再往下调整 */
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tenglong-logo-container {
        gap: 30px;
    }
    
    .tenglong-logo-card {
        width: 350px;
        height: 180px;
    }
    
    .tenglong-banner-slogan {
        font-size: 40px;
        margin-bottom: 50px;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .tenglong-logo-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .tenglong-logo-card {
        width: 100%;
        max-width: 350px;
        height: 180px;
    }
    
    .tenglong-banner-slogan {
        font-size: 36px;
        margin-bottom: 40px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 100px;
    }
}

@media (max-width: 576px) {
    .tenglong-banner-slogan {
        font-size: 32px;
        margin-bottom: 30px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 100px;
    }
    
    .tenglong-logo-card {
        height: 160px;
    }
    
    .tenglong-logo-card img {
        width: 160px;
    }
}

@media (max-width: 400px) {
    .tenglong-banner-slogan {
        font-size: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 100px;
    }
    
    .tenglong-logo-card img {
        width: 140px;
    }
}