/* ======================================
   前台全站通用样式
====================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* 统一容器居中 */
.container,
.wrap,
.main,
.faq-box,
.latest-articles,
.article-detail,
.article-list {
  width: 92% !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 头部导航 */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 99;
  padding: 12px 0;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h2 {
  font-size: 18px;
  color: #0066cc;
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover {
  color: #0066cc;
}

/* 汉堡按钮 */
.hamburger {
  width: 28px;
  height: 28px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: none;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu .close {
  text-align: right;
  font-size: 24px;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.banner h1 {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.banner p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.btn {
  background: #fff;
  color: #0066cc;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* 标题样式 */
.title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  color: #222;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #0066cc;
}

/* 设备轮播 */
#device {
  padding: 30px 0;
  background: #fff;
}
.device-slider {
  position: relative;
}
.slider-wrapper {
  overflow: hidden;
}
.slider-track {
  display: flex;
  gap: 15px;
  transition: transform 0.3s ease;
}
.device-card {
  min-width: 120px; /* 手机默认宽度 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 15px;
  text-align: center;
}
.device-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}
.device-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.device-card p {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.device-btn {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.left-btn {
  left: 5px;
}
.right-btn {
  right: 5px;
}

/* 系统核心功能 */
.features-section {
  padding: 30px 0;
  background: #f8f9fa;
}
.features-section .section-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC4列 */
  gap: 15px;
}
.feature-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #0066cc;
}
.feature-card p {
  font-size: 13px;
  color: #666;
}

/* 适用行业 */
.industry-section {
  padding: 30px 0;
  background: #fff;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* PC5列 */
  gap: 15px;
}
.industry-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  color: #fff;
}
/* 半透明遮罩：使用rgba，不影响文字 */
.industry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.4); /* 关键：rgba半透明，文字不透明 */
  z-index: 0;
}
.industry-card h3,
.industry-card p {
  position: relative;
  z-index: 1;
}
.industry-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.industry-card p {
  font-size: 12px;
}
.industry-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* 常见问题 */
.faq-section {
  padding: 30px 0;
  background: #f8f9fa;
}
.faq-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.faq-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #0066cc;
}
.faq-answer {
  font-size: 13px;
  color: #666;
}

/* 合作机构 */
.partner-wrap {
  padding: 30px 0;
  background: #fff;
}
.partner-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.partner-desc {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.partner-item {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.partner-item img {
  max-width: 60px;
  max-height: 40px;
  object-fit: contain;
}

/* 最新文章 */
#articles {
  padding: 30px 0;
  background: #f8f9fa;
}
.faq-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.faq-title h3 {
  font-size: 18px;
}
.more {
  font-size: 13px;
  color: #0066cc;
  text-decoration: none;
}
.article-faq-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.article-item-box {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}
.article-item-box:last-child {
  border-bottom: none;
}
.article-cover {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}
.info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.info span {
  font-size: 12px;
  color: #999;
}

/* 联系我们 */
.contact-section {
  padding: 30px 0;
  background: #fff;
}
.contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}
.contact-item {
  margin-bottom: 12px;
  font-size: 14px;
}
.contact-item span {
  color: #666;
}
.contact-item strong {
  color: #0066cc;
}

/* 底部 */
.footer {
  background: #222;
  color: #fff;
  padding: 25px 0;
  text-align: center;
}
.footer-copyright {
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 8px;
}
.footer-beian a {
  color: #ccc;
  font-size: 12px;
  text-decoration: none;
}

/* 弹窗表单 */
#apply-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 101;
  display: none;
  justify-content: center;
  align-items: center;
}
#apply-form > div {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  padding: 25px;
}
#apply-form h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}
#apply-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
#apply-form input,
#apply-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}
#apply-form button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
#apply-form button[type="submit"] {
  background: #0066cc;
  color: #fff;
  margin-bottom: 10px;
}
#apply-form button[type="button"] {
  background: #f0f0f0;
  color: #333;
}

/* ======================================
   手机端适配（≤768px）
====================================== */
@media (max-width: 768px) {
  /* 导航改为汉堡 */
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }

  /* 设备轮播：手机显示3个 */
  .device-card {
    min-width: 120px;
  }

  /* 功能/行业：手机3列 */
  .features-grid,
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner h1 {
    font-size: 28px;
  }
}

/* ======================================
   PC端适配（≥768px）
====================================== */
@media (min-width: 768px) {
  /* 设备轮播：PC显示4个 */
  .device-card {
    min-width: 220px;
  }

  /* 功能/行业：PC4列/5列 */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .banner h1 {
    font-size: 32px;
  }
}