/* GvcPay 官网样式 */
:root {
  --color-primary: #0d47a1;
  --color-primary-dark: #082f6b;
  --color-primary-light: #1565c0;
  --color-accent: #00b4a0;
  --color-accent-dark: #008f7f;
  --color-buyers: #0d47a1;
  --color-merchants: #00695c;
  --color-text: #1a1a2e;
  --color-text-muted: #5c5c7a;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 72px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 17px;
}

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 22px;
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: 8px;
}

.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero 双栏 */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
  min-height: 520px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

.hero-buyers {
  background: linear-gradient(145deg, var(--color-buyers) 0%, #1565c0 100%);
  color: #fff;
}

.hero-merchants {
  background: linear-gradient(145deg, var(--color-merchants) 0%, var(--color-accent) 100%);
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* 特色区块 */
.features {
  padding: 96px 0;
  background: var(--color-bg);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: -40px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: 16px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* 使用步骤 */
.how-it-works {
  padding: 96px 0;
  background: var(--color-bg-alt);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.steps-visual {
  display: flex;
  justify-content: center;
}

.device-row {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.device {
  width: 80px;
  height: 120px;
  background: linear-gradient(180deg, #e8ecf1 0%, #d0d8e4 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.device-phone {
  height: 140px;
  border-radius: 16px;
}

.device-card {
  width: 100px;
  height: 64px;
  border-radius: 8px;
}

.device-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.device-mail {
  width: 72px;
  height: 56px;
  border-radius: 8px 8px 4px 4px;
}

/* 合作伙伴 */
.partners {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.partners .section-title {
  margin-bottom: 48px;
  font-size: 1.5rem;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.partner-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* CTA */
.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq-preview {
  padding: 64px 0 80px;
  background: var(--color-bg-alt);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.faq-item {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.faq-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-help {
  text-align: center;
  color: var(--color-text-muted);
}

/* 页脚 */
.site-footer {
  background: #0f1419;
  color: #a0aec0;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.logo-footer .logo-icon {
  background: linear-gradient(135deg, #4a90d9, var(--color-accent));
}

.logo-footer {
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.footer-legal {
  color: #a0aec0;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-panel {
    padding: 40px 32px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    z-index: 99;
  }

  .main-nav.is-open .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 380px;
  }

  .feature-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .device-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
