/* ========================================
   嘉联支付手刷MPOS - 深栗棕匹立风
   ======================================== */

/* CSS Variables */
:root {
  --jlp-chestnut: #2C1810;
  --jlp-chestnut-light: #3C2810;
  --jlp-chestnut-dark: #1A0E08;
  --match-purple: #8B5CF6;
  --match-purple-light: #A78BFA;
  --match-purple-dark: #7C3AED;
  --discount-green: #10B981;
  --discount-green-light: #34D399;
  --discount-green-dark: #059669;
  --bg-page: #F3EFEA;
  --bg-card: #FFFFFF;
  --text-dark: #0D0805;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(44, 24, 16, 0.05);
  --shadow-md: 0 4px 6px rgba(44, 24, 16, 0.07);
  --shadow-lg: 0 10px 25px rgba(44, 24, 16, 0.1);
  --shadow-xl: 0 20px 40px rgba(44, 24, 16, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Sans', var(--font-sans);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--match-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--match-purple-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jlp-chestnut);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--match-purple);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--jlp-chestnut);
}

.nav-cta {
  background: linear-gradient(135deg, var(--match-purple), var(--match-purple-dark));
  color: #fff !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jlp-chestnut);
  transition: var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--match-purple), var(--match-purple-dark));
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-md);
  border-bottom: none;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--match-purple), var(--match-purple-dark));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-green {
  background: linear-gradient(135deg, var(--discount-green), var(--discount-green-dark));
  color: #fff;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--jlp-chestnut);
  border: 2px solid var(--jlp-chestnut);
}

.btn-outline:hover {
  background: var(--jlp-chestnut);
  color: #fff;
}

/* ========================================
   Hero Sections
   ======================================== */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background: linear-gradient(145deg, var(--jlp-chestnut) 0%, var(--jlp-chestnut-light) 100%);
  overflow: hidden;
}

.hero-purple {
  background: linear-gradient(145deg, var(--match-purple-dark) 0%, var(--match-purple) 100%);
}

.hero-green {
  background: linear-gradient(145deg, var(--discount-green-dark) 0%, var(--discount-green) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-green::before {
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Compact Hero */
.hero-compact {
  padding: 8rem 0 4rem;
}

.hero-compact .hero-title {
  font-size: 2.5rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--jlp-chestnut);
  color: #fff;
}

.section-gray {
  background: var(--bg-page);
}

.section-white {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title h2,
.section-dark .section-title p {
  color: #fff;
}

.section-dark .section-title p {
  opacity: 0.8;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-purple {
  background: linear-gradient(145deg, var(--match-purple-dark), var(--match-purple));
  color: #fff;
}

.card-green {
  background: linear-gradient(145deg, var(--discount-green-dark), var(--discount-green));
  color: #fff;
}

.card-chestnut {
  background: linear-gradient(145deg, var(--jlp-chestnut), var(--jlp-chestnut-light));
  color: #fff;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--jlp-chestnut);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--match-purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature-number.green {
  color: var(--discount-green);
}

/* Asymmetric Cards */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 55fr 43fr;
  gap: 2rem;
  align-items: start;
}

/* ========================================
   Comparison Tables
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.compare-table th {
  background: var(--jlp-chestnut);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(243, 239, 234, 0.5);
}

.compare-table .highlight {
  background: rgba(139, 92, 246, 0.05);
}

.compare-table .check {
  color: var(--discount-green);
  font-weight: 700;
}

.compare-table .cross {
  color: var(--text-light);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--jlp-chestnut);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(243, 239, 234, 0.5);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(145deg, var(--jlp-chestnut) 0%, var(--jlp-chestnut-light) 100%);
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-section .highlight {
  color: var(--match-purple-light);
  font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(180deg, var(--jlp-chestnut) 0%, var(--jlp-chestnut-dark) 100%);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================
   Highlight Text
   ======================================== */
.text-purple {
  color: var(--match-purple);
  font-weight: 600;
}

.text-green {
  color: var(--discount-green);
  font-weight: 600;
}

.text-chestnut {
  color: var(--jlp-chestnut);
  font-weight: 600;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.info-box-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.info-box h3 {
  color: var(--match-purple);
  margin-bottom: 1rem;
}

.info-box-green h3 {
  color: var(--discount-green);
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-body);
}

.info-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 6px;
  height: 6px;
  background: var(--match-purple);
  border-radius: 50%;
}

.info-box-green li::before {
  background: var(--discount-green);
}

/* ========================================
   Layout Utilities
   ======================================== */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-compact .hero-title {
    font-size: 2rem;
  }
  
  .feature-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .asymmetric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .feature-grid-2,
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .compare-table {
    font-size: 0.875rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
}
