/********** Template CSS **********/
:root {
    --primary: #7A7A7A;
    --secondary: #5F656F;
    --few: #FF5E14;
    --light: #F5F5F5;
    --dark:  #02245B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}

.text-primary {
    color: #b5d0f0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.bg-primary {
    background: linear-gradient(to bottom right, #cfd8e3, #a9b8c9);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.text-few {
  color: var(--few);
}
  

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Text ***/
/* 确保图片列撑起高度 */
.img-wrapper {
    min-height: 400px;  /* 这里的 400px 可以根据图片实际高度调 */
  }
  
  /* 文字列跟着 */
  .text-block {
    min-height: 400px;
  }

.my-text-block p {
    line-height: 1.8;       /* 行内行距：推荐 1.6 ~ 1.8 */
    margin-bottom: 1.5rem;  /* 段落底部空隙：推荐 1 ~ 1.5rem */
  }
  
 
  .my-text-block h3 {
    line-height: 1.2;        /* 标题行距比正文紧凑 */
    margin-bottom: 1rem;     /* 标题和下面文字间隔 */
  }

  .section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: left;
  }
  
  .section-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #02245B;
    margin-bottom: 20px;
  }
  
  .blue-line {
    width: 50px;
    height: 5px;
    background-color: #02245B;
    margin-bottom: 16px;
  }
  
  .section-content p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #555;
  }

/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-soft {
    display: inline-flex;
    float: right;
    align-items: center;
    background: transparent; /* 可以根据需要换颜色 */
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
  }
  
  .btn-soft .icon {
    display: flex;
    align-items: center;
    margin-left: 12px;
    position: relative;
  }
  
  .btn-soft .line {
    display: block;
    width: 40px;
    height: 2px;
    background: #004e9a; /* 按钮主色 */
    transition: width 0.3s ease;
  }
  
  .btn-soft .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #004e9a;
    border-radius: 50%;
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  .btn-soft .dot {
    width: 8px;
    height: 8px;
    background: #004e9a;
    border-radius: 50%;
  }
  
  /* Hover 状态：线缩短为 0 */
  .btn-soft:hover .line {
    width: 0;
  }

.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    background: var(--dark) !important;    /* 深蓝，和你背景搭 */
    color: #fff;            /* 白字更清晰 */
    border: 2px solid var(--dark); /* 同底色，简洁干净 */
    border-radius: 50px;    /* 大圆角， pill 样式 */
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }
  
  .btn-modern:hover {
    background: transparent !important; /* hover 时空心 */
    color: #003366;
    border-color: #003366;
  }

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}




.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}


/*** Navbar ***/
.navbar-overlay {
    position: absolute;
    top: 45px; /* topbar 大约高度 */
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
}


.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: transparent;
}



.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--light);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--light);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}




/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-caption.custom-caption {
    max-width: 900px;
    margin-left: 50px; /* 让它更靠左一些 */
    padding: 30px 0;
  }
  
  
  .carousel-caption .caption-headline {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  
  .carousel-caption .caption-description {
    font-size: 20px;
    font-weight: 400;
    color: #eee;
    margin-bottom: 60px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
     
}

/* 设置轮播容器固定高度 */
#warehouseCarousel .carousel-inner {
  height: 400px; /* 或其他你想要的固定高度 */
}

/* 图片自适应容器 */
#warehouseCarousel .carousel-item img {
  object-fit: cover;   /* 保持比例，裁剪填满 */
  height: 100%;
  width: 100%;
}

/* 防止img默认行为影响布局 */
#warehouseCarousel .carousel-item {
  height: 100%;
}

.page-header {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%), url(../img/production-hub.png) center center no-repeat;
    background-size: cover;
    min-height: 500px;  /* 可根据需求调高 */
    display: flex;
    align-items: center;
}


.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}

.fact-card {
    padding: 2rem 2rem;            /* 上下左右内边距调小 */
    border-radius: 1rem;             /* 圆角 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    background-color: rgba(255, 255, 255, 0.05);  /* 半透明背景 */
    border: 1px solid rgba(255, 255, 255, 0.15);  /* 边框更轻 */        
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 230px;   /* 固定高度 */
    min-width: 150px;    /* 固定宽度 */
    transition: all 0.3s ease;
}

