/* 自定义样式 */

/* 全局与移动端视觉优化 */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  body { line-height: 1.7; -webkit-text-size-adjust: 100%; }
  /* 卡片与标题文本优化 */
  .feature-card { padding: 14px; border-radius: 12px; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 14px; }
  /* 交互按钮触控尺寸 */
  .play-video-btn { padding: 10px 14px; min-height: 40px; }
  /* 顶部与段落间距略增，阅读更舒适 */
  section { scroll-margin-top: 70px; }
}

/* 触控细节 */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
}

/* 卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* 让“预览视频”按钮固定在卡片底部，对齐同一行 */
.feature-card .play-video-btn {
  margin-top: auto;
}

/* 按钮悬停效果 */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 图片预览模态框 */
.modal {
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 动画效果 */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 全局滚动条优化：可见、易拖拽、颜色与品牌统一 */
html {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #94a3b8 #f1f5f9;      /* thumb + track */
  scrollbar-gutter: stable both-edges;   /* 现代浏览器：稳定滚动条占位 */
}
body { 
  touch-action: pan-y;                   /* 允许手势上下拖动 */
  -webkit-overflow-scrolling: touch;     /* iOS 惯性滚动 */
}
/* WebKit 系（Chrome/Edge/Safari） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1 0%, #10b981 100%);
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #4F46E5 0%, #059669 100%); }

/* 移动端滚动条稍窄，避免遮挡内容 */
@media (max-width: 768px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
}

/* 移除移动端底部浮动操作条相关样式（回退到原始样式） */

/* 移动端底部浮动操作条（新增） */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.08);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mobile-action-btn:active { transform: scale(0.98); }

.mobile-action-btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #6366f1, #10b981);
}
.mobile-action-btn--primary:hover { filter: brightness(0.95); }

.mobile-action-btn--secondary {
  color: #0f766e;
  background: #ffffff;
  border: 1px solid rgba(16,185,129,0.4);
}
.mobile-action-btn--secondary:hover { background: #f7faf9; }

/* 仅移动端显示操作条，并为页面内容预留底部空间 */
@media (max-width: 767px) {
  .mobile-action-bar { display: block; }
  body { padding-bottom: 80px; }
}
@media (min-width: 768px) {
  .mobile-action-bar { display: none; }
}
/* 遵循用户减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .mobile-action-bar,
  .mobile-action-btn { transition: none; }
}