/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", "Helvetica", sans-serif;
}

body {
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  min-height: 100vh; /* 确保页面至少占满一屏高度 */
  display: flex;
  flex-direction: column; /* 使用flex布局 */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 头部导航核心样式 */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* 滚动后导航样式 */
.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
  width: 100%;
  max-width: auto;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

/* 导航项下划线动画 */
.nav-item {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #708c8c;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* LOGO 容器 */
.logo-container {
  flex: 0 0 auto;
  padding: left 0;
}
.main-logo {
  height: 50px;
}

/* 主导航容器 */
.main-nav {
  flex: 1;
  margin: 0 60px;
  overflow: visible; /* 确保二级菜单不会被裁剪 */
}

/* 导航列表布局 */
.nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* 导航链接基础样式 */
.nav-link {
  display: inline-block;
  font-size: 16px;
  color: #fff; 
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s;
}

/* 滚动后导航链接颜色 */
.main-header.scrolled .nav-link {
  color: #333;
}
.nav-link:hover {
  color: #708c8c;
}

/* 导航栏不透明状态 */
.main-header.opaque {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 不透明状态下的链接颜色 */
.main-header.opaque .nav-link {
  color: #333 !important;
}

/* 二级菜单核心样式：产品中心 + 技术创新通用逻辑（已修改为全屏宽度） */
.submenu,
.product-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0; 
  width: 100vw;
  min-width: 100%;
  max-width: none; 
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999; 
}

/* 鼠标 hover 触发显示 */
.has-submenu:hover .submenu,
.product-dropdown:hover .product-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 二级菜单列表项 */
.submenu li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  transition: background-color 0.3s;
}
.submenu li a:hover {
  background-color: #f5f7fa;
  color: #708c8c;
}

/* 产品中心二级菜单特殊布局（左右分栏） */
.product-submenu {
  display: flex;
  gap: column;
}

/* 产品分类导航（左侧） */
.product-categories {
  width: auto;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  padding-right: auto;
}
.product-categories h3 {
  font-size: 18px;
  color: #0066b2;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.category-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.category-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #666;
}
.category-link.active,
.category-link:hover {
  background-color: #f5f7fa;
  color: #708c8c;
}
.category-link.active i,
.category-link:hover i {
  color: #708c8c;
}

/* 产品展示区（右侧） */
.product-display {
  flex-grow: 1;
  padding-left: 30px;
}
.product-display-item {
  display: none;
  animation: fadeIn 0.3s ease;
}
.product-display-item.active {
  display: flex;
  gap: 30px;
}
.product-display-item img {
  width: 300px;
  height: 220px;
  object-fit: contain;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 15px;
}
.product-info {
  flex-grow: 1;
}
.product-info h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}
.product-info p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}
.product-list li {
  margin-bottom: 10px;
}
.product-list a {
  color: #333;
  transition: color 0.3s;
}
.product-list a:hover {
  color: #708c8c;
  padding-left: 5px;
}

/* 头部右侧功能区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.language-switch {
  display: flex;
  gap: 8px;
}
.lang-btn {
  background: none;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  color: #050505;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-btn:hover {
  border-color: #708c8c;
  color: #708c8c;
}
.lang-btn.active {
  background-color: #708c8c;
  color: #050505;
  border-color: #708c8c;
}
.search-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}
.search-btn:hover {
  color: #708c8c;
}
.main-header.scrolled .lang-btn,
.main-header.scrolled .search-btn {
  color: #333;
}

/* 首屏轮播 */
.banner-carousel {
  position: relative;
  margin-top: 0;
  height: 1000px;
  overflow: hidden;
}
.carousel-wrapper {
  position: relative;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 20;
  max-width: 600px;
  color: #fff;
}
.banner-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.banner-text p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.banner-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #708c8c;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
}
.banner-btn:hover {
  background-color: #708c8c;
  transform: translateY(-3px);
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: #708c8c 0.3s;
  border: none;
  border-radius: 50%;
  color: #1d1c1c;
  font-size: 30px;
  cursor: pointer;
  z-index: 30;
  transition: background-color 0.3s;
}
.carousel-control.prev {
  left: 30px;
}
.carousel-control.next {
  right: 30px;
}
.carousel-control:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 30;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.indicator.active {
  width: 30px;
  border-radius: 6px;
  background-color: #fff;
}

