/* ########################################## service container 左右布局 ########################################## */
.service-wrap { display: flex; flex-wrap: wrap; justify-content: center; width: 80%; margin: 0 auto;}
.section-service-container {
    display: flex;
    flex-direction: row; /* 横向排列 */
    gap: 30px; 
    width: 100%;
    align-items: flex-start;
}

/* --- 左侧轮播样式 --- */
.section-service-content-image {
    flex: 1; /* 占用比例略大 */
}

.section-service-slider-container {
    position: relative;
    border: 5px solid var(--brand-color);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 58 / 41;
}

.zoomable {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 右侧文字样式 --- */
.section-service-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-service-title-box {
    border: 3px solid var(--brand-color);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    width: 100%;
    padding-top:30px;
}

.section-service-content-box {
    border: 3px solid var(--brand-color);
    border-radius: 10px;
    background: #fff;
    line-height: 1.8;
    color: #444;
}


/* 响应式：手机端改为上下布局 */
@media (max-width: 768px) {
    .section-service-container {
        flex-direction: column;
    }
    .section-service-title-box { width: 100%; text-align: center; }
}


/* ########################################## Tab页切换布局 ########################################## */
.product-container {
    width: 80%;
    margin: 50px auto;
    text-align: center;
}
/* Tab 导航样式 */
.tab-navbar {
    display: flex;
    /*justify-content: center;*/
    position: relative;
    margin-bottom: 30px;
    width:100%;
    gap: 20px; /* tab-item 之间间距 */
}

.tab-item {
    /* 核心：flex-grow 设置为 1，让所有 item 平分剩余空间 */
    /* flex-basis 设置为 0，确保它们从同一起跑线开始平分 */
    flex: 1; 
    background-color: #fff;
    padding: 15px 15px; /* 移除左右固定 padding，改为 0，靠 flex 平分 */
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center; /* 确保文字在平分后的格子内居中 */
    
    /* 保持底边框在文字下方居中 */
    /*border-bottom: 3px solid transparent; */
    position: relative; /* 为伪元素定位提供基准 */
    
    /* 圆角 */
    border-radius: 8px 8px 8px 8px;
    
    /* 字体自动换行 */
    word-wrap: break-word;
    word-break: break-all;
}
/* 使用伪元素制作底部三角 */
.tab-item::after {
    content: "";
    position: absolute;
    bottom: -8px;      /* 三角底部刚好在导航栏底边线下 */
    left: 50%;         /* 先移动到格子中心 */
    transform: translateX(-50%); /* 向左回移自身的一半，实现彻底居中 */
    
    /* CSS 三角形：上边框为蓝色，左右为透明 */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid transparent; /* 默认透明不显示 */
    transition: all 0.3s ease; /* 添加平滑效果动画 */
}
/* 激活状态的文字颜色和背景 */
.tab-item.active {
    color: #fff;
    font-weight: 600;
    /* 蓝色背景 */
    background-color: #1e3a8a;
}
/* 激活状态：显示底部三角 */
.tab-item.active::after {
    border-top-color: #1e3a8a; /* 激活时三角显示蓝色 */
}

/* 内容面板控制 */
.product-content-panel {
    display: none; /* 默认隐藏所有 */
    animation: fadeIn 0.4s ease;
}

.product-content-panel.active {
    display: block; /* 只显示带 active 的面板 */
}

/* 产品卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* padding: 20px; */
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-card .img-box {
    background-color: #f8f9fa;
    width: 100%;
    aspect-ratio: 38 / 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .txt-box {
    color: #333;
    background-color: #fff;
    padding: 20px;
    margin: -10px 0 0 0;
    position: relative;
    /* 圆角 */
    border-radius: 8px 8px 8px 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.product-card .txt-box .img-button {
    margin-top: 3rem;
    cursor: pointer;
}
