/* ========================================
   海科融通蓝牙POS - 深靛紫智邮风格
   ======================================== */

:root {
  /* 核心品牌色 */
  --hypos-indigo: #4C1D95;
  --hypos-indigo-light: #5B21B6;
  --smart-indigo: #6366F1;
  --ship-gold: #F59E0B;
  
  /* 背景色 */
  --bg-page: #F5F3FF;
  --bg-white: #FFFFFF;
  --bg-light: #EDE9FE;
  
  /* 文字色 */
  --text-dark: #2E1065;
  --text-body: #334155;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  
  /* 功能色 */
  --success: #10B981;
  --border: #E2E8F0;
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(76, 29, 149, 0.05);
  --shadow-md: 0 4px 6px rgba(76, 29, 149, 0.07);
  --shadow-lg: 0 10px 15px rgba(76, 29, 149, 0.1);
  --shadow-xl: 0 20px 25px rgba(76, 29, 149, 0.15);
  
  /* 字体 */
  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   基础重置
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
}

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;
}

/* ========================================
   容器
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   导航栏
   ======================================== */
.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: var(--shadow-lg);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hypos-indigo);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--hypos-indigo), var(--smart-indigo));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--smart-indigo);
  transition: width 0.2s;
}

.nav-link:hover {
  color: var(--hypos-indigo);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--hypos-indigo);
}

.nav-cta {
  background: linear-gradient(135deg, var(--smart-indigo), var(--hypos-indigo));
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--hypos-indigo), var(--hypos-indigo-light));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--smart-indigo), var(--hypos-indigo));
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   页面标题区
   ======================================== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  color: white;
}

.page-hero.smart {
  background: linear-gradient(135deg, var(--smart-indigo), var(--hypos-indigo));
}

.page-hero.shipping {
  background: linear-gradient(135deg, var(--ship-gold), #D97706);
}

.page-hero.compare {
  background: linear-gradient(135deg, var(--hypos-indigo), var(--hypos-indigo-light));
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   通用区块
   ======================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-title span {
  color: var(--smart-indigo);
}

/* ========================================
   卡片
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-icon.smart {
  background: rgba(99, 102, 241, 0.1);
  color: var(--smart-indigo);
}

.card-icon.shipping {
  background: rgba(245, 158, 11, 0.1);
  color: var(--ship-gold);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ========================================
   智邮板块 - 左图右文
   ======================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-image {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-page));
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.feature-image-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.feature-image-placeholder svg {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.feature-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.feature-content p {
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.highlight {
  color: var(--smart-indigo);
  font-weight: 700;
}

.highlight-gold {
  color: var(--ship-gold);
  font-weight: 700;
}

/* ========================================
   智能匹配商户 - 错落卡片
   ======================================== */
.stagger-cards {
  display: grid;
  grid-template-columns: 55% 43%;
  gap: var(--space-lg);
  align-items: start;
}

.stagger-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.stagger-card:first-child {
  transform: translateY(20px);
}

.stagger-card .card-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--smart-indigo);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stagger-card .card-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.stagger-card .card-desc {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ========================================
   全国包邮 - 居左
   ======================================== */
.shipping-section {
  text-align: left;
}

.shipping-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.shipping-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--ship-gold), #D97706);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shipping-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ========================================
   对比表格
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.compare-table td {
  color: var(--text-body);
  font-size: 0.9375rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .brand-name {
  font-weight: 600;
  color: var(--hypos-indigo);
}

.check {
  color: var(--success);
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
}

/* 紧凑表格 */
.compare-table.compact th,
.compare-table.compact td {
  padding: var(--space-sm) var(--space-md);
}

/* ========================================
   包邮场景 - 混合布局
   ======================================== */
.shipping-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.scenario-item {
  padding: var(--space-xl);
}

.scenario-item:first-child {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  border-radius: var(--radius-xl);
  border: 2px solid rgba(245, 158, 11, 0.2);
}

.scenario-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ship-gold);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.scenario-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.scenario-desc {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ========================================
   包邮规则框
   ======================================== */
.shipping-rules {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.shipping-rules h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.shipping-rules ul {
  display: grid;
  gap: var(--space-sm);
}

.shipping-rules li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-body);
  font-size: 0.9375rem;
}

.shipping-rules li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--smart-indigo);
  border-radius: 50%;
}

/* ========================================
   FAQ 手风琴
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smart-indigo);
  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: 200px;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   底部申请区
   ======================================== */
.bottom-cta {
  background: linear-gradient(135deg, var(--hypos-indigo), var(--hypos-indigo-light));
  padding: var(--space-3xl) 0;
  text-align: center;
  color: white;
}

.bottom-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.bottom-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.bottom-cta .btn-primary {
  background: white;
  color: var(--hypos-indigo);
}

.bottom-cta .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--hypos-indigo), var(--hypos-indigo-light));
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ========================================
   表单
   ======================================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--smart-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
  .stagger-cards {
    grid-template-columns: 1fr;
  }
  
  .stagger-card:first-child {
    transform: none;
  }
  
  .feature-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .shipping-scenarios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .page-hero {
    padding: 120px 0 40px;
  }
  
  .page-hero h1 {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .compare-table {
    font-size: 0.8125rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: var(--space-sm);
  }
}

/* ========================================
   工具类
   ======================================== */
.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); }

.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); }

.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); }
