* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    background-color: #f8fafc;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-dark: #0F3460;
    --primary-blue: #2563eb;
    --dark-green: #166534;
    --dark-red: #b91c1c;  /* ←新增红色 */
    --light-bg: #f8fafc;
    --text-gray: #555;
    --white: #ffffff;
    --contact-bg: #0b2447;
}
.bg-dark-red {
    background-color: var(--dark-red);
}

/*===== 一级Tab：未选中保持灰色，仅active变色 =====*/
.tabs-primary .tab-btn {
    /* 未选中状态维持原有灰色，不改动 */
    border: 1px solid #e5e7eb;
    color: #333;
    background: #fff;
}
/* 激活态按分类变色 */
.tabs-primary .tab-btn[data-category="packaging"].active {
    background-color: #0F3460;
    border-color: #0F3460;
    color: #fff;
}
.tabs-primary .tab-btn[data-category="checkweigher"].active {
    background-color: #166534;
    border-color: #166534;
    color: #fff;
}
.tabs-primary .tab-btn[data-category="pharma"].active {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/*===== 二级Tab激活色跟随当前一级分类变量 =====*/
.tabs-secondary {
    --tab-secondary-color:#024b99; /* 默认fallback蓝色 */
}
.tabs-secondary .tab-btn.active {
    background-color: var(--tab-secondary-color);
    border-color: var(--tab-secondary-color);
    color: #fff;
}
.tabs-secondary .tab-btn:hover:not(.active) {
    border-color: var(--tab-secondary-color);
    color: var(--tab-secondary-color);
}

.page-banner {
    background-color: #0F3460;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-contact-dark {
    background-color: var(--contact-bg);
}

.bg-dark-blue {
    background-color: var(--primary-dark);
}

.bg-dark-green {
    background-color: var(--dark-green);
}

.text-white {
    color: #fff;
}

.text-center {
    text-align: center;
}

.mt30 {
    margin-top: 30px;
}

.w100 {
    width: 100%;
}

/* 标题统一放大 */
.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 34px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    position: relative;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
    margin: 10px auto;
}

.section-head p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 14px;
}

.bg-primary-dark .section-head h2 {
    color: #fff;
}

.bg-primary-dark .section-head p {
    color: #ccc;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== Video Tab Filter Style ===== */
.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}
.tab-btn.active {
    background: var(--primary-blue);
    color: #fff !important;
}
.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}
.video-card {
    transition: all 0.3s ease;
}
.video-card.hide {
    display: none;
}


/* ========= Header 导航基础样式 ========= */
#mainHeader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#021f42;
    z-index:999;
    padding:12px 0;
}
.header-container{
    padding:0 20px;
}
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
}
.pc-menu{
    display:flex;
    gap:24px;
    list-style:none;
    margin:0;
    padding:0;
    align-items:center;
}
.pc-menu a{
    color:#fff;
    text-decoration:none;
}
/* 汉堡按钮 */
.hamburger{
    display:none;
    background:transparent;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}
/* 移动端菜单 默认隐藏 */
.mobile-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#021f42;
    padding:20px;
    box-sizing:border-box;
}
.mobile-menu.active{
    display:block;
}
.mobile-menu ul{
    list-style:none;
    padding:0;
    margin:0;
}
.mobile-menu li{
    margin-bottom:12px;
}
.mobile-menu a{
    color:#fff;
    text-decoration:none;
    font-size:16px;
    display:block;
    padding:8px 0;
}

/* ========= 媒体查询：仅手机端生效 max-width:992px ========= */
@media (max-width:992px){
    /* 大屏菜单隐藏，汉堡按钮显示 */
    .pc-menu{
        display:none;
    }
    .hamburger{
        display:block;
    }
    /* Hero首屏容器 手机增加左右留白，电脑不受影响 */
    .hero-container{
        padding-left:20px !important;
        padding-right:20px !important;
    }
}

/* ========= Logo图片尺寸 ========= */
.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}
.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
@media (max-width:992px){
    .logo img {
        height:34px;
    }
}
/* 按钮 */
.btn-primary {
    display: inline-block !important;
    background: var(--primary-blue) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary:hover {
    opacity: 0.9;
    color: #fff !important;
}

.btn-outline {
    display: inline-block;
    border: 1px solid #ffffff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 3px;
    background: transparent;
    font-size: 13px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--primary-blue);
}

.text-white .link-more {
    color: #93c5fd;
}

/* 头部导航 */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 12px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}

.logo i {
    font-size: 26px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap:2px;
}
.logo-text span {
    font-weight: 700;
    font-size: 26px;
    line-height:1;
}
.logo-text small {
    font-size:14px;
    letter-spacing:1px;
    opacity:0.8;
    text-transform: uppercase;
    line-height:1;
}

