/* ========================================
   嘉联支付电签机官网 - CSS样式表
   深琥珀棕费包风格
   ======================================== */

/* CSS Variables */
:root {
  --jlp-amber: #2A281A;
  --jlp-amber-light: #3A382A;
  --rate-orange: #F97316;
  --rate-orange-light: #FB923C;
  --ship-green: #10B981;
  --ship-green-light: #34D399;
  --bg-page: #F2F0EE;
  --bg-white: #FFFFFF;
  --text-dark: #12100A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(42, 40, 26, 0.05);
  --shadow-md: 0 4px 6px rgba(42, 40, 26, 0.07);
  --shadow-lg: 0 10px 25px rgba(42, 40, 26, 0.1);
  --shadow-nav: 0 2px 8px rgba(42, 40, 26, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 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-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-en {
  font-family: var(--font-en);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--jlp-amber);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--jlp-amber);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: var(--font-en);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rate-orange);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--jlp-amber);
}

.nav-cta {
  background: var(--rate-orange);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--rate-orange-light);
  transform: translateY(-1px);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jlp-amber);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rate-orange) 0%, var(--rate-orange-light) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--jlp-amber);
}

.btn-green {
  background: linear-gradient(135deg, var(--ship-green) 0%, var(--ship-green-light) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-amber {
  background: var(--jlp-amber);
  color: white;
}

.btn-amber:hover {
  background: var(--jlp-amber-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(-5%, 5%); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--rate-orange);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--rate-orange);
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--ship-green);
}

.card-icon.amber {
  background: rgba(42, 40, 26, 0.1);
  color: var(--jlp-amber);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Feature Blocks
   ======================================== */
.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.asymmetric .feature-card:first-child {
  grid-column: span 1;
}

@media (max-width: 768px) {
  .feature-grid.cols-2,
  .feature-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Feature Block with Image */
.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-content h2 {
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.8;
}

.feature-image {
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.feature-image-content {
  color: white;
  text-align: center;
}

.feature-image-content .big-number {
  font-size: 4rem;
  font-family: var(--font-en);
  font-weight: 700;
}

.feature-image-content .label {
  font-size: 1.1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-block.reverse {
    direction: ltr;
  }
}

/* ========================================
   Highlight Text
   ======================================== */
.highlight-orange {
  color: var(--rate-orange);
  font-weight: 700;
}

.highlight-green {
  color: var(--ship-green);
  font-weight: 700;
}

.highlight-amber {
  color: var(--jlp-amber);
  font-weight: 700;
}

/* ========================================
   Compare Table
   ======================================== */
.compare-table {
  width: 100%;
  background: var(--bg-white);
  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-color);
}

.compare-table th {
  background: var(--jlp-amber);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.compare-table th:first-child {
  font-size: 1.1rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(42, 40, 26, 0.02);
}

.check-icon {
  color: var(--ship-green);
  font-weight: 700;
}

.cross-icon {
  color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  padding: 60px 24px;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ========================================
   FAQ
   ======================================== */
.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;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(42, 40, 26, 0.02);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--jlp-amber);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  color: white;
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--rate-orange);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
}

.page-header.orange-bg {
  background: linear-gradient(135deg, var(--rate-orange) 0%, var(--rate-orange-light) 100%);
  color: white;
}

.page-header.green-bg {
  background: linear-gradient(135deg, var(--ship-green) 0%, var(--ship-green-light) 100%);
  color: white;
}

.page-header.amber-bg {
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  color: white;
}

.page-header h1 {
  color: inherit;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ========================================
   Advantage Cards
   ======================================== */
.advantage-cards {
  display: grid;
  gap: 24px;
}

.advantage-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.advantage-card.wide {
  grid-column: span 1;
}

.advantage-card.colored {
  background: linear-gradient(135deg, var(--jlp-amber) 0%, var(--jlp-amber-light) 100%);
  color: white;
}

.advantage-card.colored h3 {
  color: white;
}

.advantage-card.colored p {
  color: rgba(255, 255, 255, 0.9);
}

.advantage-number {
  font-size: 3rem;
  font-family: var(--font-en);
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-number.orange {
  color: var(--rate-orange);
}

.advantage-number.green {
  color: var(--ship-green);
}

.advantage-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.advantage-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-box h3 {
  color: var(--ship-green);
  margin-bottom: 20px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-body);
}

.info-list li::before {
  content: '✓';
  color: var(--ship-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
