/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部信息栏 */
.top-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

/* 主轮播图 */
.main-banner {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('../media/banners/1.jpg') no-repeat center center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.main-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-banner h2 {
    font-size: 24px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
/* 轮播图容器 */
.banner-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* 轮播滑动区域 */
.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

/* 单张轮播图 */
.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*轮播箭头*/
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background-color: rgba(0,0,0,0.3);
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: background-color 0.3s;
}
.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.left-arrow {
    left: 30px;
}
.right-arrow {
    right: 30px;
}.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #4CAF50; /* 绿色 */
    border-radius: 4px;
    color: white;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: background-color 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-arrow:hover {
    background-color: #45a049; /* hover 色调略深 */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}
.consult-box {
    position: fixed;
    right: 0;
    top: 150px;
    width: 180px;
    background-color: #4d84e2;
    color: white;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    text-align: center;
    z-index: 1000;
    padding: 10px 5px;
}

.consult-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.consult-header small {
    font-weight: normal;
    font-size: 12px;
}

.consult-box .close-btn {
    cursor: pointer;
    font-size: 18px;
    margin-right: 5px;
}

.consult-img {
    width: 100px;
    height: 100px;
    margin: 10px auto;
}

.consult-avatar {
    width: 60px;
    height: 60px;
    margin: 5px auto;
}

.consult-section p {
    margin: 4px 0;
}

/* 轮播内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content h2 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 咨询按钮 */
.consult-box {
    margin: 30px 0;
}

.consult-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.consult-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.consult-btn span {
    display: block;
    line-height: 1.4;
}

.consult-btn span:last-child {
    font-size: 14px;
    opacity: 0.9;
}
.chat-box {
    position: fixed;
    left: 100px;
    top: 100px;
    width: 400px;
    height: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.chat-header {
    background-color: #f0f0f0;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    background-color: #fff;
    overflow-y: auto;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 5px;
}

.chat-footer button {
    margin-left: 10px;
    padding: 5px 10px;
}

.chat-close {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}


/* 联系信息 */
.contact-info {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* 轮播控制点 */
.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-dot.active {
    background-color: #e74c3c;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-container {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content h2 {
        font-size: 18px;
    }

    .consult-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .contact-info {
        font-size: 16px;
    }
}
/* 主要内容区 */
.main-content {
    padding: 40px 0;
    text-align: center;
}

.company-showcase {
    margin-bottom: 40px;
}

.company-showcase h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.company-showcase p {
    font-size: 18px;
    color: #7f8c8d;
}

/* 在线咨询按钮 */
.consultation-box {
    margin: 30px 0;
}

.consultation-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.consultation-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.consultation-btn span {
    display: block;
    line-height: 1.4;
}

.consultation-btn span:last-child {
    font-size: 14px;
    opacity: 0.9;
}

/* 页脚 */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.online-k {
    font-weight: bold;
    margin-top: 10px;
}

/*base*/
.top-info-bar {
    background-color: #222;
    color: white;
    font-size: 14px;
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left, .top-right {
    display: flex;
    align-items: center;
}

.top-left .icon-anchor,
.top-right .icon-phone {
    margin-right: 6px;
    font-size: 16px;
}

.main-header {
    background-color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-nav ul li {
    flex: 0 0 auto;                 /* ← 关键，阻止被压窄 */
    white-space: nowrap;
    position: relative;
    padding: 0 8px; /* 增加内边距 */
}

.main-nav ul li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -3px;
    color: #999;
    font-size: 14px;
}
.main-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}
/* 链接本身也不换行、强制横向书写 */
.main-nav > ul > li > a{
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb !important;
  width: auto !important;
  line-height: 1;                 /* 需要更高可调 1.2~1.6 */
}

/* 分隔符不要绝对定位，改成内联放在 li 右侧，避免把文字“切开” */
.main-nav > ul > li:not(:last-child)::after{
  content: "|";
  position: static;
  display: inline-block;
  margin: 0 10px 0 14px;          /* 与文字留一点间距 */
  color: #999;
  font-size: 14px;
}
.main-nav a:hover {
    color: #4d84e2;
}
/*产品展示区*/
.product-showcase {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* ✅ 关键修改 */
  gap: 20px;
  overflow-x: auto;  /* 如果超出宽度可横向滚动 */
  padding: 20px 0;
}

.product-item {
  flex: 0 0 25%;  /* ✅ 固定宽度为25%，刚好四个 */
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  padding: 20px;
  background: #fff;
  text-align: left;
  box-sizing: border-box;
}


.product-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product-item h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.product-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.product-item a {
  font-size: 14px;
  color: #0d6efd;
  text-decoration: none;
}

.product-item a:hover {
  text-decoration: underline;
}

/* 产品系列轮播样式 */
.product-series {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}

.series-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    overflow: hidden;
}

.series-slider {
    width: 100%;
    overflow: hidden;
}

.series-track {
    display: flex;
    transition: transform 0.5s ease;
    width: calc(125% + 60px); /* 5个项目宽度 + 间距 */
}

.series-item {
    flex: 0 0 20%; /* 每个项目占20%，一行显示5个 */
    padding: 0 15px;
    box-sizing: border-box;
    transition: all 0.3s;
    margin-right: 15px;
}

.series-item:last-child {
    margin-right: 0;
}

.series-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.series-item h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.series-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s;
}

.series-arrow:hover {
    background-color: rgba(0,0,0,0.8);
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .series-item {
        flex: 0 0 25%; /* 992px以下显示4个 */
    }
    .series-track {
        width: calc(133.33% + 60px); /* 调整宽度 */
    }
}

@media (max-width: 768px) {
    .series-item {
        flex: 0 0 33.33%; /* 768px以下显示3个 */
    }
    .series-track {
        width: calc(200% + 60px); /* 调整宽度 */
    }
}

@media (max-width: 576px) {
    .series-item {
        flex: 0 0 50%; /* 576px以下显示2个 */
    }
    .series-track {
        width: calc(300% + 60px); /* 调整宽度 */
    }
    .series-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* === 选择我们的理由 Section === */
.reason-section {
  background-color: #1a1a1a;
  color: #f2f2f2;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reason-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
  color: #ffffff;
}

.reason-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #f44336;
  margin: 10px auto 0;
}

.reason-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-top: 30px;
  gap: 40px;
  justify-content: space-between;
}