/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.feature-list .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
  }
  
  .feature-list h6 {
    font-weight: 600;
    color: #001f4d;
  }

  .product-img {
    max-width: 100%;
    height: 500px; /* 限制最大高度，适应屏幕 */
    object-fit: contain; /* 保持比例居中展示 */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
    /*** Guarantee ***/
  .cert-section {
    padding: 60px 30px;
    width: 1400px;
    margin: 0 auto;
    text-align: center;
  }
  
  .cert-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--dark);
  }
  
  .cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  
  .cert-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 16px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .cert-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
  
  .cert-card p {
    margin-top: 12px;
    font-weight: 500;
    font-size: 15px;
    color: #444;
  }
  
  .cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-main-img {
    width: 320px;    /* 你想要的大正方形尺寸 */
    height: 327px;
    margin: 0 auto;  /* 居中，可选 */
    overflow: hidden; /* 裁切超出部分 */
  }
  
  .service-item .service-main-img img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: cover; /* 核心：自动填充并裁切 */
    display: block;
  }

.service-img {
    position: absolute;
    padding: 12px;
    width: 150px;
    height: 150px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
  }
  
  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/* ✅ 样式区 */
.custom-card {
    width: 1000px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  
  .custom-card .card-image {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
  }
  
  .custom-card .card-image img {
    width: 400px;
    height: 300px;
    display: block;
    object-fit: cover;
  }
  
 
  
  .custom-card.reverse {
    flex-direction: row-reverse;
  }
  
  
  .custom-card .card-text {
    flex: 1 1 60%;
    padding: 2rem;
  }
  
  .custom-card .card-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  .custom-card .card-text p {
    margin: 0;
    line-height: 1.6;
    color: #333;
  }

/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
    height: 350px;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 83px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}


.contact-sidebar {
  position: fixed;
  top: 35%;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 10px 5px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.contact-item {
  position: relative;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #0a58ca;
  font-size: 18px;
  cursor: pointer;
}

/* 浮出 tooltip 样式 */
.contact-tooltip {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
  z-index: 100;
}

.contact-item:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-10px, -50%);
}

.contact-tooltip .label {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 4px;
}

.contact-tooltip .value {
  display: block; /* 👈 添加这行 */
  font-size: 16px;
  color: #3480b6;
  font-weight: 600;
  margin-bottom: 4px; /* 👈 可选美化间距 */
}

.contact-tooltip img {
  width: 100px;
  height: 100px;
}


/* ========== Product Tabs Section ========== */
.product-page-wrapper {
    background-image: url(../img/steel-wire-bg.png); /* 路径根据实际修改 */
    background-size: cover;        /* 背景图自动放大或缩小，填满容器 */
    background-position: center;   /* 居中显示背景图 */
    background-repeat: no-repeat;  /* 防止背景图重复 */
    position: relative;
    background-attachment: fixed;
    z-index: 1;
    padding: 20px 0;
  }
  
  .product-container {
    display: flex;
    max-width: 1300px;  /* 设计感：卡片不贴边 */
    margin: 0 auto;
    gap: 24px; /* 左右间距 */
  }
  
  /* 左侧主类 */
  .sidebar {
    flex: 0 0 200px;
  }
  
  .main-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 8px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    border-radius: 6px;
  }
  
  .main-btn.active {
    background: var(--dark);
    color: #fff;
  }
  
  /* 右侧内容卡片 */
  .content-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 10px;
  }
  
  /* 小分类 tabs */
  .sub-tabs {
    margin-top: 15px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e8ef;
    padding: 0;  
  }
  
  .sub-btn {
    background: none;
    border: none;
    outline: none;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    position: relative;
    transition: color 0.3s;
  }
  
  .sub-btn.active {
    color: var(--dark);
  }
  .sub-btn.active::after {
    content: "";
    position: absolute;
    left: 0; 
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
  }
  
.tab-panels {
  text-align: left; /* 内容区可以改成居中或自定义 */
  margin-top: 30px;
  margin-bottom: 30px;
}

.tab-panel {
  display: none;
  padding: 20px;
}

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

/*** Footer ***/

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #B0B9AE;
  font-weight: normal;
  text-transform: capitalize;
  transition: .3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}
.footer {
  background-image: url(../img/footer-bg.JPG); /* 修改为你的图片路径 */
  background-size: cover;
  background-position: top; /* ✅ 保证从顶部开始截取 */
  color: #ddd;
  padding: 100px 40px 60px;
  min-height: 500px;
}

