/* 全局样式 */
:root {
  --primary-color: #065F46;
  --primary-dark: #043A2E;
  --primary-light: #0B7F5E;
  --accent-color: #065F46;
  --accent-dark: #043A2E;
  --tech-green: #065F46;
  --deep-green: #065F46;
  --secondary-color: #37474f;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #fff;
  --black: #000;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --tech-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  --transition: all 0.3s ease;
}
/* 全局样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  background-color: #F9F9F9;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--accent-dark);
}

.section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #222222;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: #555555;
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222222;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* 页头样式 */
.header {
  background-color: transparent;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  position: absolute;
  left: 30px;
  top: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.logo-img {
  height: 45px;
  width: auto;
  margin-right: 15px;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  gap: 8px; /* 在中文和英文之间增加8px的间距 */
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 0; /* 移除底部margin，使用gap来控制间距 */
}

.logo-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

@media (max-width: 992px) {
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-subtitle {
    font-size: 0.6rem;
  }
}

.nav-container {
  background-color: transparent;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 450px;
  width: auto;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 30px;
  list-style: none;
  position: relative;
}

.nav-link {
  font-weight: 400;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 8px 0;
  display: block;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 8px;
  padding: 15px 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 为技术合作下拉菜单特别设置 */
.nav-item:nth-child(4) .dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
}

/* 滚动条样式 */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
  padding-left: 25px;
}

.get-quote {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--tech-shadow);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transition: all 0.3s ease;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
}

.get-quote:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.get-quote::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 27px;
  z-index: -1;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.qrcode {
  width: 120px;
  height: 120px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.qrcode img {
  width: 100px;
  height: 100px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #000000;
  margin: 15px auto 0;
}
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .logo-subtitle {
    font-size: 0.6rem;
  }
  
  .mobile-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .nav-container {
    padding: 0;
    right: 15px;
    top: 60px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-list {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(0, 0, 0, 0.95);
    margin-top: 10px;
    border-radius: 5px;
    min-width: auto;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    max-height: 800px;
    transform: none;
  }
  
  .dropdown-menu a {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu a:hover {
    padding-left: 15px;
    background: rgba(76, 175, 80, 0.2);
  }
  
  .dropdown-arrow {
    font-size: 0.6rem;
  }
  
  .get-quote {
    right: 15px;
    padding: 12px 16px;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
  
  .footer-column {
    flex: 0 0 100%;
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .logo {
    left: 10px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-subtitle {
    font-size: 0.55rem;
  }
  
  .get-quote {
    right: 10px;
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* --- 全局搜索按钮样式 --- */

/* 1. 基础样式 (所有页面通用) */
.search-icon-global {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%; /* 圆形 */
  background-color: rgba(0, 0, 0, 0.4); /* 半透明黑色背景 */
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.search-icon-global:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

/* 2. 【首页专属】悬浮样式 */
.homepage .search-icon-global {
  position: fixed; /* 关键：变成悬浮元素 */
  z-index: 998; /* 比导航栏低，比"获取报价"按钮高 */
  
  /* 精确坐标定位 (在"获取报价"按钮上方，导航栏下方) */
  right: 25px; 
  top: 120px; /* 在导航栏下方，获取报价按钮上方 */
}

/* 3. 【其他页面】在导航栏内的样式 */
/* 默认情况下，非首页的按钮会应用这里的样式 */
.nav-list .search-icon-global {
  position: static; /* 关键：回归正常的文档流 */
  background: transparent; /* 在导航栏里不需要背景 */
  color: white; /* 导航栏文字颜色 */
  width: auto;
  height: auto;
  padding: 12px 16px; /* 与其他导航链接一致的内边距 */
  border-radius: 0; /* 在导航栏里不需要圆形 */
  font-size: 16px;
  transition: all 0.3s ease;
}

.nav-list .search-icon-global:hover {
  background: rgba(255, 255, 255, 0.1); /* 悬停时的背景 */
  color: white;
  transform: none; /* 在导航栏里不需要缩放 */
}