/* 基础设置：所有页面通用 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1D2129;
  background-color: #fff;
  line-height: 1.6;
}

/* 容器：控制内容宽度，居中显示 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 字体样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: #86909C;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: #165DFF;
  transition: color 0.3s ease;
}

a:hover {
  color: #0E42D2;
}
.contact-phone{
  display: none;
}
/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background-color: #165DFF;
  color: white;
}

.btn-primary:hover {
  background-color: #0E42D2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.section.section:first-of-type {
    padding-top: 8rem !important;
    padding-bottom: 4rem;
}

.iw{
  max-width: 30rem;
}

.btn-outline {
  border: 1px solid #165DFF;
  background-color: transparent;
  color: #165DFF;
}

.btn-outline:hover {
  background-color: #f0f5ff;
  transform: translateY(-2px);
}

/* 导航栏样式 */
#navbar {
  position: fixed;
  top: 0;
  height: 5rem;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: all 0.3s ease;
}

/* 滚动后的导航栏样式 */
#navbar.nav-scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

/* 导航栏内容容器 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo样式 */
.logo {
  display: flex;
  align-items: center;
  color: #1D2129;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: #165DFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* 导航链接（桌面端） */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #1D2129;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #165DFF;
}

.nav-links a.text-primary {
  color: #165DFF;
  font-weight: 600;
}

/* section通用样式 */
.section {
  padding: 3rem 0;
}

/* 移动菜单样式 */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: #1D2129;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #165DFF;
  background-color: #f9fafb;
}

.mobile-menu a.text-primary {
  color: #165DFF;
  font-weight: 600;
}

/* 响应式：手机端导航按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1D2129;
  z-index: 101;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 导航栏 */
  .nav-links {
    display: none;
  }
  .fw{
    flex-direction: column;
  }
  .menu-toggle {
    display: block;
    font-size: 1.7rem;
    padding: 0.5rem;
  }
  .contact-phone{
    display: block;
    font-size: 0.9rem;
    margin-left: 10px;
    color: #86909C;
  }
  .nav-container {
    padding: 0 10px;
  }
  .iw{
    max-width: 80vw;
  }
  
  /* 导航栏优化 */
  #navbar {
    height: 4.5rem;
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  }
  
  .logo {
    font-size: 1.3rem;
  }
  .logo img {
    width: 3rem !important;
  }
  
  /* 通用响应式调整 */
  .section {
    padding: 2.5rem 0;
  }
  
  /* 按钮 */
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
  
  /* 容器内边距调整 */
  .container {
    padding: 0 15px;
  }
  
  /* Banner区域适配 */
  section.section:first-of-type {
    padding-top: 6rem !important;
    padding-bottom: 4rem;
  }
  
  .flex.md\:flex-row {
    flex-direction: column;
    height: auto !important;
    gap: 2rem !important;
  }
  
  .flex-6,
  .flex-4 {
    flex: 1 1 auto;
    width: 100%;
  }
  
  .carousel-container {
    min-height: 250px;
    height: 280px;
  }
  
  .carousel-slides {
    height: 100% !important;
  }
  
  /* 按钮组适配 */
  .flex.flex-wrap.gap-4 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .flex.flex-wrap.gap-4 a {
    margin-left: 0 !important;
    text-align: center;
  }
}

/* 产品卡片样式 */
.product-card {
  width: 100%;
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .card-content {
  padding: 1.5rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

/* 技术参数表格样式 */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.specs-table tr:hover {
  background-color: #f9fafb;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 1rem;
}

.specs-table td:first-child {
  width: 30%;
  background-color: #f9fafb;
  font-weight: 500;
}

/* 页脚样式 */
footer {
  background-color: #1D2129;
  color: white;
  padding: 3rem 0;
}

footer .logo {
  color: white;
}

footer h3 {
  color: white;
  margin-bottom: 1rem;
}

footer a {
  color: #86909C;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #86909C;
}

/* 表单样式 */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #165DFF;
}

/* Flexbox辅助类 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}
.flex-6 {
  flex: 6;
}
.flex-4 {
  flex: 4;
}
.md:flex-row {
  flex-direction: row;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.max-w-2xl {
  max-width: 40rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-8 {
  margin-top: 2rem;
}

