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

body {
  background-color: #f9fcff;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

/* 容器样式 */
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 图片样式 */
img {
  max-width: 100%;
  vertical-align: middle;
  border: none;
}

/* 列表样式 */
ul, ol {
  list-style: none;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #2575fc;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

/* 科技感导航栏 */
.tech-nav {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.tech-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-nav .logo {
  display: inline-block;
}

.tech-nav .logo img {
  height: 50px;
  border-radius: 4px;
  transition: transform 0.3s;
}

.tech-nav .logo:hover img {
  transform: scale(1.05);
}

.tech-nav nav ul {
  display: flex;
  list-style: none;
}

.tech-nav nav ul li {
  margin: 0 15px;
  position: relative;
}

.tech-nav nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  position: relative;
}

/* 导航下划线动画 */
.tech-nav nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.tech-nav nav ul li a:hover::after,
.tech-nav nav ul li a.active::after {
  width: 100%;
}

/* 产品中心特殊样式 - 解决箭头压字 */
.menu-item-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* 文字与箭头的间距 */
  padding-right: 5px; /* 额外右侧空间 */
}

.menu-text {
  display: inline-block;
}

.dropdown-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
  width: 14px; /* 固定箭头宽度 */
  text-align: center;
}

.has-submenu:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* 下拉菜单修复 */
.tech-nav nav ul li.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 220px;
  padding: 10px 0;
  margin: 5px 0 0;
  display: none;
  z-index: 9999;
  transform-origin: top center;
  transform: scaleY(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.submenu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.submenu li a {
  display: block !important;
  padding: 10px 15px !important;
  color: #333 !important;
  font-size: 14px !important;
  white-space: nowrap;
}

.submenu li a::after {
  background-color: #2575fc !important;
  bottom: 6px !important;
}

.submenu li a:hover {
  background-color: #f5f9ff;
  color: #2575fc !important;
}

.tech-nav nav ul li.has-submenu:hover .submenu {
  display: block;
  transform: scaleY(1);
  opacity: 1;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
  color: #fff;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid #2575fc;
  color: #2575fc;
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border-color: transparent;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* 页脚样式 */
footer {
  background-color: #222;
  color: #aaa;
  padding: 40px 0 20px;
  text-align: center;
  margin-top: 80px;
  font-size: 14px;
}

footer .footer-content {
  margin-bottom: 30px;
}

footer p {
  line-height: 1.8;
  margin-bottom: 15px;
}

footer .footer-links {
  margin-top: 20px;
}

footer .footer-links a {
  display: inline-block;
  margin: 0 10px;
  color: #aaa;
}

footer .footer-links a:hover {
  color: #2575fc;
}

footer .copyright {
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* 标题通用样式 */
h2 {
  font-size: 28px;
  color: #222;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
  padding-bottom: 20px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 2px;
}

h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.4;
}

h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

/* 路径导航（面包屑） */
.breadcrumb {
  font-size: 14px;
  color: #666;
  margin: 20px 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #2575fc;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 5px;
  color: #999;
}

/* 表单通用样式 */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
}

.form-control:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1000;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 6px auto;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .container {
    width: 90%;
  }
}

@media (max-width: 992px) {
  .tech-nav nav ul li {
    margin: 0 10px;
  }
  
  .tech-nav .logo img {
    height: 45px;
  }
  
  h2 {
    font-size: 26px;
    margin: 50px 0 35px;
  }
}

@media (max-width: 768px) {
  .tech-nav {
    padding: 10px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .tech-nav nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    z-index: 998;
    transition: right 0.3s;
    padding-top: 70px;
  }
  
  .tech-nav nav.active {
    right: 0;
  }
  
  .tech-nav nav ul {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .tech-nav nav ul li {
    margin: 0 0 15px 0;
  }
  
  .tech-nav nav ul li a {
    color: #333 !important;
    font-size: 16px;
    padding: 8px 0;
  }
  
  .menu-item-with-arrow {
    gap: 5px;
  }
  
  .tech-nav nav ul li a::after {
    background-color: #2575fc;
  }
  
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: #f9f9f9;
    padding-left: 15px;
  }
  
  h2 {
    font-size: 24px;
    margin: 40px 0 30px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  footer {
    padding: 25px 0 15px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .tech-nav nav {
    width: 85%;
  }
  
  h2 {
    font-size: 22px;
    margin: 30px 0 25px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .breadcrumb {
    font-size: 12px;
  }
}