/* ========================================
   棋牌科技官网 - 全局样式系统
   色彩：深空蓝 + 科技青 + 极光银
   ======================================== */

/* ===== CSS 变量定义 ===== */
:root {
  /* 主色调 - 深空蓝 */
  --color-bg-deep: #050810;
  --color-bg-dark: #0A1628;
  --color-bg-card: #0D1B2A;
  --color-bg-elevated: #122340;

  /* 辅助色 - 科技青 */
  --color-cyan: #00D4FF;
  --color-cyan-bright: #00E5FF;
  --color-cyan-dim: #0096B8;
  --color-blue: #0EA5E9;
  --color-blue-light: #38BDF8;

  /* 强调色 - 极光银/渐变蓝 */
  --color-silver: #E0E7FF;
  --color-silver-dim: #94A3B8;
  --color-purple: #818CF8;

  /* 文字色 */
  --color-text-primary: #E8EDF5;
  --color-text-secondary: #B4C2D8;
  --color-text-muted: #6B7C95;
  --color-text-bright: #FFFFFF;

  /* 渐变 */
  --gradient-cyan: linear-gradient(135deg, #00D4FF 0%, #0EA5E9 100%);
  --gradient-blue: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --gradient-dark: linear-gradient(180deg, #0A1628 0%, #050810 100%);
  --gradient-card: linear-gradient(145deg, rgba(13,27,42,0.9) 0%, rgba(10,22,40,0.95) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(14,165,233,0.05) 100%);

  /* 边框 */
  --border-cyan: rgba(0, 212, 255, 0.2);
  --border-cyan-hover: rgba(0, 212, 255, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(0, 212, 255, 0.12);

  /* 阴影 */
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 48px rgba(0, 212, 255, 0.2);

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Noto Sans SC", sans-serif;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 过渡 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* 布局 */
  --nav-height: 72px;
  --max-width: 1280px;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg-deep);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.5);
}

/* ===== 文字选择 ===== */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* ===== 粒子画布 ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-bright);
  letter-spacing: 0.5px;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cyan);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  color: var(--color-bg-deep);
  box-shadow: var(--shadow-glow);
}

.nav-logo .logo-text span {
  color: var(--color-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-cyan);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-cyan);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--gradient-cyan);
  color: var(--color-bg-deep) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 通用容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===== 通用Section ===== */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-cyan);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.section-title .accent {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: var(--color-bg-deep);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--border-cyan-hover);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--border-cyan-hover);
}

/* ===== 科技卡片 ===== */
.tech-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
  transition: left 0.8s ease;
}

.tech-card:hover {
  border-color: var(--border-cyan-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.tech-card:hover::before {
  left: 100%;
}

.tech-card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-base);
}

.tech-card:hover .card-icon {
  background: var(--gradient-cyan);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.tech-card h3 {
  font-size: 1.2rem;
  color: var(--color-text-bright);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== 科技网格背景 ===== */
.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 数据统计模块 ===== */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

/* ===== 滚动渐显动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 页面Hero通用 ===== */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .grid-bg {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-bright);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.page-hero h1 .accent {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 合规提示条 ===== */
.compliance-bar {
  background: rgba(0, 212, 255, 0.05);
  border-top: 1px solid var(--border-cyan);
  border-bottom: 1px solid var(--border-cyan);
  padding: 0.75rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.compliance-bar .icon {
  color: var(--color-cyan);
  margin-right: 0.5rem;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--border-cyan);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--color-text-bright);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-cyan);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.footer-contact li .icon {
  color: var(--color-cyan);
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-bottom .icp {
  display: flex;
  gap: 1.5rem;
}

/* ===== 悬浮客服按钮 ===== */
.float-contact {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-contact .contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.float-contact .contact-btn.primary {
  background: var(--gradient-cyan);
  color: var(--color-bg-deep);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.float-contact .contact-btn.secondary {
  background: var(--color-bg-elevated);
  color: var(--color-cyan);
  border: 1px solid var(--border-cyan);
}

.float-contact .contact-btn:hover {
  transform: scale(1.1);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.7); }
}

/* ===== 装饰元素 ===== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb.cyan {
  background: rgba(0, 212, 255, 0.15);
}

.glow-orb.blue {
  background: rgba(14, 165, 233, 0.12);
}

.glow-orb.purple {
  background: rgba(99, 102, 241, 0.1);
}

/* ===== 分割线科技装饰 ===== */
.tech-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.tech-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.tech-divider .dot {
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
}

/* ===== 标签/徽章 ===== */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--color-cyan);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tag.outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--color-text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-xl: 4rem;
  }

  .navbar {
    padding: 0 1.25rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .float-contact {
    right: 1rem;
    bottom: 1rem;
  }
}
