/* ============================================
   HHpoker 官方正版 - 自定义样式表
   主色调: stone-700 (#44403C) 商务稳健风格
   ============================================ */

/* --- 全局字体平滑 --- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 滚动行为 --- */
html {
  scroll-behavior: smooth;
}

/* --- 自定义滚动条 --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #78716c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #57534e;
}

/* --- 导航栏底部光效 --- */
.nav-glow {
  box-shadow: 0 1px 3px rgba(68, 64, 60, 0.08), 0 1px 2px rgba(68, 64, 60, 0.06);
}

/* --- Hero 区域渐变叠加 --- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(68, 64, 60, 0.92) 0%,
    rgba(87, 83, 78, 0.88) 50%,
    rgba(68, 64, 60, 0.94) 100%
  );
}

/* --- 卡片悬浮效果 --- */
.hover-card {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(68, 64, 60, 0.15), 0 8px 16px rgba(68, 64, 60, 0.1);
}

/* --- 按钮波纹效果 --- */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-ripple:hover::after {
  opacity: 1;
}

/* --- 渐入动画 --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 交错延迟 --- */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- 数字跳动 --- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* --- 脉冲点 --- */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* --- 下载卡片渐变边框 --- */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 16px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #44403c, #a8a29e, #44403c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* --- 桌面装饰分割线 --- */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a8a29e, transparent);
}

/* --- 手机菜单动画 --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
  max-height: 400px;
}

/* --- 底部背景纹理 --- */
.footer-texture {
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- 特性图标圆形背景 --- */
.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #44403c 0%, #57534e 100%);
  color: #fff;
  flex-shrink: 0;
}

/* --- 步骤编号 --- */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  background: #44403c;
  color: #fff;
  flex-shrink: 0;
}

/* --- 标签徽章 --- */
.badge-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- 遮罩层 --- */
.overlay-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* --- 响应式辅助 --- */
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(68, 64, 60, 0.9) 0%,
      rgba(87, 83, 78, 0.92) 100%
    );
  }
}
