/* ========================================
   海科融通传统大机官网 - 全局样式
   深橄榄黑时送风
   ======================================== */

/* CSS Variables */
:root {
  --hkr-olive: #2A2A1A;
  --hkr-olive-light: #3A3A2A;
  --arrival-green: #10B981;
  --arrival-green-dark: #0D9668;
  --send-gold: #F8CB17;
  --send-gold-dark: #D4AF10;
  --bg-page: #F2F2EE;
  --bg-white: #FFFFFF;
  --text-dark: #120F0A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --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.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --max-width: 1200px;
}

/* 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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  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; }

.text-green { color: var(--arrival-green); }
.text-gold { color: var(--send-gold); }
.text-dark { color: var(--text-dark); }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(42, 42, 26, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hkr-olive);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--hkr-olive);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--arrival-green);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--arrival-green);
}

.nav-cta {
  background: var(--arrival-green);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--arrival-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--hkr-olive);
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--arrival-green), var(--arrival-green-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--hkr-olive);
}

.btn-gold {
  background: linear-gradient(135deg, var(--send-gold), var(--send-gold-dark));
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(248, 203, 23, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 203, 23, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--arrival-green);
  color: var(--arrival-green);
}

.btn-outline:hover {
  background: var(--arrival-green);
  color: white;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--hkr-olive) 0%, var(--hkr-olive-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(248, 203, 23, 0.05) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--arrival-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--arrival-green), var(--send-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (smaller version) */
.page-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--hkr-olive) 0%, var(--hkr-olive-light) 100%);
  text-align: center;
  color: white;
}

.page-hero.green {
  background: linear-gradient(135deg, var(--arrival-green-dark) 0%, var(--arrival-green) 100%);
}

.page-hero.gold {
  background: linear-gradient(135deg, var(--send-gold-dark) 0%, var(--send-gold) 100%);
}

.page-hero h1 {
  color: white;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--hkr-olive);
  color: white;
}

.section-white {
  background: white;
}

.section-gray {
  background: var(--bg-page);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-cards {
  display: grid;
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--arrival-green), rgba(16, 185, 129, 0.8));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 24px;
}

.feature-icon.gold {
  background: linear-gradient(135deg, var(--send-gold), rgba(248, 203, 23, 0.8));
  color: var(--text-dark);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--arrival-green), var(--send-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.feature-number-unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Asymmetric Cards Layout */
.cards-asymmetric {
  display: grid;
  grid-template-columns: 55% 43%;
  gap: 24px;
  align-items: stretch;
}

.cards-asymmetric .feature-card:first-child {
  padding: 40px;
}

/* ========================================
   Content Layouts
   ======================================== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-text h2 {
  margin-bottom: 20px;
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Left aligned content */
.content-left {
  text-align: left;
}

/* ========================================
   Comparison Table
   ======================================== */
.comparison-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--hkr-olive);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

.comparison-table .highlight {
  color: var(--arrival-green);
  font-weight: 600;
}

.check-icon {
  color: var(--arrival-green);
  font-size: 1.25rem;
}

.cross-icon {
  color: #EF4444;
  font-size: 1.25rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-page);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--arrival-green);
}

.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: 200px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--hkr-olive) 0%, var(--hkr-olive-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section h2 span {
  color: var(--arrival-green);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--hkr-olive) 0%, var(--hkr-olive-light) 100%);
  color: white;
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--arrival-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ========================================
   Highlight Box
   ======================================== */
.highlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(248, 203, 23, 0.1) 100%);
  border: 2px solid var(--arrival-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.highlight-box h3 {
  color: var(--arrival-green);
  margin-bottom: 16px;
}

.highlight-box.gold {
  background: linear-gradient(135deg, rgba(248, 203, 23, 0.1) 0%, rgba(248, 203, 23, 0.2) 100%);
  border-color: var(--send-gold);
}

.highlight-box.gold h3 {
  color: var(--send-gold-dark);
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--arrival-green), var(--send-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================
   Staggered Layout
   ======================================== */
.staggered-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.staggered-grid .card-wide {
  padding: 40px;
}

.staggered-grid .card-narrow {
  padding: 28px;
  margin-top: 40px;
}

/* Mixed layout */
.mixed-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mixed-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px;
}

.mixed-stats .stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--arrival-green), rgba(16, 185, 129, 0.8));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  flex-shrink: 0;
}

.mixed-stats .stat-icon.gold {
  background: linear-gradient(135deg, var(--send-gold), rgba(248, 203, 23, 0.8));
  color: var(--text-dark);
}

/* ========================================
   Info Box
   ======================================== */
.info-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--arrival-green);
}

.info-box h4 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-list li::before {
  content: '✓';
  color: var(--arrival-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards-asymmetric {
    grid-template-columns: 1fr;
  }

  .staggered-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mixed-stats {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .page-hero {
    padding: 100px 0 60px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}
