/* ============================================
   随行付智能POS - 深苔金棕码优风
   ============================================ */

/* CSS Variables */
:root {
  --sxf-khaki: #3A3A28;
  --sxf-khaki-light: #4A4A38;
  --code-orange: #F97316;
  --code-orange-light: #FB923C;
  --discount-green: #10B981;
  --discount-green-light: #34D399;
  --bg-page: #F2F2EE;
  --bg-white: #FFFFFF;
  --text-dark: #0E0E08;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(58, 58, 40, 0.05);
  --shadow-md: 0 4px 6px rgba(58, 58, 40, 0.07);
  --shadow-lg: 0 10px 15px rgba(58, 58, 40, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --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.7;
  font-size: 16px;
}

.font-number {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* 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; }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--code-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--code-orange-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   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-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sxf-khaki);
}

.navbar-brand svg {
  width: 36px;
  height: 36px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav a:hover {
  background: rgba(58, 58, 40, 0.05);
  color: var(--sxf-khaki);
}

.navbar-nav a.active {
  color: var(--code-orange);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--code-orange);
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.navbar-cta:hover {
  background: var(--code-orange-light);
  transform: translateY(-1px);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sxf-khaki);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .navbar-cta {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--code-orange), var(--code-orange-light));
  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(--sxf-khaki);
}

.btn-outline {
  background: transparent;
  color: var(--sxf-khaki);
  border: 2px solid var(--sxf-khaki);
}

.btn-outline:hover {
  background: var(--sxf-khaki);
  color: white;
}

.btn-green {
  background: linear-gradient(135deg, var(--discount-green), var(--discount-green-light));
  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);
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--sxf-khaki), var(--sxf-khaki-light));
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.15), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-orange {
  background: linear-gradient(135deg, var(--code-orange), #EA580C);
}

.hero-orange::before {
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(58, 58, 40, 0.2), transparent 40%);
}

.hero-green {
  background: linear-gradient(135deg, var(--discount-green), #059669);
}

.hero-green::before {
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1), transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.3), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--sxf-khaki);
  color: white;
}

.section-gray {
  background: var(--bg-page);
}

.section-white {
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--code-orange);
}

.card-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--discount-green);
}

.card-icon-khaki {
  background: rgba(58, 58, 40, 0.1);
  color: var(--sxf-khaki);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
}

/* Staggered Cards */
.cards-staggered {
  display: grid;
  gap: 24px;
}

.cards-staggered .card:nth-child(1) {
  width: 55%;
}

.cards-staggered .card:nth-child(2) {
  width: 43%;
  margin-left: auto;
}

@media (max-width: 992px) {
  .cards-staggered .card:nth-child(1),
  .cards-staggered .card:nth-child(2) {
    width: 100%;
    margin-left: 0;
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Feature Blocks
   ============================================ */
.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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-content h2 {
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-highlight {
  color: var(--code-orange);
  font-weight: 700;
}

.feature-green {
  color: var(--discount-green);
  font-weight: 700;
}

@media (max-width: 992px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-block.reverse {
    direction: ltr;
  }
}

/* ============================================
   Stats
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sxf-khaki);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number.orange {
  color: var(--code-orange);
}

.stat-number.green {
  color: var(--discount-green);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--sxf-khaki);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

td {
  font-size: 0.9375rem;
}

tr:hover {
  background: rgba(58, 58, 40, 0.02);
}

.check {
  color: var(--discount-green);
  font-weight: bold;
  font-size: 1.25rem;
}

.cross {
  color: var(--text-muted);
  font-weight: bold;
}

.table-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sxf-khaki);
  margin-bottom: 16px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--code-orange);
}

.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-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--sxf-khaki), var(--sxf-khaki-light));
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.cta-highlight {
  color: var(--code-orange);
  font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--sxf-khaki), var(--sxf-khaki-light));
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand h3 {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-orange { color: var(--code-orange); }
.text-green { color: var(--discount-green); }
.text-khaki { color: var(--sxf-khaki); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-24 { padding-top: 24px; padding-bottom: 24px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.py-48 { padding-top: 48px; padding-bottom: 48px; }

.bg-orange { background: var(--code-orange); color: white; }
.bg-green { background: var(--discount-green); color: white; }
.bg-khaki { background: var(--sxf-khaki); color: white; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .card {
    padding: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ============================================
   Comparison Page Specific
   ============================================ */
.compare-table th {
  font-size: 1rem;
  padding: 20px;
}

.compare-table td {
  padding: 18px 20px;
}

.compare-table tr:nth-child(even) {
  background: rgba(242, 242, 238, 0.5);
}

/* ============================================
   Offer Box
   ============================================ */
.offer-box {
  background: rgba(16, 185, 129, 0.05);
  border: 2px solid var(--discount-green);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.offer-box h3 {
  color: var(--discount-green);
  margin-bottom: 20px;
}

.offer-list {
  list-style: none;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.offer-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.offer-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--discount-green);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--code-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Advantages Mixed Layout
   ============================================ */
.advantages-mixed {
  display: grid;
  gap: 32px;
}

.advantage-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.advantage-row .card {
  text-align: center;
}

@media (max-width: 992px) {
  .advantage-row {
    grid-template-columns: 1fr;
  }
}

.advantage-large {
  background: var(--sxf-khaki);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.advantage-large h3 {
  color: white;
  margin-bottom: 16px;
}

.advantage-large p {
  opacity: 0.9;
}

.advantage-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.advantage-number.orange {
  color: var(--code-orange);
}

.advantage-number.green {
  color: var(--discount-green);
}

/* Color Block Background */
.color-block {
  background: var(--sxf-khaki);
  color: white;
  border-radius: var(--radius-md);
  padding: 32px;
}

.color-block h3 {
  color: white;
  margin-bottom: 12px;
}

.color-block p {
  opacity: 0.9;
  margin-bottom: 0;
}
