/* ========================================
   海科融通电签机官网 CSS
   靛蓝紫秒清风
   ======================================== */

/* CSS Variables */
:root {
  --hkk-indigo: #4338CA;
  --hkk-indigo-light: #6366F1;
  --instant-orange: #F97316;
  --clear-cyan: #06B6D4;
  --bg-page: #EEF2FF;
  --bg-white: #FFFFFF;
  --text-dark: #1E1B4B;
  --text-body: #334155;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(67, 56, 202, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(67, 56, 202, 0.1), 0 2px 4px -1px rgba(67, 56, 202, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(67, 56, 202, 0.1), 0 4px 6px -2px rgba(67, 56, 202, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(67, 56, 202, 0.1), 0 10px 10px -5px rgba(67, 56, 202, 0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'DM Sans', -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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   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(67, 56, 202, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hkk-indigo);
}

.logo-text span {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--instant-orange);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--hkk-indigo);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--instant-orange) 0%, #FB923C 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition-normal);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--instant-orange) 0%, #FB923C 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.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-outline {
  background: transparent;
  color: var(--hkk-indigo);
  border: 2px solid var(--hkk-indigo);
}

.btn-outline:hover {
  background: var(--hkk-indigo);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  overflow: hidden;
}

.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.05'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 4rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.0625rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Hero (lower height) */
.page-hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero.orange-bg {
  background: linear-gradient(135deg, var(--instant-orange) 0%, #FB923C 100%);
}

.page-hero.cyan-bg {
  background: linear-gradient(135deg, var(--clear-cyan) 0%, #22D3EE 100%);
}

.page-hero.indigo-bg {
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
}

.page-hero .hero-badge {
  background: rgba(255, 255, 255, 0.2);
}

.page-hero .hero-title {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 5rem 0 3rem;
  }
  .page-hero .hero-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
  color: var(--instant-orange);
}

.card-icon.cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
  color: var(--clear-cyan);
}

.card-icon.indigo {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  color: var(--hkk-indigo);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-grid,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Asymmetric Cards */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .asymmetric-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlight Number */
.highlight-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--instant-orange) 0%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.highlight-cyan {
  color: var(--clear-cyan);
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

.table th:first-child {
  border-radius: 0;
}

.table th:last-child {
  border-radius: 0;
}

.table td {
  font-size: 0.9375rem;
  color: var(--text-body);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(67, 56, 202, 0.02);
}

@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }
  .table {
    min-width: 600px;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(67, 56, 202, 0.03);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hkk-indigo);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::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.05'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-desc .highlight-cyan {
  color: var(--clear-cyan);
  font-weight: 600;
}

/* ========================================
   Feature Banner (Image + Text)
   ======================================== */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-banner.reverse {
  direction: rtl;
}

.feature-banner.reverse > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: auto;
}

.feature-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--text-light);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.highlight-orange {
  color: var(--instant-orange);
  font-weight: 700;
}

.highlight-indigo {
  color: var(--hkk-indigo);
  font-weight: 700;
}

@media (max-width: 992px) {
  .feature-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-banner.reverse {
    direction: ltr;
  }
}

/* ========================================
   Mechanism Box
   ======================================== */
.mechanism-box {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(67, 56, 202, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.mechanism-title {
  font-size: 1.25rem;
  color: var(--hkk-indigo);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mechanism-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.flow-icon.orange {
  background: linear-gradient(135deg, var(--instant-orange) 0%, #FB923C 100%);
  color: white;
}

.flow-icon.cyan {
  background: linear-gradient(135deg, var(--clear-cyan) 0%, #22D3EE 100%);
  color: white;
}

.flow-icon.indigo {
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  color: white;
}

.flow-label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .mechanism-flow {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--hkk-indigo) 0%, var(--hkk-indigo-light) 100%);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.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: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Badge
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--instant-orange);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--clear-cyan);
}

.badge-indigo {
  background: rgba(67, 56, 202, 0.1);
  color: var(--hkk-indigo);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .show-mobile { display: none; }
}