.pc-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.pc-menu a {
    color: var(--primary-dark);
    font-size: 14px;
}
.pc-menu a.active {
    color:var(--primary-blue);
    font-weight:500;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-dark);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #fff;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu a {
    color: var(--primary-dark);
}

/* ========= Hero 首屏 ========= */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 52, 96, 0.85);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/7.jpg") center / cover;
    opacity: 0.4;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.hero-left {
    max-width: 640px;
    text-align: left;
}

.tagline {
    font-size: 12px;
    letter-spacing: 1px;
    color:#93c5fd;
    margin-bottom: 10px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight:700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: left;
}

.hero-desc {
    margin-bottom: 24px;
    font-size: 14px;
    opacity: 0.88;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 统计模块 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    gap: 20px;
    text-align: left;
}

.stat-num {
    font-size: 28px;
    font-weight:700;
    margin-bottom: 4px;
}

.stat-plus {
    color: var(--primary-blue);
}

.stat-label {
    font-size: 12px;
    opacity: 0.75;
}

.card-card {
    padding: 32px;
    border-radius: 8px;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.card-card h3 {
    margin-bottom: 10px;
}

.card-card p {
    opacity: 0.88;
    margin-bottom: 8px;
}

.product-card {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.25s;
}

.product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 180px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 20px;
}

.product-body h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-body p {
    color: var(--text-gray);
    font-size: 14px;
}

.industry-card {
    position: relative;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.industry-card:hover img {
    transform: scale(1.06);
}

.industry-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
}

