/* ==========================================================================
   银联商务手刷MPOS - 准套风格设计系统
   深琥珀墨棕准套风
   ========================================================================== */

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
  /* 品牌色 - 深琥珀墨棕准套风 */
  --ums-amber: #28201A;
  --ums-amber-light: #38302A;
  --ums-amber-dark: #1a140f;

  /* 准紫色 - 精准定位 */
  --precise-purple: #8B5CF6;
  --precise-purple-light: #a78bfa;
  --precise-purple-dark: #7c3aed;

  /* 套青色 - 无套路 */
  --trick-cyan: #06B6D4;
  --trick-cyan-light: #22d3ee;
  --trick-cyan-dark: #0891b2;

  /* 背景与文字 */
  --bg-page: #EBE8E5;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;

  /* 文字颜色 */
  --text-dark: #0D0A08;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* 功能色 */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-amber: 0 10px 40px -10px rgba(40, 32, 26, 0.4);
  --shadow-purple: 0 10px 40px -10px rgba(139, 92, 246, 0.4);
  --shadow-cyan: 0 10px 40px -10px rgba(6, 182, 212, 0.4);

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* 容器宽度 */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* 导航高度 */
  --nav-height: 70px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
}

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;
}

/* 数字英文字体 */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

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: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* 强调色文字 */
.text-precise {
  color: var(--precise-purple);
}

.text-trick {
  color: var(--trick-cyan);
}

.text-amber {
  color: var(--ums-amber);
}

.text-bold {
  font-weight: 700;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-white);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(40, 32, 26, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ums-amber);
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-nav a {
  position: relative;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--ums-amber);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--precise-purple);
  border-radius: 2px;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--precise-purple), var(--precise-purple-dark));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ums-amber);
  transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-cta {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-amber {
  background: linear-gradient(135deg, var(--ums-amber) 0%, var(--ums-amber-light) 100%);
  color: white;
}

.hero-amber h1,
.hero-amber h2,
.hero-amber h3 {
  color: white;
}

.hero-amber p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-purple {
  background: linear-gradient(135deg, var(--precise-purple-dark) 0%, var(--precise-purple) 100%);
  color: white;
}

.hero-purple h1,
.hero-purple h2,
.hero-purple h3 {
  color: white;
}

.hero-cyan {
  background: linear-gradient(135deg, var(--trick-cyan-dark) 0%, var(--trick-cyan) 100%);
  color: white;
}

.hero-cyan h1,
.hero-cyan h2,
.hero-cyan h3 {
  color: white;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-lower {
  padding: var(--space-3xl) 0;
}

/* Page Hero (lower height) */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  min-height: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--precise-purple), var(--precise-purple-dark));
  color: white;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn-amber {
  background: var(--ums-amber);
  color: white;
}

.btn-amber:hover {
  background: var(--ums-amber-light);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--trick-cyan), var(--trick-cyan-dark));
  color: white;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-amber {
  background: linear-gradient(135deg, var(--ums-amber) 0%, var(--ums-amber-light) 100%);
  color: white;
}

.card-amber h3,
.card-amber h4 {
  color: white;
}

.card-amber p {
  color: rgba(255, 255, 255, 0.85);
}

.card-purple {
  background: linear-gradient(135deg, var(--precise-purple-dark) 0%, var(--precise-purple) 100%);
  color: white;
}

.card-purple h3,
.card-purple h4 {
  color: white;
}

.card-cyan {
  background: linear-gradient(135deg, var(--trick-cyan-dark) 0%, var(--trick-cyan) 100%);
  color: white;
}

.card-cyan h3,
.card-cyan h4 {
  color: white;
}

/* Asymmetric Cards */
.card-wide {
  width: 55%;
}

.card-narrow {
  width: 43%;
}

@media (max-width: 768px) {
  .card-wide,
  .card-narrow {
    width: 100%;
  }
}

/* ==========================================================================
   Feature Sections
   ========================================================================== */
.feature-grid {
  display: grid;
  gap: var(--space-xl);
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .feature-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-grid-2,
  .feature-grid-3,
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Asymmetric Feature Layout */
.feature-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .feature-asymmetric {
    grid-template-columns: 1fr;
  }
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(139, 92, 246, 0.1);
  color: var(--precise-purple);
  margin-bottom: var(--space-md);
}

.feature-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--trick-cyan);
}

.feature-icon.amber {
  background: rgba(40, 32, 26, 0.1);
  color: var(--ums-amber);
}

.feature-number {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.feature-number.precise {
  color: var(--precise-purple);
}

.feature-number.trick {
  color: var(--trick-cyan);
}

/* ==========================================================================
   Comparison Tables
   ========================================================================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: var(--ums-amber);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.03);
}

.comparison-table .check {
  color: var(--success);
  font-size: 1.25rem;
}

.comparison-table .cross {
  color: var(--error);
  font-size: 1.25rem;
}

.comparison-highlight {
  background: rgba(139, 92, 246, 0.08) !important;
}

/* Compact Table */
.table-compact th,
.table-compact td {
  padding: var(--space-sm) var(--space-md);
}

.table-spacious {
  border-collapse: separate;
  border-spacing: 0 var(--space-md);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(139, 92, 246, 0.03);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--ums-amber) 0%, var(--ums-amber-light) 100%);
  color: white;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.cta-emphasize {
  color: var(--precise-purple-light);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: linear-gradient(135deg, var(--ums-amber) 0%, var(--ums-amber-light) 100%);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand h3 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Info Box
   ========================================================================== */
.info-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--trick-cyan);
  padding: var(--space-lg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.info-box-purple {
  background: rgba(139, 92, 246, 0.08);
  border-left-color: var(--precise-purple);
}

/* ==========================================================================
   Two Column Layout
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .show-mobile { display: none; }
}