.footer-top {
  padding-top: 32px;  /* 或者 2rem, 看设计比例 */
}

.footer-divider {
  margin: 60px auto 20px;
  height: 1px;
  max-width: 1400px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 30px;
}

.dropdown-right {
  position: relative;
  display: inline-block;
}

.submenu-right {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  background-color: white;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 100;
}

.submenu-right a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.submenu-right a:hover {
  background-color: #f0f0f0;
}

.dropdown-right:hover .submenu-right {
  display: block;
}

.table-custom table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-top: 20px;
  }
  
  .table-custom th,
  .table-custom td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
    vertical-align: top;
  }
  
  .table-custom th {
    background-color: #f4f6f8;
    font-weight: bold;
    width: 20%;
  }
  
  .table-custom td {
    width: 30%;
  }
  
  .table-custom tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  .table-custom tr:hover {
    background-color: #f1f1f1;
  }
  
  .table-custom h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
  }

  #overview {
    padding: 20px 40px; /* 给父容器左右留 20px */
  }   
  #packaging {
    padding: 20px 40px;
    display: block;
  }
  #description {
    padding: 20px 40px;
    display: block;
  }
  #technical {
    padding: 20px 40px;
    display: block;
  }
  /* 让所有 chart 容器之间有间距 */
    #diameter-tolerance,
    #zinc-coating,
    #steel-chemistry {
    margin-bottom: 40px;  /* 可以根据需要调大调小 */
    }

    /* 如果表格有标题，标题和表格也可以拉开 */
    #diameter-tolerance h5,
    #zinc-coating h5,
    #steel-chemistry h5 {
    margin-bottom: 12px;
    }
  #features {
    padding: 20px 40px;
    display: block;
  }

  #features-content p {
    line-height: 1.7;
    margin-bottom: 20px;
  }
  
  #features-content ul {
    line-height: 1.8;
    padding-left: 1.5em;
  }
  
  #features-content ul li {
    margin-bottom: 10px;
  }

 .faq-section-plain {
  max-width: 800px;
  padding: 20px 40px;
}

.product-h {
  text-align: left;
  font-size: 25px;
  margin-bottom: 30px;
  border-left: 4px solid #005baa;
  padding-left: 15px;
}

.faq-block {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.faq-block h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #333;
}

.faq-block p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Helvetica Neue', sans-serif;
  }

  .product-actions p,
.product-actions ul {
    margin: 0;
    line-height: 1.5;
}

  .action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
  }
  
  

  .btn-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    width: 200px;
    justify-content: center;
  }

  .btn-prim {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: #fff;
  }

  .btn-prim:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    transform: translateY(-2px);
  }

  .btn-secondary {
    background-color: #00897b;
    color: #fff;
  }

  .btn-secondary:hover {
    background-color: #26a69a;
    transform: translateY(-2px);
  }

  .pdf-link {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #0d47a1;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .pdf-link:hover {
    color: #1565c0;
  }

  .chart-block {
    margin-top: 40px;
    margin-bottom: 48px;
  }


  .product-gallery {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .main-swiper {
    position: relative;
    height: 550px; 
    border-radius: 16px;
    padding: 30px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden; /* 不让图片/按钮撑破 */
  }
  
  .main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
  }

  .swiper-button-next,
