/* ============================================================
   HHpoker 蓝宝石风格自定义样式
   设计灵感：深邃蓝宝石光泽，切割面几何装饰，冰晶蓝光泽边框
   ============================================================ */

/* --- 基础变量 --- */
:root {
  --sapphire-900: #0a1628;
  --sapphire-800: #0f2044;
  --sapphire-700: #142d5e;
  --sapphire-600: #1a3a78;
  --sapphire-500: #1e4d94;
  --sapphire-400: #2563b7;
  --sapphire-300: #3b82c4;
  --ice-blue: #a5f3fc;
  --ice-glow: #67e8f9;
  --gold-accent: #d4a853;
  --gold-light: #f0d78c;
  --text-primary: #e2e8f0;
  --text-secondary: #b0c4de;
}

/* --- 全局样式 --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: #060e1a;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* --- 蓝宝石渐变背景 --- */
.bg-sapphire {
  background: linear-gradient(135deg, #0a1628 0%, #0f2044 25%, #142d5e 50%, #0f2044 75%, #0a1628 100%);
}

.bg-sapphire-light {
  background: linear-gradient(135deg, #0f2044 0%, #142d5e 30%, #1a3a78 60%, #142d5e 100%);
}

.bg-sapphire-card {
  background: linear-gradient(145deg, rgba(15, 32, 68, 0.95) 0%, rgba(20, 45, 94, 0.9) 50%, rgba(15, 32, 68, 0.95) 100%);
  backdrop-filter: blur(10px);
}

/* --- 蓝宝石光泽边框 --- */
.sapphire-border {
  border: 1px solid rgba(103, 232, 249, 0.3);
  box-shadow:
    0 0 10px rgba(6, 182, 212, 0.15),
    inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.sapphire-border-glow {
  border: 1px solid rgba(103, 232, 249, 0.5);
  box-shadow:
    0 0 15px rgba(6, 182, 212, 0.2),
    0 0 30px rgba(6, 182, 212, 0.1),
    inset 0 0 20px rgba(6, 182, 212, 0.08);
}

/* --- 冰晶切割面效果 --- */
.crystal-cut {
  position: relative;
  overflow: hidden;
}

.crystal-cut::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(103, 232, 249, 0.03) 35%,
    rgba(103, 232, 249, 0.08) 40%,
    rgba(103, 232, 249, 0.03) 45%,
    transparent 50%
  );
  animation: crystalShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes crystalShimmer {
  0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
  50% { transform: translate(5%, 5%) rotate(2deg); }
}

/* --- 钻石切割面几何图案 --- */
.diamond-pattern {
  background-image:
    linear-gradient(45deg, rgba(6, 182, 212, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(6, 182, 212, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(6, 182, 212, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(6, 182, 212, 0.05) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* --- 冰蓝色发光文字 --- */
.text-ice-glow {
  color: var(--ice-blue);
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.5), 0 0 30px rgba(6, 182, 212, 0.3);
}

.text-sapphire-glow {
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 30%, #06b6d4 60%, #3b82b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

/* --- 蓝宝石按钮 --- */
.btn-sapphire {
  background: linear-gradient(135deg, #1e4d94 0%, #2563b7 30%, #06b6d4 70%, #2563b7 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(103, 232, 249, 0.4);
  box-shadow:
    0 4px 15px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: btnShimmer 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.btn-sapphire:hover {
  background-position: 100% 100%;
  box-shadow:
    0 6px 25px rgba(6, 182, 212, 0.5),
    0 0 40px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.7);
}

.btn-sapphire::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: btnShine 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShine {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.btn-gold {
  background: linear-gradient(135deg, #b8860b 0%, #d4a853 30%, #f0d78c 60%, #d4a853 100%);
  color: #1a1a2e;
  border: 1px solid rgba(240, 215, 140, 0.5);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.5);
  transform: translateY(-2px);
}

/* --- 蓝宝石卡牌 --- */
.sapphire-card {
  background: linear-gradient(145deg, rgba(15, 32, 68, 0.95), rgba(20, 45, 94, 0.85));
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.sapphire-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sapphire-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow:
    0 10px 30px rgba(6, 182, 212, 0.15),
    0 0 40px rgba(6, 182, 212, 0.08),
    inset 0 0 30px rgba(6, 182, 212, 0.03);
}

.sapphire-card:hover::before {
  opacity: 1;
}

/* --- 冰晶光泽分割线 --- */
.ice-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(103, 232, 249, 0.1) 20%,
    rgba(103, 232, 249, 0.4) 50%,
    rgba(103, 232, 249, 0.1) 80%,
    transparent 100%
  );
  margin: 2rem 0;
}

/* --- 导航样式 --- */
.nav-blur {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(103, 232, 249, 0.15);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #67e8f9);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #67e8f9;
}

.nav-link.active::after {
  width: 100%;
}

/* --- 英雄区 --- */
.hero-glow {
  position: relative;
}

.hero-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- 数字统计动画 --- */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #67e8f9, #06b6d4, #3b82b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 标签样式 --- */
.tag-sapphire {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  color: #67e8f9;
  font-size: 0.875rem;
}

/* --- 平台切换标签 --- */
.platform-tab {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(15, 32, 68, 0.6);
}

.platform-tab:hover {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(15, 32, 68, 0.9);
}

.platform-tab.active {
  background: linear-gradient(135deg, rgba(30, 77, 148, 0.8), rgba(6, 182, 212, 0.3));
  border-color: rgba(103, 232, 249, 0.7);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* --- 动画 --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* --- 滚动显示动画 --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 菱形装饰 --- */
.diamond-accent {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(103, 232, 249, 0.3);
  transform: rotate(45deg);
  position: absolute;
}

/* --- 下载按钮脉冲 --- */
.download-pulse {
  animation: downloadPulse 2s ease-in-out infinite;
}

@keyframes downloadPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3), 0 0 20px rgba(6, 182, 212, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.25), 0 0 60px rgba(6, 182, 212, 0.1);
  }
}

/* --- 图标容器 --- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(30, 77, 148, 0.2));
  border: 1px solid rgba(103, 232, 249, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
  font-size: 1.5rem;
  color: #67e8f9;
}

/* --- 排名徽章 --- */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
}

.rank-1 { background: linear-gradient(135deg, #d4a853, #f0d78c); color: #1a1a2e; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #1a1a2e; }
.rank-3 { background: linear-gradient(135deg, #b8860b, #d4a853); color: #1a1a2e; }
.rank-other { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid rgba(103, 232, 249, 0.3); }

/* --- 移动端菜单 --- */
.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .hero-glow::after {
    width: 300px;
    height: 300px;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* --- 自定义滚动条 --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a3a78, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563b7, #22d3ee);
}

/* --- 页脚渐变 --- */
.footer-gradient {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.95) 10%, #0a1628 100%);
}

/* --- 菱形图案背景 --- */
.geo-bg {
  position: relative;
}

.geo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- 特性列表 --- */
.feature-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-check li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #06b6d4;
  font-size: 0.875rem;
}

/* --- 步骤编号 --- */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e4d94, #06b6d4);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid rgba(103, 232, 249, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
  flex-shrink: 0;
}

/* --- 步骤连接线 --- */
.step-line {
  position: absolute;
  left: 23px;
  top: 56px;
  width: 2px;
  height: calc(100% - 56px);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0.05));
}
