/* ========================================
   海科融通电签机 - 深琥珀闪减风 CSS
   ======================================== */

/* CSS Variables */
:root {
  /* 品牌色 */
  --hkk-amber: #92400E;
  --hkk-amber-light: #B45309;
  --hkk-amber-dark: #78350F;
  
  /* 闪付色 */
  --flash-cyan: #06B6D4;
  --flash-cyan-light: #22D3EE;
  --flash-cyan-dark: #0891B2;
  
  /* 减红色 */
  --discount-red: #EF4444;
  --discount-red-light: #F87171;
  --discount-red-dark: #DC2626;
  
  /* 背景色 */
  --bg-page: #FFFBEB;
  --bg-section: #FFF7ED;
  --bg-white: #FFFFFF;
  
  /* 文字色 */
  --text-dark: #451A03;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  /* 边框 */
  --border-light: #FED7AA;
  --border-medium: #F5C6A5;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(146, 64, 14, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(146, 64, 14, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(146, 64, 14, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(146, 64, 14, 0.2);
  
  /* 间距 */
  --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.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 数字英文字体 */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  z-index: 1000;
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--hkk-amber);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hkk-amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--flash-cyan);
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--hkk-amber);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--flash-cyan) 0%, var(--flash-cyan-dark) 100%);
  color: white !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--hkk-amber);
  transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: var(--space-md);
  text-decoration: none;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 50%, var(--hkk-amber) 100%);
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
  overflow: hidden;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.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");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
  color: var(--flash-cyan-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--flash-cyan) 0%, var(--flash-cyan-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-amber {
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
  color: white;
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-red {
  background: linear-gradient(135deg, var(--discount-red) 0%, var(--discount-red-dark) 100%);
  color: white;
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-amber {
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
  color: white;
}

.section-cyan {
  background: linear-gradient(135deg, var(--flash-cyan-dark) 0%, var(--flash-cyan) 100%);
  color: white;
}

.section-red {
  background: linear-gradient(135deg, var(--discount-red-dark) 0%, var(--discount-red) 100%);
  color: white;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

.section-amber .section-title,
.section-cyan .section-title,
.section-red .section-title {
  color: white;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.section-amber .section-subtitle,
.section-cyan .section-subtitle,
.section-red .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   Flash-Discount Section (闪减板块)
   ======================================== */
.flash-discount {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.flash-discount-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.flash-discount-image img {
  width: 100%;
  height: auto;
  display: block;
}

.flash-discount-content h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

.flash-discount-content p {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.8;
}

.flash-discount-content .highlight {
  color: var(--flash-cyan);
  font-weight: 700;
}

/* ========================================
   Cards
   ======================================== */
.cards-grid {
  display: grid;
  gap: var(--space-lg);
}

.cards-grid.asymmetric {
  grid-template-columns: 55% 43%;
  justify-content: space-between;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-cyan {
  border: 2px solid var(--flash-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.card-red {
  border: 2px solid var(--discount-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.card-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--hkk-amber);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.card-cyan .card-number {
  color: var(--flash-cyan);
}

.card-red .card-number {
  color: var(--discount-red);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* 闪付卡片三列布局 */
.cards-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* 色块背景卡片 */
.card-block {
  background: linear-gradient(135deg, var(--flash-cyan) 0%, var(--flash-cyan-dark) 100%);
  color: white;
}

.card-block .card-number,
.card-block .card-title,
.card-block .card-desc {
  color: white;
}

.card-block .card-desc {
  opacity: 0.9;
}

/* ========================================
   Discount Section (立减板块)
   ======================================== */
.discount-intro {
  text-align: left;
  max-width: 800px;
}

.discount-highlight {
  color: var(--discount-red);
  font-weight: 700;
}

.discount-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.discount-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.discount-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--discount-red) 0%, var(--discount-red-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.discount-feature-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.discount-feature-content p {
  color: var(--text-muted);
}

/* ========================================
   Comparison Tables
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2xl) 0;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.compare-table td {
  color: var(--text-body);
}

.compare-table .check {
  color: #10B981;
  font-weight: 700;
  font-size: 1.125rem;
}

.compare-table .cross {
  color: var(--text-light);
  font-size: 1.125rem;
}

.compare-table .highlight-col {
  background: rgba(146, 64, 14, 0.05);
  font-weight: 600;
  color: var(--hkk-amber);
}

.compare-table .check-col {
  background: rgba(16, 185, 129, 0.1);
}

.compare-table .red-col {
  background: rgba(239, 68, 68, 0.1);
  color: var(--discount-red);
  font-weight: 600;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  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);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--hkk-amber);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
  color: var(--hkk-amber);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Rules Box
   ======================================== */
.rules-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.rules-box h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.rules-list {
  list-style: none;
}

.rules-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.rules-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--flash-cyan-light);
}

/* ========================================
   Bottom CTA Section
   ======================================== */
.bottom-cta {
  text-align: center;
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
  color: white;
}

.bottom-cta h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-lg);
}

.bottom-cta .highlight {
  color: var(--flash-cyan-light);
  font-weight: 700;
}

.bottom-cta .highlight-red {
  color: #FCA5A5;
  font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
  color: white;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  color: white;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.8;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--flash-cyan-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Page Header (页面标题区)
   ======================================== */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  color: white;
}

.page-header.cyan-bg {
  background: linear-gradient(135deg, var(--flash-cyan-dark) 0%, var(--flash-cyan) 100%);
}

.page-header.red-bg {
  background: linear-gradient(135deg, var(--discount-red-dark) 0%, var(--discount-red) 100%);
}

.page-header.amber-bg {
  background: linear-gradient(135deg, var(--hkk-amber) 0%, var(--hkk-amber-light) 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .flash-discount {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .cards-grid.asymmetric {
    grid-template-columns: 1fr;
  }
  
  .cards-grid.three-col {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .compare-table {
    font-size: 0.8125rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-amber { color: var(--hkk-amber); }
.text-cyan { color: var(--flash-cyan); }
.text-red { color: var(--discount-red); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.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); }
