/* ========== 全局重置 ========== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", PingFang SC, sans-serif;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: inherit;
}
img{
    max-width: 100%;
    display:block;
}
.container{
    width: 1200px;
    margin:0 auto;
    padding:0 20px;
}


/* ========== 首页右上角中英文切换 ========== */
.header-tool{
    display:flex;
    align-items:center;
    gap:24px;
}


/* 搜索图标 */
.search-icon{
    font-size:20px;
    color:#333;
    cursor:pointer;
    line-height:1;
}


/* 语言下拉外层 */
.lang-select{
    position:relative;
    cursor:pointer;
}


/* 当前显示：国旗 + 下拉箭头 */
.lang-current{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:6px 10px;
    border:1px solid #e5e7eb;
    border-radius:6px;
    background:#fff;
    transition:0.2s;
}


.arrow{
    font-size:14px;
    color:#333;
    line-height:1;
    display:flex;
    align-items:center;
}


.lang-current:hover{
    border-color:#2378cc;
}


/* 国旗图片 */
.flag-img{
    width:24px;
    height:16px;
    object-fit:cover;
    border-radius:2px;
    display:block;
}


/* 下拉菜单 */
.lang-drop{
    position:absolute;
    top:calc(100% + 6px);
    right:0;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:6px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    min-width:110px;
    padding:6px 0;
    list-style:none;
    display:none;
    z-index:999;
}


/* 下拉选项 */
.lang-drop li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    font-size:15px;
    color:#333;
}


.lang-drop li a:hover{
    background:#f3f7fb;
    color:#2378cc;
}


/* hover展开下拉 */
.lang-select:hover .lang-drop{
    display:block;
}


/* ========== 头部导航 ========== */
header{
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding:18px 60px;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,0.06);
    position:sticky;
    top:0;
    z-index:999;
}
.header-logo{
    display:flex;
    align-items:center;
    gap:10px;
}
.logo-img{
    width:auto;
    height:80px;
    background-image:url("../images/logo.png");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
}
.logo-text h2{
    font-size:22px;
    color:#111;
}
.logo-text p{
    font-size:12px;
    color:#666;
}
.main-nav ul{
    display:flex;
    gap:46px;
}
.main-nav li a{
    font-size:22px;
    color:#333;
    font-weight:bold;
    transition:0.25s;
}


/* Banner 文字从左侧界面外进入 */
.home-banner-text.animate-in h1{
    animation: bannerTextIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-banner-text.animate-in p{
    animation: bannerTextIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
    opacity:0;
}
.home-banner-text.animate-in .btn-blue{
    animation: bannerTextIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
    opacity:0;
}


@keyframes bannerTextIn{
    0%{
        opacity:0;
        transform:translateX(-150%);
    }
    100%{
        opacity:1;
        transform:translateX(0);
    }
}


.main-nav li a:hover,
.main-nav li a.active{
    color:#101011;
    font-weight: bold;
}


/* ========== Banner 公共样式 ========== */
.page-banner{
    height:650px;
    background:#f4f7fa;
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    padding:0 60px;
}
.page-banner h1{
    font-size:42px;
    color:#101011;
}
.page-banner p{
    font-size:22px;
    color:#101011;
    margin-top:8px;
    line-height:1.5;
}


/* 关于拓普页 Banner */
.about-page .page-banner{
    background-image:url("../images/SY08.png");
}
/* 产品页 Banner */
.product-page .page-banner{
    background-image:url("../images/SY06.png");
}
/* 新闻页 Banner */
.news-page .page-banner{
    background-image:url("../images/SY07.png");
}
/* 招聘页 Banner */
.recruit-page .page-banner{
    background-image:url("../images/SY09.png");
}
/* 联系我们页 Banner */
.contact-page .page-banner{
    background-image:url("../images/SY10.png");
}


.home-banner{
    height:1000px;
    background: #f4f7fa;
    background-image:url("../images/SY04.png");
    background-repeat:no-repeat;
    background-position:center;
    background-size:cover;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:0 60px;
}


.home-banner-text{
    max-width:540px;
    text-align:left;
}
.home-banner-text h1{
    font-size:42px;
    line-height:1.4;
    color:#101011;
    margin-bottom:18px;
}
.home-banner-text p{
    font-size:18px;
    color:#101011;
    line-height:1.7;
    margin-bottom:34px;
}
.btn-blue{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:13px 30px;
    background:#2378cc;
    color:#fff;
    border-radius:30px;
    font-size:16px;
    transition:0.25s;
}
.btn-blue:hover{
    background:#1c68b3;
}


/* ========== 首页：关于拓普模块 ========== */
.about-section{
    padding:80px 0;
}
.section-title{
    font-size:34px;
    text-align:center;
    margin-bottom:24px;
    color:#2378cc;
}
.section-desc{
    font-size:17px;
    color:#444;
    line-height:1.8;
    text-align:center;
    max-width:900px;
    margin:0 auto 40px;
}
.slogan{
    text-align:center;
    font-size:20px;
    color:#2378cc;
    margin-bottom:50px;
}
.stat-row{
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:30px;
}
.stat-item{
    text-align:center;
}
.stat-num{
    font-size:42px;
    font-weight:bold;
    color:#2378cc;
}
.stat-label{
    font-size:16px;
    color:#555;
    margin-top:8px;
}


/* ========== 首页：产品业务板块 ========== */
.biz-section{
    padding:70px 0;
    background:#f7f9fb;
}
.biz-grid{
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:24px;
}
.biz-grid-3col{
    grid-template-columns: repeat(3,1fr);
}
.biz-card{
    background:#fff;
    padding:20px;
    border-radius:8px;
    box-shadow:0 2px 12px rgba(0,0,0,0.06);
    display:flex;
    flex-direction:column;
}
.biz-card-img{
    width:100%;
    height:160px;
    background:#f4f7fa;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    border-radius:6px;
    margin-bottom:16px;
}
.biz-card h3{
    font-size:20px;
    color:#222;
    margin-bottom:16px;
}
.biz-card p{
    font-size:15px;
    color:#555;
    line-height:1.7;
    min-height:110px;
    margin-bottom:20px;
}
.link-more{
    display:inline-block;
    margin-top:12px;
    color:#2378cc;
}

/* 产品列表 一行一个，左右布局 */
.biz-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.biz-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding:24px;
}
/* 左侧产品图片容器 */
.biz-item-img {
    width: 500px;
    height: 500px; /* 调低高度，原来800太高，改成360更美观 */
    background:#fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius:6px;
    flex-shrink: 0;
}
/* 右侧文字区域 */
.biz-item-text {
    flex: 1;
}
.biz-item-text h3 {
    font-size:24px;
    color:#222;
    margin-bottom:20px;
}
/* 提升优先级，解决行距不生效 */
.content-wrap .biz-item-text p{
    font-size:15px;
    color:#555;
    line-height:1.4;
    margin-bottom:3px;
}

