/* ========================================
   汇付天下智能POS - 深品红紫安开风格
   ======================================== */

/* CSS Variables */
:root {
  --payeco-magenta: #701A75;
  --payeco-magenta-light: #86198F;
  --safe-blue: #3B82F6;
  --open-green: #10B981;
  --bg-page: #FDF4FF;
  --bg-white: #FFFFFF;
  --text-dark: #4A044E;
  --text-body: #334155;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border-light: #E9D5FF;
  --shadow-sm: 0 1px 2px rgba(112, 26, 117, 0.05);
  --shadow-md: 0 4px 6px rgba(112, 26, 117, 0.1);
  --shadow-lg: 0 10px 25px rgba(112, 26, 117, 0.15);
  --shadow-xl: 0 20px 40px rgba(112, 26, 117, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  --transition: all 0.3s 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-cn);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* 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-white);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--payeco-magenta);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-body);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--payeco-magenta);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--payeco-magenta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--payeco-magenta);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--payeco-magenta-light);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--payeco-magenta);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu .nav-cta {
  margin-top: 1rem;
  width: 100%;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--safe-blue), #2563EB);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB, var(--safe-blue));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--payeco-magenta);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  color: white;
}

.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: linear-gradient(135deg, var(--open-green), #059669);
  color: white;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Safe (安蓝) */
.hero-safe {
  background: linear-gradient(135deg, var(--safe-blue), #1D4ED8);
}

/* Hero Instant (开绿) */
.hero-instant {
  background: linear-gradient(135deg, var(--open-green), #047857);
}

/* Hero Short */
.hero-short {
  padding: 120px 0 60px;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--safe-blue);
}

.card-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--open-green);
}

.card-icon-purple {
  background: rgba(112, 26, 117, 0.1);
  color: var(--payeco-magenta);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.card-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card-number-blue {
  color: var(--safe-blue);
}

.card-number-green {
  color: var(--open-green);
}

.card-number-purple {
  color: var(--payeco-magenta);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Feature Layout
   ======================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content h2 {
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--text-light);
  font-size: 1.0625rem;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: auto;
}

/* Highlight Text */
.text-highlight {
  font-weight: 700;
}

.text-blue {
  color: var(--safe-blue);
}

.text-green {
  color: var(--open-green);
}

.text-purple {
  color: var(--payeco-magenta);
}

/* ========================================
   Comparison Table
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.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: 0.9375rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(112, 26, 117, 0.03);
}

.check-icon {
  color: var(--open-green);
  font-weight: bold;
  font-size: 1.125rem;
}

.cross-icon {
  color: var(--text-muted);
}

/* ========================================
   FAQ
   ======================================== */
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--payeco-magenta);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.95;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--payeco-magenta), var(--payeco-magenta-light));
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  opacity: 0.85;
}

.footer ul a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ========================================
   Steps / Process
   ======================================== */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border-light);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--payeco-magenta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  font-family: var(--font-en);
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--safe-blue);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box-green {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--open-green);
}

.info-box h4 {
  margin-bottom: 0.75rem;
}

.info-box p {
  margin-bottom: 0;
  color: var(--text-body);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-row {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-short {
    padding: 100px 0 50px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-row.reverse {
    direction: ltr;
  }
  
  .steps {
    flex-direction: column;
    gap: 2rem;
  }
  
  .steps::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .compare-table {
    font-size: 0.8125rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
