/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.container {
  width: 100%;
  padding: 0 280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 导航栏 */
.header {
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-wrapper {
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 36px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #1890ff;
}

.nav-btn {
  background: #1890ff;
  color: #fff;
  padding: 6px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: #40a9ff;
}

/* Hero 区域 */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background: url("../images/official-website-bg.png") no-repeat right 10%;
  background-size: cover;
}

.hero-bg-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 修正蒙版从左到右渐变 */
  background: linear-gradient(90deg, #010515 0%, rgba(1, 5, 21, 0.8) 40%, rgba(1, 9, 25, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero-subtitle {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #4d88ff);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 公用段落样式 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 56px;
  font-weight: 500;
  margin-bottom: 60px;
  color: #222;
}

/* 行业痛点 */
.pain-points-section {
  background: #fff;
}

.pain-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pain-card {
  background: #f8f9fd;
  height: 440px;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pain-card img {
  height: 184px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
}

.pain-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.pain-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  text-align: center;
}

/* 产品优势 */
.advantages-tabs {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.advantages-tabs .tab {
  padding: 10px 0;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 30px;
}

.advantages-tabs .tab:hover {
  color: #1890ff;
}

.advantages-tabs .tab.active {
  color: #1890ff;
  font-weight: 600;
}

.advantages-tabs .tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: #1890ff;
  border-radius: 2px;
}

.advantages-content {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.adv-item {
  display: none;
  position: relative;
  width: 100%;
  background: #f4f7fc; /* Match general background for edges if needed */
}

.adv-item.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.adv-item img {
  width: 100%;
  display: block;
}

.adv-text {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  width: 360px;
  text-align: left;
}

.adv-text h3 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.adv-text h3 .highlight {
  color: #1890ff;
}

.adv-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 案例场景 */
.carousel {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 1000px;
  height: 480px;
  perspective: 1200px;
}

.carousel .item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 650px;
  height: 380px;
  border-radius: 12px;
  transition: all 0.5s ease;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.carousel .item.active {
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  z-index: 3;
  opacity: 1;
  width: 800px;
  height: 480px;
}

.carousel .item.left {
  left: 0;
  transform: translate(-30%, -50%) translateZ(-100px);
  z-index: 2;
  opacity: 0.7;
}

.carousel .item.right {
  left: 100%;
  transform: translate(-70%, -50%) translateZ(-100px);
  z-index: 2;
  opacity: 0.7;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>')
    no-repeat center center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.carousel-btn.next {
  right: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 24 24"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
}

.carousel-btn.prev {
  left: 0;
}

/* 页脚 */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px 0;
  color: #ccc;
  background: #232526;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .ml-20 {
  margin-left: 30px;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer a:hover {
  color: #1890ff;
}

.dzzz-link img {
  width: 20px;
  height: 20px;
}

/* 响应式调整 - 小屏幕 */
@media screen and (max-width: 1600px) {
  .container {
    padding: 0 160px;
  }
  .pain-card {
    height: 430px;
  }
  .pain-title {
    font-size: 22px;
  }
  .carousel-track {
    width: 800px;
    height: 360px;
  }
  .carousel .item {
    width: 500px;
    height: 300px;
  }
  .carousel .item.active {
    width: 600px;
    height: 360px;
  }
}

/* 响应式调整 - 移动端 (手机) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    justify-content: space-between;
  }
  .logo-img {
    height: 28px;
  }
  .nav {
    gap: 10px;
  }
  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hero-title {
    font-size: 32px;
    margin-top: 40px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  /* 行业痛点改为纵向排列 */
  .pain-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pain-card {
    height: auto;
    padding: 20px;
  }
  .pain-card img {
    height: auto;
    max-height: 160px;
  }
  .pain-title {
    font-size: 22px;
  }
  .advantages-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .advantages-tabs .tab {
    font-size: 16px;
    padding: 6px 12px;
  }
  .advantages-tabs .tab::after {
    display: none;
  }
  .advantages-content {
    height: auto;
  }
  .adv-item {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
  }
  .adv-item img {
    max-width: 100%;
    margin-right: 0;
  }
  .adv-text {
    position: static;
    max-width: 100%;
    padding: 0 10px;
    text-align: center;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .adv-text h3 {
    font-size: 24px;
    justify-content: center;
  }
  .carousel-track {
    width: 100%;
    height: 260px;
  }
  .carousel .item {
    width: 220px;
    height: 130px;
  }
  .carousel .item.active {
    width: 260px;
    height: 160px;
  }
  .carousel .item.left {
    transform: translate(-20%, -50%) translateZ(-100px);
  }
  .carousel .item.right {
    transform: translate(-80%, -50%) translateZ(-100px);
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  .carousel-btn.prev {
    left: -10px;
  }
  .carousel-btn.next {
    right: -10px;
  }
  .footer-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer .ml-20 {
    margin-left: 0;
  }
  .footer a, .footer span {
    font-size: 12px;
    justify-content: center;
  }
}

