/* ============================================================
   HHpoker - 德扑圈 官方主题 | Desert Dusk 大漠落日风
   Colors: terracotta #c46a3a, dusty rose #b8645a,
           golden hour #e8943a → #c44a5a, sand #e8d5b0
   ============================================================ */

/* --- Google Fonts (loaded via CDN) --- */

/* --- CSS Custom Properties --- */
:root {
  --terracotta: #c46a3a;
  --terracotta-dark: #9e5530;
  --dusty-rose: #b8645a;
  --golden: #e8943a;
  --golden-light: #f0b86c;
  --sunset-end: #c44a5a;
  --sand: #e8d5b0;
  --sand-light: #f5ede0;
  --sand-dark: #d4c09a;
  --desert-dark: #3d2b1f;
  --desert-darker: #2a1a10;
  --warm-white: #fdfaf6;
  --shadow-warm: rgba(196, 106, 58, 0.15);
  --shadow-dark: rgba(61, 43, 31, 0.25);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans SC', 'Poppins', sans-serif;
  background-color: var(--warm-white);
  color: var(--desert-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Selection --- */
::selection {
  background: var(--terracotta);
  color: #fff;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 106, 58, 0.12);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px var(--shadow-warm);
  background: rgba(253, 250, 246, 0.97);
}

.navbar .nav-link {
  position: relative;
  color: var(--desert-dark);
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--golden));
  transition: transform var(--transition-smooth);
  border-radius: 2px;
}

.navbar .nav-link:hover {
  color: var(--terracotta);
}

.navbar .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 250, 246, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-smooth);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--desert-dark);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.mobile-menu a:hover {
  color: var(--terracotta);
  background: rgba(196, 106, 58, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--desert-dark);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.75px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.75px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 43, 31, 0.82) 0%,
    rgba(196, 106, 58, 0.55) 40%,
    rgba(228, 149, 58, 0.35) 70%,
    rgba(232, 213, 176, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 149, 58, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--terracotta), var(--sunset-end));
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 6px 24px rgba(196, 106, 58, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(196, 106, 58, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--terracotta);
  font-weight: 600;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  border: 2px solid var(--terracotta);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 106, 58, 0.25);
}

.btn-golden {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--golden), var(--terracotta));
  color: #fff;
  font-weight: 700;
  padding: 1rem 2.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 28px rgba(228, 149, 58, 0.4);
  font-size: 1.1rem;
}

.btn-golden:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(228, 149, 58, 0.5);
}

/* --- Section Headers --- */
.section-badge {
  display: inline-block;
  background: rgba(196, 106, 58, 0.1);
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 1.25rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--desert-dark);
  line-height: 1.2;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--terracotta), var(--golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: #7a6652;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Feature Cards --- */
.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(196, 106, 58, 0.08);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--golden), var(--sunset-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-warm);
  border-color: rgba(196, 106, 58, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(196, 106, 58, 0.1), rgba(228, 149, 58, 0.1));
  color: var(--terracotta);
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--desert-dark), var(--desert-darker));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(228, 149, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(180deg, var(--golden-light) 0%, var(--golden) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  color: var(--sand);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--golden-light), var(--golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Testimonials --- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(196, 106, 58, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 16px 48px var(--shadow-warm);
  transform: translateY(-4px);
}

.testimonial-card .quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: rgba(196, 106, 58, 0.1);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--terracotta);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid rgba(196, 106, 58, 0.12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(196, 106, 58, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--desert-dark);
  text-align: left;
  transition: color var(--transition-smooth);
}

.faq-question:hover {
  color: var(--terracotta);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(196, 106, 58, 0.08);
  color: var(--terracotta);
  font-size: 0.85rem;
  transition: all var(--transition-smooth);
}

.faq-item.active .faq-question .faq-icon {
  background: var(--terracotta);
  color: #fff;
  transform: rotate(45deg);
}

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

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

.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  color: #6b5d50;
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--terracotta), var(--sunset-end));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 213, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  background: var(--desert-darker);
  color: var(--sand-light);
}

.footer h5 {
  color: var(--sand);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(232, 213, 176, 0.7);
  text-decoration: none;
  transition: color var(--transition-smooth);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--golden-light);
}

.footer-bottom {
  border-top: 1px solid rgba(232, 213, 176, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: rgba(232, 213, 176, 0.5);
  font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.floating-btns {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px var(--shadow-dark);
}

.btn-cs {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  position: relative;
}

.btn-cs::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: csPulse 1.5s ease-out infinite;
}

@keyframes csPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.btn-cs .cs-tooltip {
  position: absolute;
  right: 64px;
  background: #fff;
  color: var(--desert-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--shadow-dark);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-smooth);
}

.btn-cs:hover .cs-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.btn-back-top {
  background: var(--terracotta);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.btn-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-top:hover {
  background: var(--terracotta-dark);
  transform: translateY(-3px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Download Button Pulse --- */
@keyframes downloadPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 149, 58, 0.5); }
  50% { box-shadow: 0 0 0 20px rgba(228, 149, 58, 0); }
}

.btn-pulse {
  animation: downloadPulse 2s infinite;
}

/* --- About Page --- */
.about-hero {
  background: linear-gradient(135deg, var(--desert-dark), var(--desert-darker));
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(228, 149, 58, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.about-value-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(196, 106, 58, 0.08);
  transition: all var(--transition-smooth);
}

.about-value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow-warm);
}

/* --- Contact Page --- */
.contact-info-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(196, 106, 58, 0.08);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid rgba(196, 106, 58, 0.15);
  border-radius: 12px;
  background: var(--warm-white);
  color: var(--desert-dark);
  font-size: 1rem;
  transition: all var(--transition-smooth);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(196, 106, 58, 0.08);
}

.contact-form label {
  font-weight: 600;
  color: var(--desert-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    min-height: 90vh;
  }

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

  .floating-btns {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .btn-golden {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-section {
    min-height: 85vh;
  }

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

  .floating-btns {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
}

/* --- Page Header (About / Contact) --- */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--warm-white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--terracotta), var(--golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.95rem;
  color: #8c7a6b;
}

.breadcrumb a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Skeleton / Loading shimmer for images --- */
.img-shimmer {
  background: linear-gradient(90deg, var(--sand-light) 25%, var(--sand) 50%, var(--sand-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
