/* 基本重置和全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

.logo-text .trademark {
  font-size: 16px;
  color: #666;
  margin-left: 2px;
}

.logo-text .tagline {
  font-size: 14px;
  color: #666;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Banner样式 */
.banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.banner:hover img {
  transform: scale(1.05);
}

/* 公司介绍样式 */
.company-intro {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.intro-content {
  text-align: justify;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #007bff;
}

.intro-content p {
  margin-bottom: 15px;
}

/* 产品展示样式 */
.products {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.product-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  margin-bottom: 10px;
  color: #333;
}

.product-info p {
  color: #666;
  margin-bottom: 15px;
}

.price-info {
  color: #007bff;
  font-weight: bold;
}

/* 应用领域样式 */
.application-areas {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.area-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.area-item h3 {
  color: #007bff;
  margin-bottom: 15px;
}

/* FAQ样式 */
.faq {
  padding: 80px 0;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.faq-question {
  padding: 15px 0;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #007bff;
}

.faq-question::after {
  content: "▼";
  font-size: 12px;
  transition: transform 0.3s;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 15px 0;
  color: #666;
  display: block;
}

/* 友情链接样式 */
.friendship-links {
  padding: 40px 0;
  background-color: #f8f9fa;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.links-container a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s;
}

.links-container a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 联系方式样式 */
.contact {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.contact-item {
  text-align: center;
}

.contact-item h3 {
  margin-bottom: 20px;
  color: #333;
}

.contact-item p {
  margin-bottom: 10px;
}

.contact-item img {
  max-width: 150px;
  margin-top: 20px;
}

/* 城市链接样式 */
.city-links {
  padding: 40px 0;
  background-color: #f8f9fa;
}

.city-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.city-links-grid a {
  display: block;
  text-align: center;
  padding: 15px;
  background-color: #fff;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.city-links-grid a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
}

/* 底部样式 */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: #fff;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.footer-section a:hover {
  color: #007bff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #ccc;
}

/* 图片放大模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 导航栏 */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    padding: 20px 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  /* Banner */
  .banner {
    height: 300px;
  }

  /* 产品展示 */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* 页脚 */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Logo */
  .logo-text {
    font-size: 20px;
  }

  /* 标题 */
  .section-title {
    font-size: 24px;
  }

  /* 产品展示 */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* 应用领域 */
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* 加载优化 */
img {
  loading: lazy;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}
