/* 跨境电商全球开店落地页样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: #ededed;
}

.page-container {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  padding-bottom: 100px; /* 预留底部浮动按钮空间 */
  overflow-x: hidden;
}

/* 图片通用 */
.img-block {
  width: 100%;
  display: block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* 顶部视觉 */
.hero-wrapper {
  width: 100%;
  position: relative;
}

/* 热门咨询气泡条 */
.bubble-bar-wrapper {
  margin: -16px 14px 12px;
  position: relative;
  z-index: 10;
}

.bubble-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 30px;
  padding: 8px 12px 8px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bubble-left {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}

.bubble-avatar svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.bubble-text-slider {
  position: relative;
  height: 22px;
  flex: 1;
  overflow: hidden;
}

.bubble-text-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  line-height: 22px;
  font-size: 13px;
  color: #333333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease-in-out;
}

.bubble-text-item.active {
  opacity: 1;
  transform: translateY(0);
}

.bubble-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bubble-btn:active {
  background: #dcfce7;
  transform: scale(0.96);
}

/* 3x3 关键词标签矩阵 */
.tag-matrix-section {
  padding: 10px 16px 18px;
  background: #ffffff;
}

.tag-matrix-title {
  text-align: center;
  font-size: 13px;
  color: #666666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tag-matrix-title::before,
.tag-matrix-title::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: #e5e7eb;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  height: 38px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.tag-item:hover, .tag-item:active {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
  transform: scale(0.98);
}

/* 弹幕咨询区域 (Bullet Screen) */
.bullet-screen-section {
  background: #f9fafb;
  padding: 24px 0 20px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.bullet-screen-title {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  color: #111827;
  margin-bottom: 4px;
}

.bullet-screen-subtitle {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 18px;
}

.danmaku-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.danmaku-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.track-left {
  animation: scrollLeft 28s linear infinite;
}

.track-right {
  animation: scrollRight 32s linear infinite;
}

.danmaku-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-right: 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.danmaku-item:active {
  transform: scale(0.96);
}

.danmaku-color-1 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.danmaku-color-2 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.danmaku-color-3 {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.danmaku-color-4 {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* 底部领取资料按钮区域 (Button 2) */
.inline-cta-section {
  padding: 16px 14px 24px;
  background: #ffffff;
  text-align: center;
}

.btn-cta-inline {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta-inline:active {
  transform: scale(0.97);
}

.btn-cta-inline img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* 悬浮固定底部咨询按钮 (Button 1: 需求 3 保持在页面中下方位置，用户上滑或下滑均持续可见) */
.floating-cta-container {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 436px;
  z-index: 9999;
  pointer-events: auto;
}

.btn-floating-cta {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  animation: floatingPulse 2.4s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.btn-floating-cta:active {
  transform: scale(0.96) !important;
}

.btn-floating-cta img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 6px 16px rgba(18, 140, 68, 0.5));
}

@keyframes floatingPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

/* 页脚区域 */
.footer-section {
  text-align: center;
  padding: 16px 20px 24px;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.footer-company {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.6;
}
