/* ========================================
   海科融通蓝牙POS - 深森林绿匹返风格
   ======================================== */

/* CSS Variables */
:root {
  --hkk-forest: #166534;
  --hkk-forest-light: #15803D;
  --hkk-forest-dark: #052E16;
  --match-purple: #8B5CF6;
  --match-purple-light: #A78BFA;
  --cashback-gold: #F59E0B;
  --cashback-gold-light: #FBBF24;
  --bg-page: #F0FDF4;
  --bg-card: #FFFFFF;
  --text-dark: #052E16;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-dark);
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
.font-number {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

.text-forest { color: var(--hkk-forest); }
.text-purple { color: var(--match-purple); }
.text-gold { color: var(--cashback-gold); }
.text-forest-light { color: var(--hkk-forest-light); }

.bg-forest { background: var(--hkk-forest); }
.bg-purple { background: var(--match-purple); }
.bg-gold { background: var(--cashback-gold); }

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hkk-forest);
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--hkk-forest) 0%, var(--hkk-forest-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hkk-forest);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hkk-forest);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--match-purple) 0%, var(--match-purple-light) 100%);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--match-purple) 0%, var(--match-purple-light) 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn-forest {
  background: linear-gradient(135deg, var(--hkk-forest) 0%, var(--hkk-forest-light) 100%);
  color: #fff;
}

.btn-forest:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--cashback-gold) 0%, var(--cashback-gold-light) 100%);
  color: #fff;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hkk-forest) 0%, var(--hkk-forest-light) 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.03'%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");
  opacity: 0.5;
}

.hero-purple {
  background: linear-gradient(135deg, var(--match-purple) 0%, var(--match-purple-light) 100%);
}

.hero-gold {
  background: linear-gradient(135deg, var(--cashback-gold) 0%, var(--cashback-gold-light) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-page-title {
  padding: 120px 20px 80px;
}

.hero-page-title h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-page-title p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.bg-white {
  background: #fff;
}

.bg-light {
  background: var(--bg-page);
}

/* ========================================
   Match/Cashback Features
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon.forest {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.1) 0%, rgba(21, 128, 61, 0.1) 100%);
  color: var(--hkk-forest);
}

.feature-icon.purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
  color: var(--match-purple);
}

.feature-icon.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: var(--cashback-gold);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--match-purple);
  line-height: 1;
  margin-bottom: 8px;
}

/* Staggered Cards */
.staggered-grid {
  display: grid;
  gap: 24px;
}

.staggered-grid.two-col {
  grid-template-columns: 55% 43%;
}

.staggered-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.staggered-grid.mixed {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
  .staggered-grid.two-col,
  .staggered-grid.three-col,
  .staggered-grid.mixed {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Feature Split Layout
   ======================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-split.reverse {
    direction: ltr;
  }
}

.feature-image {
  background: linear-gradient(135deg, var(--bg-page) 0%, #E0F2FE 100%);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-image-inner {
  text-align: center;
}

.feature-image-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--match-purple) 0%, var(--match-purple-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 48px;
}

.feature-image-icon.gold {
  background: linear-gradient(135deg, var(--cashback-gold) 0%, var(--cashback-gold-light) 100%);
}

.feature-image h4 {
  font-size: 24px;
  color: var(--text-dark);
}

.feature-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 20px;
}

.feature-content p {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-content .highlight {
  color: var(--match-purple);
  font-weight: 700;
}

.feature-content .highlight-gold {
  color: var(--cashback-gold);
  font-weight: 700;
}

/* ========================================
   Tables
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: var(--bg-page);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.compare-table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.compare-table td {
  font-size: 15px;
  color: var(--text-body);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .check {
  color: var(--hkk-forest);
  font-weight: 700;
}

.compare-table .cross {
  color: #DC2626;
}

.compare-table .highlight-col {
  background: rgba(22, 101, 52, 0.05);
}

.compare-table .highlight-col.purple {
  background: rgba(139, 92, 246, 0.05);
}

.compare-table .highlight-col.gold {
  background: rgba(245, 158, 11, 0.05);
}

@media (max-width: 768px) {
  .compare-table {
    font-size: 14px;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--bg-page);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--hkk-forest) 0%, var(--hkk-forest-light) 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .highlight {
  color: var(--cashback-gold);
  font-weight: 700;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-box.gold {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.info-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-box li:last-child {
  border-bottom: none;
}

.info-box li::before {
  content: '✓';
  color: var(--hkk-forest);
  font-weight: 700;
}

.info-box.gold li::before {
  color: var(--cashback-gold);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--hkk-forest) 0%, var(--hkk-forest-light) 100%);
  color: #fff;
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-section h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  font-size: 15px;
}

.footer-section a {
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.py-8 { padding-top: 80px; padding-bottom: 80px; }

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--hkk-forest);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* ========================================
   Badge
   ======================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--match-purple);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--cashback-gold);
}

.badge-forest {
  background: rgba(22, 101, 52, 0.1);
  color: var(--hkk-forest);
}
