/* Light Theme Styles - Based on Image Design */

/* CSS变量 - 浅色主题（根据图片） */
:root {
  --bg-primary-start: #f5f0ff;
  --bg-primary-end: #ede7ff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f5fb;
  --bg-quaternary: #f6f7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfbfb;
  --bg-highlight: #f8f9fa;
  --text-primary: #15171C;
  --text-secondary: #15171C;
  --accent-color: #7c4dff;
  --accent-hover: #6a3ee6;
  --border-color: rgba(0, 0, 0, 0.1);
  --map-bg: #ffffff;
  --button-light-bg: #ede7ff;
  --button-light-text: #ffffff;
  --button-white-bg: #ffffff;
  --button-white-text: #15171C;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: #ffffff;
  color: var(--text-primary);
  scroll-behavior: smooth;
}

section {
  padding: 80px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section - 浅紫色背景 */
.section-1 {
  background: secondary !important;
  padding: 20px 20px 80px 20px;
}

h1 {
  font-size: 4rem;
  color: #15171C;
  margin-bottom: 30px;
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #15171C;
}

h2 {
  font-size: 2.5rem !important;
  margin-bottom: 30px !important;
  color: #15171C !important;
  font-weight: 700 !important;
}

h3 {
  font-size: 1.8rem;
  color: #15171C;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: none !important;
}

p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 25px;
  line-height: 1.8;
  color: #15171C;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 60px auto;
  max-width: 1198px;
  /* gap: 60px; */
  background: #F8F5FF;
  /* padding: 40px; */
  border-radius: 12px;
  height: 410px;
}