.swiper-button-prev {
  width: 42px;
  height: 42px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #444 !important;  /* 加 !important 避免被 swiper 的 var() 覆盖 */
  font-weight: bold;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
  
  /* 缩略图 Swiper 样式 */
  .thumb-swiper {
    margin-top: 20px;
    padding: 0 10px;
  }
  
  .thumb-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
  }

  .thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .thumb-swiper .swiper-slide-thumb-active {
    border-color: #007bff; /* 选中时的边框颜色 */
    transform: scale(1.1); /* 放大效果 */
  }
  
  .thumb-swiper .swiper-slide-thumb-active {
    border-color: #007bff;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
  }
  
  .packaging-img {
    width: 100%;
    height: auto;
    display: block;
  }


    /* Production Line Section */
    .hero {
        text-align: center;
        padding: 160px 20px 100px;
        background: url(../img/production-line-bg.png) center/cover no-repeat;
        min-height: 500px;
        background-blend-mode: overlay;
    }
    .hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    }
    .hero p {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    }

    .features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    }
    .feature {
    background-color: #1c1f2e;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    }
    .feature i {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.5;
    }

    .section-timeline {
      background-image: url(../img/production-line-bg01.png);
      background-size: cover;
      background-attachment: fixed;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      z-index: 1;
    }
    .section-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    }
    .timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    }
    .timeline-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #ffffff;
    color: #222;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    }
    .timeline-img {
    width: 300px;
    height: 300px;
    border-radius: 6px;
    }
    .timeline-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b0f2b;
    }
    .timeline-text p {
    max-width: 400px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    }
    .timeline-arrow {
    font-size: 28px;
    color: #eee;
    margin: -10px 0;
    animation: bounce 2s infinite;
    }
    @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    }

     /* Factory Section */
     .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 每行两个 */
        gap: 60px;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px; /* 保证两边留白 */
      }
      
      .gallery-item {
        overflow: hidden;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background-color: #f9f9f9;
        border-radius: 8px;
      }
      
      .gallery-item img {
        width: 100%; /* 关键：不要用固定宽度 */
        height: 300px;
        object-fit: cover;
        display: block;
      }
      .caption {
        padding: 12px;
        font-weight: bold;
        font-size: 0.95em;
        background: #fff;
      }

      .partner-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url(../img/bg-partner.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0;
        position: relative;
      }
      
      
      .partner-container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        justify-content: flex-end;
        gap: 20px;
        flex-wrap: wrap;
      }
      
      .partner-text {
        flex: 1;
        color: white;
        max-width: 300px;
      }
      
      .partner-text .subheading {
        font-size: 18px;
        font-weight: 500;
        opacity: 0.8;
      }
      
      .partner-text .heading {
        font-size: 48px;
        font-weight: bold;
        margin: 10px 0;
      }
      
      .partner-grid {
        max-width: 700px;
        flex: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      
      .partner-grid img {
        width: 100%;
        max-width: 220px;
        height: auto;
        background: white;
        padding: 15px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
      }
      
      .partner-grid img:hover {
        transform: scale(1.05);
      }

      .modal-overlay {
        display: none; /* 默认隐藏 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        z-index: 9999;
        justify-content: center;
        align-items: center;
      }
      
      .modal-content {
        position: relative;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        max-width: 800px;
        width: 90%;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      }

      
      .modal-img.active {
        display: block;
      }
      
      
      .modal-img {
        display: none;
        width: 100%;
        max-height: 90vh;
        object-fit: contain;
      }
      
      .close-btn {
        position: absolute;
        top: 8px;
        right: 14px;
        font-size: 28px;
        font-weight: bold;
        color: #333;
        cursor: pointer;
      }
      
      .close-btn:hover {
        color: red;
      }
      
      .news-section {
        padding: 60px 20px;
        max-width: 1200px;
        margin: auto;
        text-align: center;
      }
      
      .headline {
        font-size: 2.8rem;
        margin-bottom: 40px;
      }
      
      .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
      }
      
      /* Card container */
      .news-card {
        background-color: #fff;               /* 默认白色背景 */
        transition: background-color 0.3s ease, border 0.3s ease;
        overflow: hidden;
      }
      
      
      
      /* Link wrapper for full card clickability */
      .card-link {
        display: block;
        text-decoration: none;
        color: inherit;
        padding: 12px;
      }
      
      /* Image style */
      .card-link img {
        width: 350px;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
      }
      
      /* Hover effect on the whole card */
      .news-card:hover {
        background-color: #f0f0f0;            /* 鼠标悬停时背景变深 */             /* 可选：边框也加深一点 */
      }
      
      /* Image zoom on hover */
      .news-card:hover img {
        transform: scale(1.03);
      }
      
      /* Date text */
      .date {
        font-size: 0.9rem;
        color: #777;
        margin: 10px 0 6px;
        text-align: left;
      }
      
      /* Headline style */
      .card-link h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #000;
        margin: 0;
        text-align: left;
        transition: color 0.2s ease;
      }
      
      /* Headline color change on hover */
      /* Button */
      .button-wrapper {
        margin-top: 40px;
        display: flex;
    justify-content: center;
      }
      
      .btn-news {
        display: inline-block;
        padding: 12px 30px;
        border-radius: 999px;
        background-color: #eee;
        color: #000;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s ease;
      }
      
      .btn-news:hover {
        background-color: #ddd;
      }