/* 产品优势板块 */
.product-advantages {
  padding: 100px 0;
  background-color: #f9fafb;
  flex: 1; /* 占据剩余空间，将页脚推到底部 */
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
}
.section-title p {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}
.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 20px;
}
.advantage-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}
.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background-color: #e8f4fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #708c8c;
}
.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}
.advantage-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* 页脚 */
.main-footer {
  background-color: #1a1a1a;
  color: #999;
  padding: 80px 0 30px;
  margin-top: auto; /* 关键：自动填充上方空间 */
  width: 100%;
}
.footer-container {
  max-width: 1200px;
  max-height: 250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 0 20px;
}
.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #708c8c;
}
.footer-col ul li {
  margin-bottom: 15px;
}
.footer-col ul li a {
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: #708c8c;
}
.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.contact-info p i {
  width: 20px;
  margin-right: 10px;
  color: #708c8c;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.social-icons a:hover {
  background-color: #708c8c;
}

.copyright {
  text-align: center;
  padding-top: 50px;
  margin-top: 50px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #666;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .advantages-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .main-nav {
    display: none; /* 移动端隐藏默认导航，可添加汉堡菜单 */
  }
  .banner-text h2 {
    font-size: 32px;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-dropdown .product-submenu {
    width: 100vw;
    min-width: auto;
    flex-direction: column;
  }
  .product-categories {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .product-display {
    padding-left: 0;
  }
  .product-display-item.active {
    flex-direction: column;
  }
  .product-display-item img {
    width: 100%;
    margin: 0 auto 20px;
  }
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 400px;
  }
  .banner-text {
    left: 5%;
    max-width: 80%;
  }
  .banner-text h2 {
    font-size: 24px;
  }
  .advantages-container {
    grid-template-columns: 1fr;
  }
}

/* 关于我们页面样式 */
.about-us {
  padding: 120px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.company-intro, .company-history {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}
.about-content h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.about-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .about-content {
    gap: 30px;
  }
  .company-intro, .company-history {
    padding: 25px;
  }
}

/* 时间轴样式 */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #e8f4fc;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #708c8c;
  border: 4px solid #e8f4fc;
  z-index: 1;
}
.timeline-date {
  font-size: 18px;
  font-weight: bold;
  color: #0066b2;
  margin-bottom: 10px;
}
.timeline-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}
.timeline-content p {
  color: #666;
  line-height: 1.7;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .timeline {
    padding-left: 15px;
  }
  .timeline-item {
    padding-left: 30px;
    margin-bottom: 35px;
  }
  .timeline-date {
    font-size: 16px;
  }
}

.company-logo {
  text-align: center;
  margin-bottom: 30px;
}
.about-us .section-title {
  margin-top: 0;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 导航链接颜色修正 */
.main-header:not(.scrolled) .nav-link:hover {
  color: #708c8c !important;
}

/* 服务支持页面样式 */
.support-page {
    padding: 80px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.support-container {
    margin-top: 40px;
}

.support-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center; /* 新增：标签居中显示 */
}

.support-tabs::-webkit-scrollbar {
    display: none;
}

.support-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.support-tab.active {
    color: #708c8c;
}

.support-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #708c8c;
}

.support-tab:hover {
    color: #708c8c;
}

.support-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.support-section.active {
    display: block;
}

/* 技术文档样式 */
.docs-container {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.doc-category h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.doc-category ul {
    list-style: none;
}

.doc-category li {
    margin-bottom: 15px;
}

.doc-category a {
    display: flex;
    align-items: center;
    color: #666;
    transition: color 0.3s;
}

.doc-category a:hover {
    color: #708c8c;
}

.doc-category i {
    margin-right: 10px;
    color: #708c8c;
}

.doc-date {
    margin-left: auto;
    font-size: 14px;
    color: #999;
}

/* 常见问题样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.faq-question i {
    transition: transform 0.3s;
    color: #708c8c;
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

/* 服务流程样式 */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 修改：从space-between改为center */
    position: relative;
    margin: 50px 0;
    gap: 30px; /* 新增：步骤之间的间距 */
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: #e8f4fc;
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e8f4fc;
    color: #708c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: #666;
}

.process-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    color: #708c8c;
}

/* 联系客服样式 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e8f4fc;
    color: #708c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.contact-method h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.contact-method p {
    color: #666;
    margin-bottom: 15px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contact-btn {
    background-color: #708c8c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #5a7575;
}

.support-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f9fafb;
    padding: 40px;
    border-radius: 8px;
}

.support-form h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #708c8c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #5a7575;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-arrow {
        display: block;
        width: 100%;
        margin: -15px 0;
    }
    
    .process-arrow i {
        transform: rotate(90deg);
    }
    
    .support-form {
        padding: 25px;
    }
}