/* ========================================
   嘉联支付 AllScore 智能POS 官网样式
   深钢灰蓝额营风
   ======================================== */

/* CSS Variables */
:root {
  --as-steel: #1A2228;
  --as-steel-light: #2A3238;
  --limit-purple: #8B5CF6;
  --limit-purple-light: #A78BFA;
  --direct-orange: #F97316;
  --direct-orange-light: #FB923C;
  --bg-page: #EAECEE;
  --bg-white: #FFFFFF;
  --text-dark: #0C1214;
  --text-body: #334155;
  --text-light: #64748B;
  --border-light: #E2E8F0;
  --success: #10B981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.highlight-purple {
  color: var(--limit-purple);
  font-weight: 700;
}

.highlight-orange {
  color: var(--direct-orange);
  font-weight: 700;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(26, 34, 40, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--as-steel);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--limit-purple);
  transition: width 0.2s;
}

.nav-link:hover {
  color: var(--limit-purple);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--limit-purple);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--limit-purple-light);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--as-steel);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, var(--as-steel) 0%, var(--as-steel-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid white;
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-alt {
  background: var(--bg-white);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.card-icon.purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: var(--limit-purple);
}

.card-icon.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.2) 100%);
  color: var(--direct-orange);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--direct-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature-card-label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .feature-grid-3,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Content Layout
   ======================================== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.content-text p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.content-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.content-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 968px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-split.reverse {
    direction: ltr;
  }
}

/* ========================================
   Stats Cards
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stats-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stats-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--limit-purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-number.orange {
  color: var(--direct-orange);
}

.stats-label {
  font-size: 0.9375rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   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: var(--as-steel);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

.compare-table td {
  font-size: 0.9375rem;
  color: var(--text-body);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(139, 92, 246, 0.03);
}

.check {
  color: var(--success);
  font-weight: 700;
}

.cross {
  color: var(--text-light);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: all 0.2s;
}

.faq-question:hover {
  color: var(--limit-purple);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--as-steel) 0%, var(--as-steel-light) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  color: white;
}

.cta-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Purple Hero CTA */
.cta-purple {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
}

.cta-purple .cta-btn {
  background: white;
  color: var(--limit-purple);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Orange Hero CTA */
.cta-orange {
  background: linear-gradient(135deg, var(--direct-orange) 0%, var(--direct-orange-light) 100%);
}

.cta-orange .cta-btn {
  background: white;
  color: var(--direct-orange);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Page Hero (Subpages)
   ======================================== */
.page-hero {
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
}

.page-hero.purple-bg {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
}

.page-hero.orange-bg {
  background: linear-gradient(135deg, var(--direct-orange) 0%, var(--direct-orange-light) 100%);
  color: white;
}

.page-hero.steel-bg {
  background: linear-gradient(135deg, var(--as-steel) 0%, var(--as-steel-light) 100%);
  color: white;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: inherit;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Feature Cards Mixed Layout
   ======================================== */
.features-mixed {
  display: grid;
  gap: 2rem;
}

.feature-row {
  display: grid;
  gap: 1.5rem;
}

.feature-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-block {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.feature-block.highlight {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
}

.feature-block.highlight .card-title,
.feature-block.highlight .card-text {
  color: inherit;
}

.feature-block-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature-block.highlight .feature-block-number {
  color: rgba(255, 255, 255, 0.3);
}

.feature-block-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-block.highlight .feature-block-title {
  color: white;
}

.feature-block-text {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.feature-block.highlight .feature-block-text {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .feature-row-3,
  .feature-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
}

.info-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-box ul {
  display: grid;
  gap: 1rem;
}

.info-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
}

.info-box li strong {
  color: var(--direct-orange);
}

.info-box .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--limit-purple);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--as-steel) 0%, var(--as-steel-light) 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Utilities
   ======================================== */
.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-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .page-hero {
    padding: 6rem 0 3rem;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
}
