/* ============================================
   HHpoker 德扑圈 - Retro 8-Bit Pixel Theme
   Neon Green (#39ff14) on Dark Backgrounds
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --- CSS Variables --- */
:root {
  --neon-green: #39ff14;
  --neon-green-dim: #2bbd0f;
  --dark-bg: #0a0a0a;
  --dark-bg2: #111111;
  --dark-bg3: #1a1a1a;
  --pixel-border: #39ff14;
  --text-primary: #e0e0e0;
  --text-secondary: #aaaaaa;
  --card-bg: #151515;
  --scanline-opacity: 0.04;
  --pixel-shadow: 4px 4px 0px #000;
}

/* --- Pixel Font Base --- */
.pixel-font {
  font-family: 'Press Start 2P', monospace, cursive;
}

body.pixel-font {
  font-family: 'Press Start 2P', monospace, cursive;
}

/* --- Scanline Overlay --- */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: var(--scanline-opacity);
}

/* --- CRT Flicker (subtle) --- */
@keyframes crt-flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.98; }
  10% { opacity: 0.97; }
  15% { opacity: 0.99; }
  20% { opacity: 0.97; }
  50% { opacity: 0.98; }
  80% { opacity: 0.97; }
  90% { opacity: 0.98; }
  100% { opacity: 0.97; }
}

body {
  animation: crt-flicker 8s infinite;
}

/* --- Pixelated Border Class --- */
.pixel-border {
  border: 3px solid var(--neon-green);
  box-shadow:
    3px 3px 0px #000,
    3px 3px 0px var(--neon-green),
    -3px -3px 0px #000,
    -3px -3px 0px var(--neon-green),
    inset 0 0 15px rgba(57, 255, 20, 0.08);
  image-rendering: pixelated;
}

.pixel-border-thin {
  border: 2px solid var(--neon-green);
  box-shadow:
    2px 2px 0px #000,
    2px 2px 0px var(--neon-green);
  image-rendering: pixelated;
}

.pixel-border-dashed {
  border: 3px dashed var(--neon-green);
  box-shadow: 3px 3px 0px #000;
  image-rendering: pixelated;
}

/* --- Neon Text Glow --- */
.neon-text {
  color: var(--neon-green);
  text-shadow:
    0 0 5px var(--neon-green),
    0 0 10px var(--neon-green),
    0 0 20px var(--neon-green),
    0 0 40px var(--neon-green);
}

.neon-text-subtle {
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

/* --- Neon Box Glow --- */
.neon-glow {
  box-shadow:
    0 0 5px var(--neon-green),
    0 0 10px var(--neon-green),
    0 0 20px rgba(57, 255, 20, 0.5),
    inset 0 0 10px rgba(57, 255, 20, 0.05);
}

.neon-glow-intense {
  box-shadow:
    0 0 5px var(--neon-green),
    0 0 15px var(--neon-green),
    0 0 30px var(--neon-green),
    0 0 50px rgba(57, 255, 20, 0.7),
    inset 0 0 20px rgba(57, 255, 20, 0.1);
}

/* --- Pixel Button --- */
.pixel-btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  padding: 12px 28px;
  color: #000;
  background-color: var(--neon-green);
  border: 3px solid var(--neon-green);
  box-shadow: 4px 4px 0px #000, 4px 4px 0px var(--neon-green);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.1s ease;
  image-rendering: pixelated;
  position: relative;
  letter-spacing: 1px;
}

.pixel-btn:hover {
  background-color: #000;
  color: var(--neon-green);
  box-shadow: 2px 2px 0px #000, 2px 2px 0px var(--neon-green);
  transform: translate(2px, 2px);
}

.pixel-btn:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.pixel-btn-outline {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  padding: 12px 28px;
  color: var(--neon-green);
  background-color: transparent;
  border: 3px solid var(--neon-green);
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.1s ease;
  image-rendering: pixelated;
  letter-spacing: 1px;
}

.pixel-btn-outline:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 2px 2px 0px #000;
  transform: translate(2px, 2px);
}

/* --- Pixel Card --- */
.pixel-card {
  background-color: var(--card-bg);
  border: 3px solid #333;
  box-shadow: 4px 4px 0px #000;
  padding: 24px;
  transition: all 0.2s ease;
  image-rendering: pixelated;
}

.pixel-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 4px 4px 0px #000;
  transform: translate(-2px, -2px);
}

