/* ========== 第二块：Tab 切换（品质管理） ========== */
.quality-tab-section {
    padding: 150px 0 120px;
    background: #F5F5F5;
}

.quality-tab-header {
    text-align: center;
    margin-bottom: 55px;
}

.quality-tab-heading {
    margin: 0 0 20px;
    font-size: var(--f48);
    font-weight: 700;
}



.quality-tab-subtitle {
    color: #666666;
    font-size: var(--f16);
    line-height: 1.75;
}


/* Tab 导航 */
.quality-tab-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid #ccc;

}

.quality-tab-btn {
    position: relative;
    width: 100%;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
    white-space: nowrap;
    text-align: center;
        font-size: var(--f18);
}

.quality-tab-btn + .quality-tab-btn::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    width: auto;
    height: 1px;
    background:#ccc;
    transform: none;
}

.quality-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gm-theme);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.quality-tab-btn.active {
    color: var(--gm-theme);
    font-weight: 600;
}

.quality-tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab 面板 */
.quality-tab-panels {
    position: relative;
}

.quality-tab-panel {
    display: none;
    background: #fff;
}

.quality-tab-panel.active {
    display: block;
}

.quality-tab-layout {
    display: grid;
    gap: 30px;
    align-items: start;
    background: #fff;
    
}

.quality-tab-text {
    display: flex;
    flex-direction: column;
        padding: 4vw 3.5vw;
}

/* 第一行：icon + 标题/标签 */
.quality-tab-head {
    display: flex;
    align-items: center;
    gap: 30px;
}

.quality-tab-icon {
    flex-shrink: 0;
    padding: 15px ;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gm-theme);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-tab-icon img {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.quality-tab-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.quality-tab-name {
    margin: 0;
    font-size: var(--f30);
    font-weight: 700;
}

.quality-tab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quality-tab-tags ul{
    counter-reset: qualityTag;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quality-tab-tags li {
    counter-increment: qualityTag;
    display: flex;
    align-items: center;
    gap:10px;
    padding: 0;
    font-size: var(--f14);
    color: var(--gm-theme);
}

.quality-tab-tags li::before {
    content: counter(qualityTag);
    display: inline-flex;
    align-items: center;
    justify-content: center;
        width: 15px;
        height: 15px;
        font-size: 11px;
    font-weight: 700;
    color: var(--gm-theme);
    background: transparent;
    border: 1px solid var(--gm-theme);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 第二行：desc */
.quality-tab-desc {
    font-size: var(--f16);
    font-weight: 500;
    margin-top:30px ;
}

/* 第三行：content */
.quality-tab-content {
     margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(31, 31, 31, 0.12);
    color: #666666;
    font-size: var(--f15);
        font-weight: 500;
    line-height: 1.85;
}

.quality-tab-content p {
    margin: 0;
}

.quality-tab-media {
    min-width: 0;
}

.quality-tab-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.18;
    object-fit: cover;
}

/* ========== 768px+ ========== */
@media (min-width: 768px) {
    .quality-tab-nav {
        flex-direction: row;
        justify-content: stretch;
        border: 0;
        border-bottom: 1px solid #ccc;
    }

    .quality-tab-btn {
        flex: 1 1 0;
        width: auto;
    }

    .quality-tab-btn + .quality-tab-btn::before {
        left: 0;
        right: auto;
        top: 50%;
        width: 1px;
        height: 24px;
        transform: translateY(-50%);
    }
 
    .quality-tab-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

}
