/* Naxel Hover-Box 样式 */
.nhb-hover-box {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.4s ease;
}

/* 背景图片 */
.nhb-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.nhb-hover-box:hover .nhb-background {
    transform: scale(1.05);
}

/* 遮罩层 */
.nhb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.nhb-hover-box:hover .nhb-overlay {
    opacity: 0.6;
}

/* 内容区域 */
.nhb-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    z-index: 2;
    transition: all 0.4s ease;
    overflow: visible;
}

/* 悬停时保持居中 */
.nhb-hover-box:hover .nhb-content {
    align-items: center;
}

/* 标题 */
.nhb-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    transform-origin: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.nhb-hover-box:hover .nhb-title {
    transform: scale(var(--title-scale, 1.5));
    text-align: center;
}

/* 按钮 */
.nhb-button {
    color: #0E55AC;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin: 0;
    white-space: nowrap;
}

.nhb-hover-box:hover .nhb-button {
    opacity: 1;
    transform: translateY(0);
}

.nhb-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nhb-button:hover .nhb-arrow {
    transform: translateX(5px);
}

/* 链接覆盖层 */
.nhb-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nhb-hover-box {
        height: 300px;
    }
    
    .nhb-content {
        padding: 20px;
    }
    
    .nhb-title {
        font-size: 24px;
    }
    
    .nhb-button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nhb-hover-box {
        height: 250px;
    }
    
    .nhb-content {
        padding: 15px;
    }
    
    .nhb-title {
        font-size: 20px;
    }
}