.video-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.video-thumb {
    height: 160px;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.play-icon {
    font-size: 44px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.video-body {
    padding: 18px;
}

.video-body h4 {
    margin-bottom: 8px;
}

.video-body p {
    font-size: 13px;
    opacity: 0.8;
}

.about-wrap {
    align-items: center;
    gap: 40px;
}

.about-img img {
    border-radius: 8px;
}

.sub-title {
    font-size: 13px;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
}

.about-text h2 {
    font-size: 34px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.check-list {
    margin: 22px 0;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.check-list i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.white-check i {
    color: #93c5fd;
}

.about-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.year-tag {
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.news-card {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.news-img {
    height: 170px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 18px;
}

.news-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.news-body h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.news-body p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-wrap {
    align-items: center;
    gap: 40px;
}

.contact-form-box {
    background: #fff;
    color: #333;
    padding: 28px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* contact info box */
.info-item {
    background:#fff;
    padding:16px;
    border-radius:6px;
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:12px;
}
.info-item i {
    width:32px;
    height:32px;
    background:#eff6ff;
    color:var(--primary-blue);
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.info-item small {
    color:#888;
    font-size:12px;
    display:block;
}
.call-card {
    background:var(--primary-dark);
    color:#fff;
    padding:24px;
    border-radius:6px;
    text-align:center;
    margin-top:20px;
}
.call-card h3 {
    color:var(--primary-blue);
    margin:8px 0;
}

.footer {
    background: #0b2447;
    color: #bbb;
    padding: 50px 0 20px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 16px;
}
.footer-logo i{
    color:var(--primary-blue);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col li {
    margin-bottom: 9px;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.contact-list li {
    display: flex;
    gap: 8px;
    align-items: center;
}
.contact-list li i{
    color:var(--primary-blue);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #223b60;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

/* ========== 子页面共用新增样式 ========== */
.page-banner {
    background-color: var(--primary-dark);
    color: #fff;
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}
.page-banner h1 {
    font-size: 36px;
    margin-bottom: 8px;
}
.page-banner p {
    opacity: 0.8;
    font-size:14px;
}

/* ========= About Us 时间线 ========= */
.timeline-wrap {
    position: relative;
    max-width: 820px;
    margin: 50px auto 0;
    padding: 0;
}
.timeline-wrap .center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    margin: 40px 0;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-blue);
    transform: translateX(-50%);
    z-index:2;
}
.timeline-left {
    width: 50%;
    text-align: right;
    padding-right: 32px;
}
.timeline-right {
    width: 50%;
    padding-left: 32px;
}
.timeline-year {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 8px;
}
.timeline-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Why Producers Trust Us */
.trust-grid {
    gap: 20px;
}
.trust-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: 0.25s ease;
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}
.trust-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-blue);
    margin: 0 auto 16px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-card h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.trust-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* feature card about us */
.feature-card {
    background:#fff;
    padding:24px;
    border-radius:6px;
    text-align:center;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.feature-card i {
    font-size:24px;
    color:var(--primary-blue);
    margin-bottom:12px;
}
.feature-card h4 {
    margin-bottom:8px;
    font-size:16px;
}
.feature-card p {
    font-size:13px;
    color:#555;
}

/* solution banner */
.solution-banner {
    width:100%;
    height:240px;
    border-radius:6px;
    display:flex;
    align-items:center;
    padding-left:40px;
    color:#fff;
    background-image:url(images/food-banner.jpg);
    background-size:cover;
    background-position:center;
    position:relative;
}
.solution-banner::after{
    content:"";
    position:absolute;
    left:0;top:0;width:100%;height:100%;
    background:rgba(0,0,0,0.45);
    border-radius:6px;
}
.banner-text{
    position:relative;
    z-index:2;
}
.pharma-banner{
    background-image:url(images/pharma-banner.jpg);
}
.chemical-banner{
    background-image:url(images/chemical-banner.jpg);
}

.solution-card {
    background:#fff;
    padding:24px;
    border-radius:6px;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.solution-card i {
    color:var(--primary-blue);
    font-size:20px;
    margin-bottom:12px;
}
.solution-card h4 {
    margin-bottom:12px;
    font-size:16px;
}
.solution-card ul{
    padding-left:16px;
    margin-top:8px;
}
.solution-card li {
    margin:6px 0;
    font-size:14px;
    color:#444;
}

/* about story gallery */
.gallery-grid {
    gap:12px;
}
.gallery-grid img {
    width:100%;
    border-radius:6px;
    height:140px;
    object-fit:cover;
}

/* Our Story */
.about-story {
    align-items: center;
    gap: 40px;
}
.story-subtitle {
    display: block;
    font-size: 14px;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom:12px;
    font-weight:500;
}
.story-text h2 {
    font-size: 40px;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight:700;
}
.story-text p {
    color: var(--text-gray);
    font-size: 18px;
    line-height:1.7;
    margin-bottom:20px;
}
.story-image img {
    border-radius:8px;
    width:100%;
}

/* tab内容面板 默认隐藏 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* 产品详情页 */
.breadcrumb{font-size:14px;color:#666;margin-bottom:24px;}
.breadcrumb a{color:var(--primary-blue);}
.product-detail-row{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;background:#fff;padding:30px;border-radius:8px;box-shadow:0 1px 4px #00000010;}
.detail-img{border-radius:6px;overflow:hidden;}
.product-tag{display:inline-block;background:var(--primary-blue);color:#fff;padding:4px 10px;font-size:13px;border-radius:3px;margin-bottom:12px;}
.detail-right h1{font-size:28px;color:#222;margin-bottom:8px;}
.model{color:#777;font-size:16px;margin-bottom:16px;}
.spec-table{margin:24px 0;}
.spec-item{display:flex;padding:9px 0;border-bottom:1px solid #eee;}
.spec-item span:first-child{width:180px;color:#555;font-weight:600;}
.spec-item span:last-child{flex:1;color:#333;}

.card-block{background:#fff;padding:28px;border-radius:8px;box-shadow:0 1px 4px #00000010;}
.card-block h3{font-size:20px;color:#222;margin-bottom:18px;}
.feature-list li{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:#444;}
.feature-list li i{color:var(--primary-blue);}
.tag-group{display:flex;flex-wrap:wrap;gap:10px;}
.tag{background:#edf4fc;color:var(--primary-blue);padding:6px 12px;border-radius:20px;font-size:14px;}
.video-thumb{position:relative;border-radius:6px;overflow:hidden;cursor:pointer;}
.video-thumb i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:40px;color:#fff;opacity:0.8;}


/* 媒体查询 */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pc-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .product-detail-row{
        grid-template-columns:1fr;
    }
}

@media (max-width:768px){
    .hero{
        padding:120px 0 60px;
    }
    .hero-stats{
        grid-template-columns: 1fr;
    }
    .hero h1{
        font-size:2rem;
    }
    .timeline-wrap .center-line{
        left:20px;
        transform:none;
    }
    .timeline-dot{
        left:20px;
        transform:none;
    }
    .timeline-item{
        flex-direction:column;
        padding-left:48px;
        margin:30px 0;
    }
    .timeline-left,.timeline-right{
        width:100%;
        text-align:left;
        padding:0;
    }
    .story-text h2 {
        font-size:34px;
    }
    .story-text p {
        font-size:16px;
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 40px 0;
    }
    .section-head h2 {
        font-size: 26px;
    }
    .story-text h2 {
        font-size:28px;
    }
}

/* 面包屑 避开顶部固定导航遮挡 */
.breadcrumb {
    margin-top: 50px;
}

/* 移动端适配，小屏幕导航高度变小 */
@media (max-width:768px){
    .breadcrumb{
        margin-top: 70px;
    }
}