.reason-left {
  flex: 1;
  min-width: 500px;
}

.reason-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reason-right img {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.reason-right h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
}

.reason-right p {
  font-size: 15px;
  line-height: 1.8;
  color: #cccccc;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item img {
  width: 40px;
  height: 40px;
}

.feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}
/*新闻资讯*/
.news-section {
  padding: 60px 0;
  position: relative;
  background-color: #fff;
}

.news-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 20px 0;
}

.news-card {
  flex: 0 0 300px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 15px;
  box-sizing: border-box;
  position: relative;
}

.news-img {
  position: relative;
  margin-bottom: 10px;
}

.news-img img {
  width: 100%;
  border-radius: 4px;
}

.news-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: red;
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  text-align: center;
}

.news-date .month {
  font-size: 12px;
  display: block;
}

.news-date .day {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

.news-card h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0;
  color: #222;
}

.news-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

.news-arrow:hover {
  background-color: rgba(0,0,0,0.7);
}

.news-arrow.left-arrow {
  left: 10px;
}

.news-arrow.right-arrow {
  right: 10px;
}
/*页脚*/
.site-footer {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 50px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 240px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.footer-line {
  width: 40px;
  height: 2px;
  background-color: #c0392b;
  margin-bottom: 15px;
}

.footer-column p {
  line-height: 1.8;
  color: #ccc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  background-color: #3a3a3a;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.3s;
}

.footer-links a:hover {
  background-color: #4d84e2;
}

.footer-qrcode {
  width: 120px;
  height: 120px;
  margin-top: 10px;
  border-radius: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #333;
  margin-top: 30px;
}

.mobile-link {
  margin-left: 10px;
  color: #999;
  cursor: pointer;
}
/*语言选择*/
.language-form {
  margin: 0;
}

.language-form select {
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/*下拉菜单*/
.main-nav li.dropdown {
  position: relative;
}

.main-nav li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 0;
}

.main-nav li.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}


/* --- 导航：每个项目文字一行显示，不被压缩，也不被分隔符打断 --- */

/* 整体一行横排 */
.main-nav > ul{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;     /* 由你刚才的需求：不居中，顶对齐 */
  flex-wrap:nowrap;
  gap:0;
}

/* 菜单项不允许被 flex 收缩（否则会被压成一字宽） */
.main-nav > ul > li{
  flex:0 0 auto;              /* ← 关键：不收缩 */
  padding:0 12px;
  position:relative;
  white-space:nowrap;         /* li 自身不换行 */
}

/* 链接本身也强制一行、禁止 CJK 断字、横向书写 */
.main-nav > ul > li > a{
  display:inline-flex;        /* 避免行内盒子被奇怪断开 */
  align-items:center;
  white-space:nowrap !important;
  word-break:keep-all !important;      /* 中文不在字间断开 */
  writing-mode:horizontal-tb !important;
  width:auto !important;
  max-width:none !important;
  line-height:1.2;
}

/* 把绝对定位的分隔符取消，改为内联的左边框方式，避免插到文字中间 */
.main-nav > ul > li:not(:first-child){
  border-left:1px solid #999;
  margin-left:12px;
  padding-left:12px;
}
.main-nav > ul > li:not(:last-child)::after{
  content:none !important;    /* 覆盖掉原来的 ::after 竖线 */
}

/* 搜索与语言选择靠右，且不挤压菜单 */
.main-nav > ul > li.nav-search{ margin-left:auto; flex:0 0 auto; }
.main-nav > ul > li.lang-selector{ flex:0 0 auto; }

/* 适配窄屏：若空间确实不足，减小左右留白，避免再被迫换行 */
@media (max-width: 1280px){
  .main-nav > ul > li{ padding:0 8px; }
  .main-nav > ul > li:not(:first-child){ margin-left:8px; padding-left:10px; }
}

