
/*Images*/
/* 1. Overall */
.pro-block-section {
    width: 100%;
    margin: 0px auto;
    background: #000;
    font-family: 'Poppins', sans-serif; 
    -webkit-font-smoothing: antialiased;
}

/* 2. Nav-bar */
.top-nav-bar {
    display: flex;
    background: #111;
    border-bottom: 1px solid #222;
    overflow: hidden; /* 彻底禁用滚动 */
    width: 100%;
}
.top-nav-bar::-webkit-scrollbar { display: none; }

.nav-btn {
    /* 核心修改：让每个格子平分剩余空间 */
    flex: 1; 
    
    /* 垂直居中内容 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    padding: 10px 5px; /* 减少左右内边距，给文字腾空间 */
    height: 60px;      /* 固定高度，确保整齐 */
    color: #666;
    font-size: 14px;    /* 稍微调小字号以容纳更多字 */
    font-weight: 550;
    cursor: pointer;
    /*transition: 0.3s;*/
    
    
    /* 核心修改：允许文字换行，防止溢出 */
    white-space: normal; 
    line-height: 1.2;    /* 换行后的行高 */
    word-break: break-word; /* 强制长单词换行 */
    
    position: relative;
    box-sizing: border-box;
}

.nav-btn:hover { color: #fff; }
.nav-btn.active { color: #fff; background: #1a1a1a; }

/* btn */
/* 激活状态的下划线 */
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff3b30; 
}

/* 3. image */
.image-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1446 / 600; /* lock the ratio */
    overflow: hidden;
    background: #000;
}

.img-panel {
    position: absolute; /* 必须绝对定位，让所有图片重叠在同一个位置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 默认透明 */
    visibility: hidden; /* 默认隐藏 */
    /*transition: opacity 0.2s ease;*/
    z-index: 1;
}

.img-panel.active {
    opacity: 1; /* 激活时显示 */
    visibility: visible;
    z-index: 2; /* 激活时置于顶层 */
}

.img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 建议用 contain 保证图片不被裁切 */
    display: block;
}

/* 4. 手机端适配 */
@media (max-width: 768px) {
    .top-nav-bar {
        justify-content: flex-start;
        padding: 0px;
    }
   
    .nav-btn {
        font-size: 10px; /* 手机端字号缩小 */
        padding: 5px 2px;
    }
    .pro-block-section { margin: 0px auto; }
}

