/* ============================================
   0050 - HHpoker 德扑圈客服服务中心
   Main Stylesheet
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --rounded-sm: 0.375rem;
  --rounded: 0.5rem;
  --rounded-lg: 0.75rem;
  --rounded-xl: 1rem;
  --rounded-2xl: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Smooth Scroll ----- */
html {
  scroll-behavior: smooth;
}

/* ----- Base Body ----- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ----- Navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gray-200);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.navbar-logo i {
  font-size: 1.6rem;
  color: var(--primary);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--rounded);
  transition: var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--rounded);
  transition: var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ----- Hero Section ----- */
.hero-section {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f9fafb 70%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}
.hero-content h1 span {
  color: var(--primary);
}
.hero-content p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-top: 1.25rem;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-xl);
}

/* ----- Section Headings ----- */
.section-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  max-width: 600px;
}

/* ----- Feature Cards ----- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-xl);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-icon.indigo {
  background: var(--primary-bg);
  color: var(--primary);
}
.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ----- Stats ----- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item {
  text-align: center;
  color: #fff;
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ----- Testimonial Cards ----- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-xl);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ----- FAQ Accordion ----- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--primary-light);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question i {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-item.active .faq-question {
  color: var(--primary);
  background: var(--primary-bg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ----- Page Hero Banner ----- */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Download Cards ----- */
.download-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--rounded-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.download-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.download-card .version {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ----- Step Indicator ----- */
.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1;
}
.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.step-content p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ----- Club Ranking List ----- */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-lg);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.ranking-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.ranking-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.ranking-badge.top1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ranking-badge.top2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.ranking-badge.top3 { background: linear-gradient(135deg, #d97706, #92400e); }
.ranking-badge.normal { background: var(--primary); }

/* ----- Contact Form ----- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--rounded);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group .error-msg {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.3rem;
  display: none;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}
.form-group.error .error-msg {
  display: block;
}

/* ----- Contact Channels ----- */
.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded-lg);
  transition: var(--transition);
}
.channel-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.channel-item .channel-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--rounded);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ----- Back to Top Button ----- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ----- CTA Section ----- */
.cta-section {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #1e1b4b 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 0;
}
.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}
.site-footer a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ----- Security Badge ----- */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ----- Service Promise ----- */
.promise-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.promise-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.promise-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* ----- QR Code Area ----- */
.qr-box {
  display: inline-block;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--rounded-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}
.qr-box img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-cta.desktop { display: none; }
  .navbar-hamburger { display: flex; }
  .hero-content h1 { font-size: 2rem; }
  .hero-section { padding-top: 6rem; padding-bottom: 3rem; }
  .hero-image { margin-top: 2rem; }
  .section-title { font-size: 1.75rem; }
  .stat-number { font-size: 2rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .contact-form-card { padding: 1.5rem; }
}
@media (max-width: 640px) {
  .hero-content h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 1.5rem; }
}