/* --- Section Title --- */
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 15px var(--neon-green);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 2px solid var(--neon-green);
  box-shadow: 0 2px 15px rgba(57, 255, 20, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 64px;
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 0 0 5px var(--neon-green);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--neon-green);
  box-shadow: 0 0 3px var(--neon-green);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay-pixel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.3) 0px,
      rgba(0,0,0,0.3) 2px,
      transparent 2px,
      transparent 4px
    ),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: var(--neon-green);
  text-shadow:
    0 0 5px var(--neon-green),
    0 0 15px var(--neon-green),
    0 0 30px var(--neon-green),
    0 0 50px var(--neon-green);
  margin-bottom: 1.5rem;
  line-height: 2.2;
}

.hero-desc {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #ccc;
  margin-bottom: 2.5rem;
  line-height: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pixel-overlay-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3), inset 0 0 15px rgba(57, 255, 20, 0.05);
  pointer-events: none;
  z-index: 3;
  image-rendering: pixelated;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--neon-green);
}

.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--neon-green);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 3px var(--neon-green);
}

.feature-card p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 15px var(--neon-green);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  text-align: center;
  padding: 28px 20px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 0;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 3px 3px 0px #000;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
}

.testimonial-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: #ccc;
  line-height: 2;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 3px var(--neon-green);
}

.testimonial-role {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border: 2px solid #333;
  background-color: var(--dark-bg2);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--neon-green);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-primary);
  text-align: left;
  gap: 12px;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-icon {
  font-size: 1rem;
  color: var(--neon-green);
  transition: transform 0.3s ease;
  text-shadow: 0 0 5px var(--neon-green);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-secondary);
  line-height: 2;
  padding: 0 20px 16px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 20px;
}

.cta-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 20px var(--neon-green);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.pixel-footer {
  background-color: #050505;
  border-top: 3px solid var(--neon-green);
  padding: 50px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--neon-green);
  text-shadow: 0 0 3px var(--neon-green);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--text-secondary);
  line-height: 2.2;
  text-decoration: none;
  display: block;
}

.footer-col a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: #555;
}

/* --- Floating Buttons --- */
.floating-cs {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: var(--neon-green);
  border: 3px solid #000;
  box-shadow: 0 0 10px var(--neon-green), 3px 3px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.floating-cs:hover {
  background-color: #000;
  color: var(--neon-green);
  transform: translate(2px, 2px);
  box-shadow: 0 0 5px var(--neon-green), 1px 1px 0px #000;
}

.floating-cs i {
  font-size: 1.5rem;
  color: #000;
  transition: color 0.1s;
}

.floating-cs:hover i {
  color: var(--neon-green);
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: #000;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), 3px 3px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--neon-green);
  transform: translate(2px, 2px);
  box-shadow: 0 0 5px var(--neon-green), 1px 1px 0px #000;
}

.back-to-top i {
  font-size: 1.2rem;
  color: var(--neon-green);
  transition: color 0.1s;
}

.back-to-top:hover i {
  color: #000;
}

/* --- About Page Styles --- */
.about-hero {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.about-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 20px var(--neon-green);
  margin-bottom: 1rem;
}

.about-section {
  padding: 60px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 5px var(--neon-green);
}

.about-text p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 1rem;
}

.about-image {
  border: 3px solid var(--neon-green);
  box-shadow: 4px 4px 0px #000, 0 0 10px rgba(57, 255, 20, 0.3);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Timeline / Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.process-step {
  padding: 24px 16px;
  position: relative;
}

.process-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
  margin-bottom: 0.5rem;
}

.process-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Contact Page Styles --- */
.contact-hero {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.contact-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 20px var(--neon-green);
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 16px;
  border: 2px solid #333;
  background-color: var(--dark-bg2);
}

.contact-info-item:hover {
  border-color: var(--neon-green);
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

.contact-info-text h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.contact-info-text p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--neon-green);
  margin-bottom: 8px;
  text-shadow: 0 0 3px var(--neon-green);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background-color: #0a0a0a;
  border: 2px solid #333;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============== RESPONSIVE ============== */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 2px solid transparent;
  }

  .nav-links.open {
    max-height: 400px;
    border-bottom-color: var(--neon-green);
  }

  .nav-links a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid #222;
    font-size: 0.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .hero-desc {
    font-size: 0.4rem;
  }

  .pixel-btn,
  .pixel-btn-outline {
    font-size: 0.5rem;
    padding: 10px 16px;
  }

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

  .floating-cs {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
