/* ==================== 全局重置 ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: "PingFang SC", "Inter", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  background: #fafafe;
  color: #1a1d30;
  overflow-y: auto;
}

/* ==================== 全局容器 ==================== */
.app-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
  min-width: 375px;
  background: #fafafe;
}

/* ==================== 通用内边距 ==================== */
section,
header,
.footer {
  padding-left: max(24px, 5vw);
  padding-right: max(24px, 5vw);
}

/* ==================== 顶部导航 ==================== */
.header {
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(98, 64, 224, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-animate {
  animation: headerSlide 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
}
@keyframes headerSlide {
  to { opacity: 1; transform: translateY(0); }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  border-radius: 10px;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #1a1d30;
  letter-spacing: 0.5px;
}
.logo-en {
  font-size: 12px;
  color: #989bb0;
  margin-left: 6px;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ==================== Banner ==================== */
.banner {
  min-height: 560px;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(98, 64, 224, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(155, 92, 246, 0.04) 0%, transparent 50%),
    #fafafe;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 60px 0;
  position: relative;
}
.banner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 86, 255, 0.2), transparent);
}
.banner-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.banner-tag {
  display: inline-block;
  font-size: 13px;
  color: #6240e0;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(120, 86, 255, 0.08);
  border: 1px solid rgba(120, 86, 255, 0.18);
  letter-spacing: 1px;
  font-weight: 500;
}
.banner-title {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  color: #1a1d30;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1d30 30%, #6240e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: #585b74;
  line-height: 1.7;
  max-width: 500px;
}
.banner-img-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.banner-img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(98, 64, 224, 0.12));
}

