/* ============================================
   银联商务智能POS - 设计系统
   深紫罗兰本免风
   ============================================ */

/* CSS变量定义 */
:root {
  /* 主色调 */
  --cup-violet: #581C87;
  --cup-violet-light: #7E22CE;
  --cup-violet-dark: #3B0764;
  
  /* 功能色 */
  --loc-green: #10B981;
  --loc-green-light: #34D399;
  --loc-green-dark: #059669;
  
  --ship-gold: #F59E0B;
  --ship-gold-light: #FBBF24;
  --ship-gold-dark: #D97706;
  
  /* 背景色 */
  --bg-page: #FAF5FF;
  --bg-card: #FFFFFF;
  --bg-section: #F3E8FF;
  
  /* 文字色 */
  --text-dark: #3B0764;
  --text-body: #334155;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  
  /* 边框 */
  --border-light: #E9D5FF;
  --border-green: rgba(16, 185, 129, 0.3);
  --border-gold: rgba(245, 158, 11, 0.3);
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(88, 28, 135, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(88, 28, 135, 0.1), 0 2px 4px -2px rgba(88, 28, 135, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(88, 28, 135, 0.15), 0 4px 6px -4px rgba(88, 28, 135, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(88, 28, 135, 0.2), 0 8px 10px -6px rgba(88, 28, 135, 0.1);
  
  /* 间距 */
  --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;
  
  /* 字体 */
  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--cup-violet);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cup-violet-light);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--loc-green) 0%, var(--loc-green-dark) 100%);
  color: var(--text-white);
  border-color: var(--loc-green);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--loc-green-light) 0%, var(--loc-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: var(--text-white);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--cup-violet);
  border-color: var(--cup-violet);
}

.btn-outline:hover {
  background: var(--cup-violet);
  color: var(--text-white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--ship-gold) 0%, var(--ship-gold-dark) 100%);
  color: var(--text-white);
  border-color: var(--ship-gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--ship-gold-light) 0%, var(--ship-gold) 100%);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(88, 28, 135, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cup-violet);
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.navbar-menu a {
  color: var(--text-body);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--loc-green);
  transition: width var(--transition-fast);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--cup-violet);
}

.navbar-cta .btn {
  padding: 0.5rem 1.25rem;
}

/* 汉堡菜单 */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cup-violet);
  transition: all var(--transition-fast);
}

.navbar-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.navbar-mobile.active {
  display: block;
}

.navbar-mobile a {
  display: block;
  padding: var(--space-md);
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}

.navbar-mobile a:last-child {
  border-bottom: none;
}

/* Hero区域 */
.hero {
  position: relative;
  padding: 8rem var(--space-lg) 5rem;
  background: linear-gradient(135deg, var(--cup-violet) 0%, var(--cup-violet-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(126, 34, 206, 0.4) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-white);
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  margin-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 通用标题区 */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* 区块 */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-violet {
  background: linear-gradient(135deg, var(--cup-violet) 0%, var(--cup-violet-light) 100%);
  color: var(--text-white);
}

.section-green {
  background: linear-gradient(135deg, var(--loc-green) 0%, var(--loc-green-dark) 100%);
  color: var(--text-white);
}

.section-gold {
  background: linear-gradient(135deg, var(--ship-gold) 0%, var(--ship-gold-dark) 100%);
  color: var(--text-white);
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-feature {
  border: 1px solid var(--border-light);
}

.card-highlight {
  background: linear-gradient(135deg, var(--cup-violet) 0%, var(--cup-violet-light) 100%);
  color: var(--text-white);
  border: none;
}

.card-green {
  background: linear-gradient(135deg, var(--loc-green) 0%, var(--loc-green-dark) 100%);
  color: var(--text-white);
  border: none;
}

.card-gold {
  background: linear-gradient(135deg, var(--ship-gold) 0%, var(--ship-gold-dark) 100%);
  color: var(--text-white);
  border: none;
}

/* 特色标签 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--loc-green);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--ship-gold);
}

.badge-violet {
  background: rgba(88, 28, 135, 0.1);
  color: var(--cup-violet);
}

/* 文字强调 */
.text-green { color: var(--loc-green); }
.text-gold { color: var(--ship-gold); }
.text-violet { color: var(--cup-violet); }
.text-highlight {
  background: linear-gradient(135deg, var(--loc-green) 0%, var(--loc-green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold-highlight {
  background: linear-gradient(135deg, var(--ship-gold) 0%, var(--ship-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 数字大字体 */
.number-big {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.number-medium {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
}

/* 图片 */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--border-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.table th,
.table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--cup-violet);
  color: var(--text-white);
  font-weight: 600;
}

.table th:first-child {
  border-radius: var(--radius-xl) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--radius-xl) 0 0;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-section);
}

.table .check {
  color: var(--loc-green);
  font-size: 1.25rem;
}

.table .cross {
  color: #EF4444;
  font-size: 1.25rem;
}

/* FAQ手风琴 */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--cup-violet);
}

.faq-icon {
  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-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-body);
  line-height: 1.7;
}

/* 底部申请区 */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--cup-violet) 0%, var(--cup-violet-light) 100%);
  text-align: center;
  color: var(--text-white);
}

.cta-title {
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, var(--cup-violet) 0%, var(--cup-violet-light) 100%);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--text-white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .hero {
    padding: 7rem var(--space-md) 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .table th,
  .table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex工具 */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  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); }

/* 间距工具 */
.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); }

/* 文本居中 */
.text-center { text-align: center; }

/* 图片容器 */
.img-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* 两栏布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* 特色块 */
.feature-block {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.feature-icon-green {
  background: rgba(16, 185, 129, 0.1);
}

.feature-icon-gold {
  background: rgba(245, 158, 11, 0.1);
}

.feature-icon-violet {
  background: rgba(88, 28, 135, 0.1);
}
