img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 22px; }
ul { list-style: none; margin: 0; padding: 0; }
:root {
    --primary-green: #00a040;
    --light-bg: #f8f9fa;
    --text-gray: #666;
}

.hero-banner {
    width: 100%;
    position: relative;
    background-color: #f0f0f0;
    aspect-ratio: 4 / 1;
    overflow: hidden;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }

.tabs-section { padding: 40px 0 20px; }
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.tabs li {
    padding: 15px 60px;
    font-size: 20px;
    color: #666;
    cursor: default;
    position: relative;
}
.tabs li.active { color: var(--primary-green); font-weight: bold; }
.tabs li.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}

.page-main { font-family: "Microsoft YaHei", Arial, sans-serif; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 50px;
    color: #2b2f33;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.5px;
}
.section-desc {
    font-size: 17px;
    color: rgba(38, 42, 46, 0.86);
    max-width: 900px;
    margin: 0 auto;
    line-height: 2.05;
}

.core-advantages { padding: 20px 0 80px; background: #fff; }
.icon-grid { display: flex; justify-content: space-between; gap: 40px; margin-top: 40px; }
.icon-card { flex: 1; text-align: center; }
.icon-card img { width: 100px; height: 100px; margin: 0 auto 20px; object-fit: contain; }
.icon-card h3 { font-size: 20px; color: #2b2f33; margin-bottom: 12px; font-weight: 500; line-height: 1.35; }
.icon-card p { font-size: 14px; color: rgba(38, 42, 46, 0.86); text-align: justify; line-height: 1.85; }

.chain-layout { padding: 80px 0; background-color: var(--light-bg); }
.chain-img-container { margin-top: 50px; width: 100%; display: flex; justify-content: center; }
.chain-img-container img { max-width: 900px; width: 100%; }

.cross-border { padding: 80px 0; background-color: #fff; }
/* 正品溯源：条目较多时横向滑动；少量时居中排布 */
.trace-slides-outer {
    margin-top: 50px;
}
.trace-slides--scroll {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(0, 160, 64, 0.45) transparent;
}
.trace-slides--few {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 22px;
    box-sizing: border-box;
}
.trace-slides {
    display: flex;
    gap: 28px;
    padding-bottom: 12px;
    min-height: 1px;
}
.trace-slides--few .trace-slides {
    justify-content: center;
    flex-wrap: wrap;
}
.trace-slide {
    flex: 0 0 auto;
}
.trace-slides--scroll .trace-slide {
    scroll-snap-align: start;
    width: min(340px, 82vw);
    max-width: 100%;
}
.trace-slides--few .trace-slide {
    width: min(360px, 100%);
    max-width: calc(33.333% - 20px);
    flex: 1 1 260px;
}

.cert-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.cert-item img { width: 100%; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); margin-bottom: 20px; }
.cert-item p { font-size: 17px; color: rgba(38, 42, 46, 0.9); text-align: center; font-weight: 500; line-height: 1.65; }


@media (max-width: 992px) {
    .tabs li { padding: 15px 30px; font-size: 18px; }
    .section-title { font-size: 38px; }
    .section-desc { font-size: 16px; line-height: 1.9; }
}
@media (max-width: 768px) {
    .tabs li { padding: 10px 20px; width: 33.33%; text-align: center; font-size: 15px; }
    .section-title { font-size: 32px; }
    .cert-item p { font-size: 15px; }
    .icon-grid { flex-direction: column; align-items: center; }
    .trace-slides { gap: 20px; }
    .trace-slides--few .trace-slide {
        max-width: 400px;
    }
    .icon-card, .cert-item { max-width: 400px; width: 100%; }
    .cert-item img { max-width: 300px; }
}