.hero-text {
  text-align: left;
  flex: 1;
  max-width: 680px;
  /* 从上到下排列，间隔20px */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-img {
  flex: 0 0 auto;
  max-width: 300px;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-img img {
  max-width: 100%;
  height: 90%;
  object-fit: contain;
}

/* Hero Title */
.hero-title {
  transition-delay: 0.2s;
  margin: 10px 0 0 0;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Hero Subtitle */
.hero-subtitle {
  margin: 0;
  margin-bottom: 30px;
  font-size: 20px;
}

/* Hero Link */
.hero-link {
  display: inline-block;
}

/* Hero Button */
.hero-button {
  transition-delay: 0.4s;
  margin-top: 20px;
}

/* Hero Image Styles */
.hero-img img.hero-main-img {
  max-width: 400px;
  height: auto;
  text-align: left;
}

/* Section 2 Paragraph */
.section-2-intro {
  font-size: 20px;
  margin-bottom: 30px;
}

/* POS Logo Container */
.pos-logo-container {
  margin-top: 20px;
  text-align: center;
}

/* Pay Logo Image */
.pay-logo-img-large {
  max-width: 500px;
  height: auto;
}

/* Highlight Box Animations */
.highlight-box-delay-1 {
  transition-delay: 0.6s;
}

.highlight-box-delay-2 {
  transition-delay: 0.8s;
}

/* Mobility Section Animations */
.mobility-img-delay {
  transition-delay: 0.2s;
}

.mobility-text-delay {
  transition-delay: 0.4s;
}

/* POS Logo in Card */
.pos-logo-in-card {
  margin-top: 10px;
  text-align: left;
}

.pay-logo-img-in-card {
  max-width: 500px;
  height: auto;
  margin-bottom: 0;
}

/* Section 4 Heading */
.section-4 h2.animate {
  margin-bottom: 20px !important;
  margin-top: 80px !important;
}

/* Section 4 Paragraph */
.section-4-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

/* POS WS Container */
.pos-ws-container {
  margin-top: 10px;
  text-align: center;
}

/* Section 5 Heading */
.section-5 h2.animate {
  margin-bottom: 40px !important;
  font-size: 52px !important;
}

/* Section 5 Paragraph */
.section-5-intro {
  margin: 0 auto 40px;
  font-size: 1.125rem;
  max-width: 70%;
}

/* Card Image Container */
.card-img-container {
  font-size: 1px;
  margin-top: 10px;
}

/* Section 6 Heading */
.section-6 h2.animate {
  transition-delay: 0.4s !important;
  /* font-size: 52px;
  line-height: 3.5rem; */
}

/* Map Container */
.map-container.animate {
  height: 500px;
  transition-delay: 0.6s;
  margin-top: 60px;
}

/* Map Content Container */
.map-content-container {
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Supported Currencies Text */
.supported-currencies {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 40px;
  text-align: center;
}

/* Section 7 Heading */
.section-7 h2.animate {
  transition-delay: 0.2s !important;
  font-size: 52px !important;
  margin-top: 15px !important;
}

/* CTA Button Primary */
.cta-button-primary {
  transition-delay: 0.4s;
  height: 48px;
}

/* CTA Button White */
.cta-button-white {
  transition-delay: 0.6s;
  color: #15171C;
  background-color: #E5EFFB;
  height: 48px;
}

/* 适配移动端 */
@media (max-width: 1345px) {

  section {
    padding: 0 20px 80px 20px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 30px 20px;
  }

  .hero-img {
    text-align: center;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    justify-content: center;
  }

  .hero-img img {
    margin: 0 auto;
    display: block;
  }

  .hero-text {
    text-align: center;
    width: 100%;
  }
}

/* 支付方式 Logo */
.pos-logo {
  margin-top: 30px;
}

.pay-logo-img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* Button Styles */
.button {
  background: #635AFF;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
  opacity: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.button.visible {
  opacity: 1;
}

.button:hover {
  background: #5a52e6;
  transform: scale(1.05);
  color: white;
}

.button-white {
  background: var(--button-white-bg);
  color: var(--button-white-text);
  border: 1px solid var(--text-primary);
}

.button-white:hover {
  background: var(--bg-highlight);
  border-color: var(--text-primary);
  color: #15171C;
}

a .button {
  text-decoration: none;
}

/* Highlight Boxes - 两列布局 */
.highlight-boxes-wrapper {
  display: flex !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 10px auto !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.highlight-box {
  background: var(--bg-quaternary);
  /* border: 1px solid var(--border-color); */
  border-radius: 12px;
  padding: 30px 30px 20px 30px !important;
  flex: 1;
  min-width: 280px;
  max-width: 550px;
  text-align: left;
  transition: all 0.3s ease;
}

.highlight-box h3 {
  color: #15171C;
  margin-bottom: 15px;
  font-size: 24px;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.highlight-box li {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #15171C;
}

/* Section 2 - 支持支付方式 - 白色背景 */
.section-2 {
  background: var(--bg-secondary) !important;
  padding-top: 0 !important;
  padding-bottom: 30px !important;
}

.section-2 p {
  font-size: 1.15rem;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Section 3 - 产品优势部分 - 浅蓝灰色背景 */
.section-3 {
  background: var(--bg-tertiary) !important;
}

.mobility-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobility-img {
  max-width: 500px;
  width: 100%;
  flex: 0 0 auto;
}

.mobility-text {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
}

.mobility-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.mobility-card {
  background: var(--bg-card);
  padding: 40px 40px 40px 40px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.mobility-card h3 {
  color: #15171C;
  margin-bottom: 15px;
  font-size: 24px;
  margin-top: 0;
}

.mobility-card p {
  font-size: 1.0rem;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.mobility-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Section 4 - 适合中小企业横幅 - 白色背景 */
.section-4 {
  background: var(--bg-secondary) !important;
  padding: 0 !important;
}

.section-4 h2 {
  margin-bottom: 20px !important;
  font-size: 52px !important;
}

.section-4 p {
  margin-bottom: 40px;
}

.pos-ws-img {
  width: 100%;
  /* max-width: 800px; */
  height: auto;
}

/* Section 5 - 使用智能设备接收支付 - 白色背景，上方图片 */
.section-5 {
  background: var(--bg-quaternary) !important;
  padding-top: 60px;
}

.smart-device-img {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 40px;
  display: block;
}

.smart-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  padding: 55px 26px 70px;
  border-radius: 20px;
  width: 230px;
  text-align: center;
  transition: transform 0.3s, background 0.3s, opacity 1s ease, box-shadow 0.3s;
  opacity: 0;
  font-size: 1.15rem;
  border: 1px solid transparent;
}

.card.visible {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  background: var(--bg-card-hover);
}

.card h3 {
  color: #15171C;
  padding: 0 5%;
  margin-bottom: 20px;
  font-size: 1.75rem;
  line-height: 2rem;
}

.card p {
  font-size: 1.0rem;
  line-height: 1.6;
  margin: 0;
}

/* Section 6 - 欧洲地图 - 白色背景 */
.section-6 {
  background: var(--bg-secondary) !important;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--map-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 1s ease;
}

.map-container.visible {
  opacity: 1;
}

.leaflet-control-attribution {
  display: none !important;
}

.eu-flags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 15px;
  border: none !important;
}

.flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s;
  min-width: 60px;
}

.flag-item:hover {
  transform: translateY(-3px);
}

.flag-img {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.flag-item:hover .flag-img {
  transform: scale(1.1);
}

/* Section 7 - CTA 区域 - 浅紫色背景 */
.section-7 {
  background: #E5EFFB !important;
  padding: 30px 20px !important;
}

.cta-buttons-wrapper {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.app-download-mini {
  margin-top: 40px;
  opacity: 1;
  transition: opacity 1s ease;
}

.app-download-mini img {
  transition: transform 0.3s;
  height: 40px;
}

.app-download-mini img:hover {
  transform: scale(1.05);
}

.app-download-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg);
}

/* 移动端适配 */
@media (max-width: 1200px) {

  section {
    padding: 0 15px 50px 15px;
  }

  .mobility-section {
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  .mobility-img-delay {
    width: 100%;
    display: flex;
    justify-content: center;
    transition-delay: 0s !important;
  }

  .mobility-img {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    display: block;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
  }

  .mobility-text {
    max-width: 100%;
    width: 100%;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  section {
    padding: 0 15px 50px 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 34px !important;
    line-height: 2.5rem !important;
    margin-left: 5px !important;
    margin-right: 5px !important;
  }

  .hero-title {
    line-height: 4.0rem;
    font-size: 34px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 0 auto 40px;
    padding: 20px 15px;
    height: auto;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
    width: 100%;
  }

  .hero-img {
    text-align: center;
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .highlight-boxes-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .highlight-box {
    max-width: 100%;
    padding-top: 16px !important;
    padding-bottom: 36px !important;
  }

  .mobility-section {
    flex-direction: column;
    gap: 40px;
    margin: 0 auto;
    max-width: 600px;
  }

  .mobility-img {
    max-width: 100%;
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: none !important;
    animation: none !important;
  }

  .smart-section {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 300px;
    flex: none;
    min-width: auto;
    margin: 0 auto;
    padding: 60px 25px;
  }

  .card h3 {
    margin-top: 50px;
    font-size: 24px;
  }

  .cta-buttons-wrapper {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .button {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }

  .pos-ws-img {
    width: 100%;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 0 15px 50px 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 34px !important;
    line-height: 2.5rem !important;
    margin-left: 5px !important;
    margin-right: 5px !important;
  }

  h3 {
    font-size: 1.3rem;
    text-transform: none !important;
  }

  p {
    font-size: 1rem;
  }

  .hero-title {
    line-height: 4.0rem;
    font-size: 34px;
  }
  
  .highlight-box {
    padding: 20px !important;
    padding-top: 16px !important;
    padding-bottom: 36px !important;
    line-height: 2.0rem;
  }

  .highlight-box h3 {
    font-size: 24px;
  }

  .mobility-card {
    padding: 44px 20px 44px 20px;
    line-height: 2.0rem;
  }

  .card {
    padding: 60px 25px;
    margin: 0 auto;
    max-width: 280px;
    width: 100%;
  }

  .card h3 {
    margin-top: 50px;
    font-size: 24px;
  }

  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }
}