/* ============================================
   乐刷流量卡POS - 深墨蓝商清风
   ============================================ */

/* CSS Variables */
:root {
  --ls-ink: #1A2533;
  --ls-ink-light: #2A3543;
  --merchant-purple: #8B5CF6;
  --merchant-purple-light: #A78BFA;
  --clear-green: #10B981;
  --clear-green-light: #34D399;
  --bg-page: #EDF0F2;
  --bg-white: #FFFFFF;
  --text-dark: #090E15;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Sans', 'Segoe UI', sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(26, 37, 51, 0.05);
  --shadow-md: 0 4px 6px rgba(26, 37, 51, 0.07);
  --shadow-lg: 0 10px 15px rgba(26, 37, 51, 0.1);
  --shadow-xl: 0 20px 25px rgba(26, 37, 51, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-purple { color: var(--merchant-purple); }
.text-green { color: var(--clear-green); }
.text-muted { color: var(--text-muted); }

.font-mono { font-family: var(--font-mono); }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  z-index: 1000;
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ls-ink), var(--ls-ink-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--merchant-purple);
  background: rgba(139, 92, 246, 0.08);
}

.nav-link.active {
  color: var(--merchant-purple);
  font-weight: 500;
}

.nav-cta {
  margin-left: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--merchant-purple), var(--merchant-purple-light));
  color: white;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ls-ink);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
}

.mobile-menu .nav-cta {
  margin: 16px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--merchant-purple), var(--merchant-purple-light));
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-green {
  background: linear-gradient(135deg, var(--clear-green), var(--clear-green-light));
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--merchant-purple);
  border: 2px solid var(--merchant-purple);
}

.btn-outline:hover {
  background: var(--merchant-purple);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--ls-ink) 0%, var(--ls-ink-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  color: var(--merchant-purple-light);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Animation */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--ls-ink);
  color: white;
}

.section-purple {
  background: linear-gradient(135deg, var(--merchant-purple), #7C3AED);
  color: white;
}

.section-green {
  background: linear-gradient(135deg, var(--clear-green), #059669);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header.left {
  text-align: left;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Card Styles
   ============================================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-purple {
  background: linear-gradient(135deg, var(--merchant-purple), #7C3AED);
  color: white;
}

.card-green {
  background: linear-gradient(135deg, var(--clear-green), #059669);
  color: white;
}

.card-dark {
  background: var(--ls-ink);
  color: white;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-purple .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.card-purple .card-text {
  color: rgba(255, 255, 255, 0.85);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--merchant-purple);
  line-height: 1;
}

.card-purple .card-number {
  color: white;
}

.card-green .card-number {
  color: white;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid.asymmetric .card:nth-child(1) {
  grid-column: span 1;
}

.cards-grid.asymmetric .card:nth-child(2) {
  grid-column: span 1;
}

@media (max-width: 992px) {
  .cards-grid.cols-3,
  .cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid.cols-3,
  .cards-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Feature Block
   ============================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: auto;
}

.feature-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-highlight {
  font-weight: 600;
}

@media (max-width: 768px) {
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ============================================
   Table Styles
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  background: var(--bg-white);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: var(--ls-ink);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.table td {
  font-size: 0.9375rem;
  color: var(--text-body);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(139, 92, 246, 0.03);
}

.table .check {
  color: var(--clear-green);
  font-size: 1.25rem;
}

.table .cross {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.table .highlight {
  background: rgba(139, 92, 246, 0.08);
  font-weight: 500;
  color: var(--merchant-purple);
}

/* ============================================
   FAQ Styles
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--merchant-purple);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--merchant-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--ls-ink) 0%, var(--ls-ink-light) 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta-highlight {
  color: var(--merchant-purple-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--ls-ink) 0%, #0F1620 100%);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--merchant-purple-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--ls-ink) 0%, var(--ls-ink-light) 100%);
  text-align: center;
}

.page-header.purple {
  background: linear-gradient(135deg, var(--merchant-purple) 0%, #7C3AED 100%);
}

.page-header.green {
  background: linear-gradient(135deg, var(--clear-green) 0%, #059669 100%);
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

/* ============================================
   Info Box
   ============================================ */
.info-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-box h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-item-icon {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clear-green-light);
}

.info-item-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ============================================
   Compare Table Specific
   ============================================ */
.compare-table th {
  font-size: 1.125rem;
  padding: 20px;
}

.compare-table td {
  padding: 18px 20px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-5 { padding-top: 48px; padding-bottom: 48px; }
.py-6 { padding-top: 64px; padding-bottom: 64px; }

.hidden { display: none !important; }

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .section { padding: 60px 0; }
  .page-header { padding: 100px 0 50px; }
  .page-header h1 { font-size: 1.75rem; }
  
  .card { padding: 24px; }
  .card-number { font-size: 2.5rem; }
}
