body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

/* 移动设备底部添加额外间距，为固定下载按钮留出空间 */
@media (max-width: 640px) {
  body {
    padding-bottom: 70px;
  }
}

.header-shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 修复hover抖动问题 */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform; /* 优化性能 */
  transform: translateZ(0); /* 强制硬件加速 */
  backface-visibility: hidden; /* 防止闪烁 */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-button {
  transition: transform 0.2s ease;
}

.download-button:hover {
  transform: scale(1.05);
}

.language-tag {
  transition: background-color 0.3s ease;
}

.language-tag:hover {
  background-color: #4338ca;
}

.activate-button {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.activate-button:hover {
  background-color: #c7250a;
  transform: scale(1.05);
}

.app-logo {
  transition: transform 0.3s ease;
}

.app-logo:hover {
  transform: scale(1.05);
}

/* 渐变过渡效果 */
.gradient-transition {
  position: relative;
  overflow: hidden;
}

.gradient-transition::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* 移动端固定底部栏动画 */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

[data-name="mobile-bottom-bar"] {
  animation: slideUp 0.3s ease-out;
}

/* 微信提示箭头动画 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* 模态框过渡效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
  }
  to {
    transform: scale(1);
  }
}

[data-name="qr-modal-overlay"],
[data-name="wechat-tip-overlay"] {
  animation: fadeIn 0.3s ease-out;
}

[data-name="qr-modal-content"],
[data-name="wechat-tip-content"] {
  animation: scaleIn 0.3s ease-out;
}

/* 功能卡片悬停效果 - 修复抖动问题 */
[data-name^="feature-card"] {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2px; /* 预留空间防止hover时抖动 */
}

[data-name^="feature-card"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-name^="feature-image-container"] {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

[data-name^="feature-image-container"] img {
  transition: transform 0.5s ease;
  will-change: transform;
  max-width: 100%;
  height: auto;
}

[data-name^="feature-card"]:hover [data-name^="feature-image-container"] img {
  transform: scale(1.05);
}

/* 语言选择标签效果 */
[data-name^="language-card"] {
  transition: all 0.3s ease;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

[data-name^="language-card"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 移动端底部栏样式增强 */
@media (max-width: 640px) {
  [data-name="mobile-bottom-bar"] {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  [data-name="download-button-sticky"] {
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  [data-name="download-button-sticky"]:active {
    transform: scale(0.95);
  }
}

/* 微信提示弹窗样式增强 */
[data-name="wechat-tip-overlay"] {
  backdrop-filter: blur(3px);
}

[data-name="wechat-tip-content"] {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

/* 页面滚动平滑效果 */
html {
  scroll-behavior: smooth;
}

/* 按钮点击效果 */
button, 
.download-button, 
[data-name="download-button-sticky"] {
  transition: transform 0.1s ease, background-color 0.3s ease;
}

button:active, 
.download-button:active, 
[data-name="download-button-sticky"]:active {
  transform: scale(0.97);
}

/* 提升全局可访问性 */
:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* 响应式字体大小调整 */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.95rem;
  }
}

/* 确保特性图片在PC端正确显示 */
@media (min-width: 768px) {
  [data-name^="feature-image-container"] {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
  }
  
  [data-name^="feature-image-container"] img {
    max-height: 200px;
    object-fit: contain;
    width: auto;
    max-width: 100%;
  }
}
