/* 自定义样式 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --text-color: #333333;
  --light-gray: #f8f9fa;
}

/* 通用样式 */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo样式 */
.logo img {
  max-height: 50px;
  width: auto;
}

/* 按钮样式 */
.btn-primary {
  /* background-color: var(--primary-color); */
  background: linear-gradient(141deg, #5ec949, #409eff);
  
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #004494;
}

/* 首屏大图样式 */
.hero-section {
  min-height: 600px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* 页脚样式 */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
  }

  .navbar {
    padding: 0.5rem;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 表单样式 */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 150px;
}

/* 产品展示样式 */
.product-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* 新闻列表样式 */
.news-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}

.news-item:last-child {
  border-bottom: none;
}


.category-button.active {
  background-color: var(--primary-color);
  color: white;
}

.news-item {
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}


.code {
  /* position: fixed; */
  /* left: 0;
  top: 0;
  width: 320px; */
  /* height: 100%; */
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  transition: transform 0.3s ease;
  /* z-index: 9999;
  display: none; */
}

.code.active {
  transform: translateX(0);
}

.logo-small {
  /* mix-blend-mode: multiply */
  /* width: 100%; */
}

.nav a {
  text-transform: uppercase;
  /* 确保首字母大写 */
}

.category-button.active {
  background-color: var(--primary-color);
  color: white;
}

.product-item {
  display: none;
}

.product-item.show {
  display: block;
}



.page ul li {
  float: left;
  border: 1px solid #ede7e7;

  margin-right: 10px;
  color: #666;
  cursor: pointer;
  transition: all 0.5s linear;
  border-radius: 5px;
}

.page ul li.disabled {
  padding: 8px 15px;
}

.page ul li a {
  display: block;
  padding: 8px 15px;
}

.page ul li.current {
  background-color: #1e80ff;
  border: none;
}

.page ul li.current a {
  color: #fff;

}

.article p {
  margin-bottom: 20px;
  text-indent: 2em;
  line-height: 26px;
  font-family: 14px;
}