/* 字体声明已移至 css/common/fonts.css 统一管理 */

/* 动画样式 */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__delay-1s {
  animation-delay: 0.2s;
}

.animate__delay-2s {
  animation-delay: 0.4s;
}

.animate__delay-3s {
  animation-delay: 0.6s;
}

.animate__faster {
  animation-duration: 0.5s;
}

/* 交互效果 */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-5px);
}

/* AOS初始化前隐藏元素 */
[data-aos] {
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* 顶部横幅 */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -70px; /* 添加负边距，消除间隙 */
  padding-top: 70px; /* 添加内边距，为导航栏留出空间 */
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/merchant-verification/hf.jpg") no-repeat center
    center;
  background-size: cover;
  z-index: 0;
}

.hero-banner > .container {
  display: flex;

  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px;
  position: relative;
  z-index: 1;
}

.banner-left {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  top: -10%;
}

.banner-title {
  font-size: 48px;
  width: 100%;
  font-family: var(--font-heading);
  color: #0066ff;
  margin-bottom: 30px;
}

.banner-subtitle {
  font-size: 36px;
  font-family: var(--font-heading);
  color: #333333;
  margin-bottom: 12px;
}

.banner-desc {
  font-size: 36px;
  font-family: var(--font-heading);
  color: #333333;
  margin-bottom: 32px;
}

.qrcode-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  background-color: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-qrcode {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.qrcode-tip {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

.banner-right {
  position: absolute;
  right: 10%;
  top: 30%;
  transform: translateY(-50%);
}

.app-preview-box {
  border-radius: 18px;
  margin-top: 30px; /* 添加上边距，使图片向下移动 */
}

.app-preview-img {
  width: 360px;
  max-width: 100%;
  display: block;
}

.banner-image {
  flex: 1;
  max-width: 400px;
  animation: float 6s ease-in-out infinite;
}

.banner-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
  .hero-banner > .container {
    padding: 100px 20px;
  }
}

@media screen and (max-width: 992px) {
  .hero-banner > .container {
    padding: 80px 20px;
  }
}

@media screen and (max-width: 900px) {
  .hero-banner > .container {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }
  .banner-left,
  .banner-right {
    min-width: 0;
    width: 100%;
    align-items: center;
  }
  .banner-left {
    margin-bottom: 32px;
  }
  .app-preview-img {
    width: 160px;
  }
}

/* 通用样式 */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.section-desc {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

.merchant-benefits .section-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.merchant-benefits .section-desc {
  margin-bottom: 40px;
}

/* 商户权益部分 */
.merchant-benefits {
  padding: 80px 0;
  background-color: #fff;
}

.benefits-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 260px;
  gap: 60px;
}

.benefit-item {
  flex: 0 1 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-10px) scale(1.03);
}

.benefit-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-icon img {
  width: 100%;
  height: 100%;
}

.benefit-content_title {
  font-size: 20px;
  color: #333;
  font-family: var(--font-medium);
  font-weight: 65 Medium;
  margin-bottom: 12px;
}

.benefit-content_desc {
  font-size: 14px;
  font-family: var(--font-light);
  font-weight: 45 Light;
  color: #333333;
  line-height: 1.5;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 选择理由部分 */
.choose-reasons {
  padding: 60px 0;
  background-color: #F2F4FA;
}

.choose-reasons .section-title {
  font-size: 28px;
  margin-bottom: 10px;
  font-family: var(--font-medium), sans-serif;
}

.choose-reasons .section-desc {
  font-size: 16px;
  margin-bottom: 40px;
  font-family: var(--font-primary), sans-serif;
}

.reasons-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.reason-item {
  background: #fff;
  padding: 20px 30px;
  border-radius: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #f0f0f0;
  height: 80px;
}

.reason-item:hover {
  transform: translateY(-5px);
}

.reason-title {
  width: 90px;
  margin-right: 30px;
  text-align: center;
  padding-right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reason-title img {
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.reason-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  font-family: var(--font-light), sans-serif;
  margin: 0;
  flex: 1;
}

/* 联系我们部分 */
.contact-us {
  padding: 80px 0;
  text-align: center;
}

.contact-form {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  max-width: 440px;
  margin: 0 auto;
}

.contact-input {
  flex: 1;
  border: 1.5px solid #E3EAF5;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  background: #fff;
  color: #A9A9A9;
  font-family: var(--font-light), sans-serif;
  font-weight: 45 Light;
  box-shadow: none;
  /* transition: border-color 0.2s; */
}

.contact-input::placeholder {
  color: #C0C7D1;
  font-size: 15px;
}

.contact-input:focus {
  border: 1.5px solid #4CA6FF;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: #333;
}

.contact-submit {
  /* margin-left: 8px; */
  padding: 0 28px;
  height: 42px;
  border: none;
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-medium), sans-serif;
  font-weight: 65 Medium;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.contact-submit:hover {
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
  transform: none;
}

.contact-input:hover {
  border: 1.5px solid #4CA6FF;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
  .benefits-container {
    padding: 0 20px;
    gap: 40px;
  }

  .benefit-item {
    flex: 0 1 100%;
    max-width: 220px;
  }

  .reasons-container {
    grid-template-columns: 1fr;
  }

  .reason-item {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 20px;
  }

  .reason-title {
    margin-right: 0;
    margin-bottom: 15px;
    padding-right: 0;
    text-align: center;
    padding-bottom: 10px;
    width: 100%;
  }

  .reason-title img {
    max-width: 80px;
  }

  .contact-form {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }
}