/* ========== 产品页：左侧侧边导航 + 右侧内容 双栏布局 ========== */
.side-product-wrap{
    display:flex;
    gap:30px;
    margin-top:30px;
}
/* 左侧产品侧边导航 */
.product-side-nav{
    width:220px;
    flex-shrink:0;
    background:#ffffff;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    border-radius:8px;
    overflow:hidden;
}
.product-side-nav ul li{
    border-bottom:1px solid #eee;
}
.product-side-nav ul li a{
    display:block;
    padding:16px 24px;
    font-size:16px;
    color:#333;
    transition:0.2s;
}
.product-side-nav ul li a:hover{
    background:#2378cc;
    color:#fff;
}
/* 右侧产品区域，自动占剩余宽度 */
.product-right-content{
    flex:1;
}

/* ========== 左侧固定悬浮产品导航 ========== */
.product-side-fixed-nav{
    position: fixed;
    left:30px;
    top:50%;
    transform: translateY(-50%);
    z-index:99;
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* show类 = 显示导航 */
.product-side-fixed-nav.show{
    opacity: 1;
    visibility: visible;
}
.product-side-fixed-nav ul{
    list-style: none;
}
.product-side-fixed-nav ul li{
    margin:16px 0;
}
.product-side-fixed-nav ul li a{
    font-size:22px;
    color:#333;
    transition: color 0.3s;
}
/* 当前选中文字灰色 */
.product-side-fixed-nav ul li a.active{
    color:#888;
}
.product-side-fixed-nav ul li a:hover{
    color:#2378cc;
}
html{
    scroll-behavior: smooth;
}
/* ========== 首页：新闻模块 ========== */
.news-section{
    padding:75px 0;
}
.news-subtitle{
    text-align:center;
    color:#666;
    margin-bottom:48px;
}
.news-list{
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:36px;
}
.news-item{
    display:flex;
    gap:20px;
}
.news-img{
    width:180px;
    height:130px;
    background:#d8e4f0;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    flex-shrink:0;
    border-radius:6px;
}
.news-content h4{
    font-size:17px;
    color:#222;
    margin-bottom:8px;
}
.news-date{
    font-size:13px;
    color:#888;
    margin-bottom:10px;
}
.news-intro{
    font-size:14px;
    color:#555;
    line-height:1.6;
}
.news-more-wrap{
    text-align:center;
    margin-top:45px;
}


/* ========== 内页通用内容容器 ========== */
.content-wrap{
    padding:80px 0;
}
.content-wrap p{
    font-size:16px;
    line-height:1.8;
    color:#444;
    margin-bottom:16px;
}
.content-wrap p strong{
    color:#2378cc;
    min-width:100px;
    display:inline-block;
}


/* ========== 页脚 ========== */
footer{
    background:#1a2330;
    color:#cccccc;
    padding:50px 0;
}
.footer-row{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:40px;
}
.footer-block h5{
    color:#fff;
    font-size:17px;
    margin-bottom:16px;
}
.footer-block p{
    line-height:1.8;
    font-size:15px;
}
.footer-block a{
    color:#ccc;
}
.footer-block a:hover{
    color:#2378cc;
}


/* ========== 响应式移动端 ========== */
@media(max-width:1240px){
    .container{
        width:100%;
    }
}
@media(max-width:768px){
    header{
        padding:12px 20px;
    }
    .home-banner{
        height:340px;
        padding:0 20px;
    }
    .page-banner{
        height:260px;
        padding:0 20px;
    }
    .stat-row{
        grid-template-columns: repeat(2,1fr);
    }
    .biz-grid{
        grid-template-columns: repeat(2,1fr);
    }
    .news-list{
        grid-template-columns:1fr;
    }
    .footer-row{
        grid-template-columns:1fr;
    }
}
/* ========== 关于拓普 图片横向滚动走马灯 ========== */
.about-marquee {
  width: 100%;
  height: 550px; /* 外层窗口高度600px */
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.about-marquee-track {
  display: flex;
  gap: 20px; /* 图片间距20px */
  width: max-content;
  animation: marqueeLeft 35s linear infinite;
  /* 增加垂直居中 */
  align-items: center;
  height:100%;
}
.about-marquee-track img {
  height: 520px;
  width: 360px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
/* 从右往左滚动动画 */
@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}