/* ==================== 入场动画 ==================== */
.fade-in-up {
  animation: fadeUp 1s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(50px);
}
.fade-in-right {
  animation: fadeRight 1s ease-out 0.4s forwards;
  opacity: 0;
  transform: translateX(50px);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ==================== 滚动触发动画 ==================== */
.animate-title,
.animate-card,
.animate-service,
.animate-step,
.animate-clients,
.animate-footer {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.show-animate {
  opacity: 1;
  transform: translateY(0);
}
.animate-card:nth-child(1) { transition-delay: 0.08s; }
.animate-card:nth-child(2) { transition-delay: 0.16s; }
.animate-card:nth-child(3) { transition-delay: 0.24s; }
.animate-card:nth-child(4) { transition-delay: 0.32s; }
.animate-service:nth-child(1) { transition-delay: 0.08s; }
.animate-service:nth-child(2) { transition-delay: 0.16s; }
.animate-service:nth-child(3) { transition-delay: 0.24s; }
.animate-service:nth-child(4) { transition-delay: 0.32s; }
.animate-service:nth-child(5) { transition-delay: 0.40s; }
.animate-service:nth-child(6) { transition-delay: 0.48s; }
.animate-step:nth-child(1) { transition-delay: 0.08s; }
.animate-step:nth-child(2) { transition-delay: 0.16s; }
.animate-step:nth-child(3) { transition-delay: 0.24s; }
.animate-step:nth-child(4) { transition-delay: 0.32s; }
.animate-step:nth-child(5) { transition-delay: 0.40s; }
.animate-step:nth-child(6) { transition-delay: 0.48s; }

/* ==================== 核心价值 ==================== */
.core-value {
  padding: 80px 0;
  background: #fff;
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.title-en {
  font-size: 12px;
  color: #6240e0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}
.section-title h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  margin: 12px 0 20px;
  color: #1a1d30;
}
.title-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #6240e0, #9b5cf6);
  margin: 0 auto;
  border-radius: 2px;
}
.value-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.value-card {
  width: 100%;
  max-width: 270px;
  background: #fff;
  border: 1px solid #e8e9f2;
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.value-card:nth-child(1) { border-top: 3px solid #6240e0; }
.value-card:nth-child(2) { border-top: 3px solid #22d3ee; }
.value-card:nth-child(3) { border-top: 3px solid #f59e0b; }
.value-card:nth-child(4) { border-top: 3px solid #10b981; }
.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(120, 86, 255, 0.3);
  box-shadow: 0 16px 48px rgba(98, 64, 224, 0.1);
}
.card-icon {
  font-size: 38px;
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a1d30;
}
.value-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #585b74;
}

/* ==================== 服务全案 ==================== */
.services {
  padding: 80px 0;
  background: #f5f3fe;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 86, 255, 0.12), transparent);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  color: #1a1d30;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px;
  color: #585b74;
  margin-bottom: 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  padding: 8px 18px;
  background: rgba(120, 86, 255, 0.07);
  border-radius: 24px;
  font-size: 13px;
  color: #6240e0;
  border: 1px solid rgba(120, 86, 255, 0.16);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.service-item {
  width: 100%;
  max-width: 330px;
  background: #fff;
  border: 1px solid #e8e9f2;
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(120, 86, 255, 0.35);
  box-shadow: 0 20px 56px rgba(98, 64, 224, 0.1);
}
.service-item:hover .item-icon {
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  color: #fff;
}
.item-icon {
  width: 48px;
  height: 48px;
  background: rgba(98, 64, 224, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(120, 86, 255, 0.16);
  color: #6240e0;
  transition: all 0.35s ease;
}
.service-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1d30;
  margin-bottom: 12px;
}
.service-item p {
  font-size: 14px;
  color: #585b74;
  line-height: 1.7;
}
.item-features {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.item-features li {
  font-size: 12px;
  color: #6240e0;
  padding: 4px 12px;
  background: rgba(120, 86, 255, 0.07);
  border-radius: 12px;
  font-weight: 500;
}

/* ==================== 服务流程 ==================== */
.process {
  padding: 80px 0;
  background: #1a1d30;
  color: #fff;
  position: relative;
}
.process-title {
  text-align: center;
  margin-bottom: 56px;
}
.process-title h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.title-sub {
  font-size: 14px;
  color: #9b8cf6;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 10px 0 20px;
  font-weight: 600;
}
.process .title-line {
  background: linear-gradient(90deg, #6240e0, #9b5cf6);
}
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.step-item {
  width: 150px;
  text-align: center;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.35s ease;
}
.step-item:hover {
  background: rgba(120, 86, 255, 0.1);
  border-color: rgba(120, 86, 255, 0.3);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 18px;
  font-weight: 700;
  color: #989bb0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-item:hover .step-num {
  transform: scale(1.2);
  box-shadow: 0 0 24px rgba(120, 86, 255, 0.4);
}
.step-item.active .step-num {
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(98, 64, 224, 0.4);
}
.step-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e8e9f0;
}
.step-item p {
  font-size: 13px;
  color: #989bb0;
  line-height: 1.6;
}

/* ==================== 合作客户 ==================== */
.clients {
  padding: 60px 0;
  background: #fff;
  text-align: center;
  position: relative;
}
.clients::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 86, 255, 0.12), transparent);
}
.clients-title {
  font-size: 13px;
  color: #989bb0;
  margin-bottom: 32px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
}
.client-logo {
  font-size: 18px;
  color: #585b74;
  padding: 14px 24px;
  background: #fafafe;
  border: 1px solid #e8e9f2;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s ease;
  opacity: 1;
}
.client-logo img {
  width: 28px;
  height: 28px;
  margin-right: 0;
}
.client-logo:hover {
  transform: scale(1.08);
  opacity: 1;
  background: rgba(120, 86, 255, 0.06);
  border-color: rgba(120, 86, 255, 0.25);
}

/* ==================== 页脚 ==================== */
.footer {
  padding: 60px 24px 24px;
  background: #f5f3fe;
  position: relative;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-left,
.footer-right {
  flex: 1;
  min-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-desc {
  font-size: 15px;
  color: #585b74;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.social-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e9f2;
  transition: all 0.35s ease;
}
.social-icon img {
  height: 24px;
}
.social-icon:hover {
  background: rgba(120, 86, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(98, 64, 224, 0.12);
  border-color: rgba(120, 86, 255, 0.25);
}
.footer-right h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1d30;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid #6240e0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #585b74;
  line-height: 1.6;
}
.contact-icon {
  color: #6240e0;
  margin-top: 1px;
}
.footer-bottom {
  border-top: 1px solid rgba(98, 64, 224, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: #989bb0;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: #989bb0;
  text-decoration: none;
}
.footer-links a:hover {
  color: #6240e0;
}

/* ==================== 悬浮按钮 ==================== */
.service-float {
  position: fixed;
  right: 1.5rem;
  bottom: 10rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  color: #fff;
  border-radius: 3rem;
  box-shadow: 0 8px 32px rgba(98, 64, 224, 0.3);
  cursor: pointer;
  transition: all 0.35s ease;
}
.service-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 40px rgba(98, 64, 224, 0.45);
}
.service-icon {
  font-size: 1.4rem;
}
.service-text {
  font-size: 1rem;
  font-weight: 600;
}
.pulse-float {
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(120, 86, 255, 0.35); }
  70%  { box-shadow: 0 0 0 16px rgba(120, 86, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(120, 86, 255, 0); }
}

.back-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #e8e9f2;
  border-radius: 14px;
  color: #6240e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  z-index: 99;
}
.back-top:hover {
  background: rgba(120, 86, 255, 0.1);
  border-color: #6240e0;
  color: #6240e0;
}
.bounce-top {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ==================== 客服弹窗 ==================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.popup {
  display: none;
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(35vw, 420px);
  height: 80vh;
  max-height: 700px;
  background: #fff;
  border: 1px solid #e8e9f2;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  overflow: hidden;
}
.popup.active,
.overlay.active {
  display: flex;
}
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f5;
}
.popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1d30;
}
.popup-close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: none;
  background: #f5f3fe;
  cursor: pointer;
  font-size: 16px;
  color: #989bb0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.popup-close:hover {
  background: #6240e0;
  color: #fff;
}

.popup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 聊天消息区 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-ai,
.msg-user {
  display: flex;
  gap: 8px;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-user {
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #fff;
}
.msg-user .msg-avatar {
  background: linear-gradient(135deg, #1677ff, #4aa0ff);
}
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-ai .msg-bubble {
  background: #fff;
  border: 1px solid #e8e9f2;
  border-top-left-radius: 4px;
  color: #1a1d30;
}
.msg-user .msg-bubble {
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  color: #fff;
  border-top-right-radius: 4px;
}

/* 聊天输入区 */
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f5;
  background: #fff;
}
.chat-input input {
  flex: 1;
  border: 1px solid #e8e9f2;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  color: #1a1d30;
  background: #fafafe;
  transition: border-color 0.3s;
}
.chat-input input:focus {
  border-color: #6240e0;
}
.chat-input input::placeholder {
  color: #989bb0;
}
.chat-input button {
  padding: 10px 22px;
  border: none;
  background: linear-gradient(135deg, #6240e0, #9b5cf6);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.chat-input button:hover {
  box-shadow: 0 4px 16px rgba(98, 64, 224, 0.35);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  .banner {
    min-height: auto;
    padding: 30px 0;
  }
  .banner-content {
    order: 2;
    text-align: center;
  }
  .banner-img-wrapper {
    order: 1;
  }
  .banner-desc {
    max-width: none;
  }
  .value-card {
    max-width: 100%;
  }
  .service-item {
    max-width: 100%;
  }
  .process-steps {
    gap: 14px;
  }
  .step-item {
    width: calc(33.33% - 14px);
  }
  .clients-logos {
    gap: 12px;
  }
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .back-top {
    bottom: 90px;
    right: 16px;
  }
  .service-float {
    right: 0.8rem;
    bottom: 10rem;
    padding: 0.6rem 1rem;
  }
  .service-text {
    font-size: 0.9rem;
  }
  .popup {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 80vh;
    border-radius: 20px 20px 0 0;
    max-height: none;
  }
}

@media (max-width: 375px) {
  .logo-text {
    font-size: 16px;
  }
  .logo-en {
    display: none;
  }
  .value-cards {
    gap: 14px;
  }
  .value-card {
    padding: 20px;
  }
  .banner-title {
    font-size: 28px;
  }
  .step-item {
    width: calc(50% - 12px);
  }
}
