body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: linear-gradient(to bottom, #020203, #1a1a1c);
  color: white;
  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);
}

h1 {
  font-size: 7rem;
  background: linear-gradient(to right, #00aaff, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

p {
  font-size: 1.3rem;
  max-width: 720px;
  margin: 0 auto 25px;
  line-height: 1.8;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 25% 80px 25%;
}

.hero-text {
  text-align: left;
  width: 70%;
  max-width: 800px;
}

.hero-img {
  text-align: right;
  width: 20%;
  max-width: 400px;
  margin-top: 120px;
}


/* 适配移动端 */
@media (max-width: 1345px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    margin: 0 10% 80px 10%;
  }

  .hero-img {
    /* 水平居中 */
    text-align: center;
    width: 100%;
    margin-top: 50px;
  }

  .hero-text {
    text-align: center;
    width: 100%;
  }
}

.highlight-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 170, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.highlight-box h3 {
  color: #00aaff;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-box li {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 1.15rem;
}

.button {
  background: #00aaff;
  color: black;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s, transform 0.3s, opacity 0.5s;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.button.visible {
  opacity: 1;
}

.button:hover {
  background: #4fc3ff;
  transform: scale(1.05);
}

a .button {
  text-decoration: none;
  display: inline-block;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  background: #0b0b0c;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 1s ease;
}

.map-container.visible {
  opacity: 1;
}

/* 隐藏Leaflet地图右下角logo */
.leaflet-control-attribution {
  display: none !important;
}

/* Mobility section styling */
.mobility-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.mobility-img {
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  transition: transform 1s ease-out;
  transform: translateY(20px);
}

.mobility-text {
  max-width: 600px;
}

.mobility-cards-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.mobility-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.mobility-card {
  background: #1a1a1c;
  padding: 25px;
  border-radius: 20px;
  min-width: 280px;
  flex: 0 0 auto;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  text-align: left;
}

.mobility-card h3 {
  color: #00aaff;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.mobility-card p,
.mobility-card ul,
.mobility-card ul li {
  font-size: 1.15rem;
  line-height: 1.6;
}

.mobility-card:hover {
  transform: translateY(-5px) scale(1.03);
  background: #222225;
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.3);
}

/* Smart Device Payments section */
.smart-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #1a1a1c;
  padding: 25px;
  border-radius: 20px;
  width: 240px;
  text-align: center;
  transition: transform 0.3s, background 0.3s, opacity 1s ease;
  opacity: 0;
  font-size: 1.15rem;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  background: #222225;
}

.card h3 {
  color: #00aaff;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.card p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* App Download Mini Section */
.app-download-mini img {
  transition: transform 0.3s;
}

.app-download-mini img:hover {
  transform: scale(1.05);
}

/* EU Flags Section */
.eu-flags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(0, 170, 255, 0.1);
}

.flag-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  min-width: 60px;
}

.flag-item:hover {
  transform: translateY(-3px);
  background: rgba(0, 170, 255, 0.1);
}

.flag-img {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.flag-item:hover .flag-img {
  transform: scale(1.1);
}


@media (max-width: 768px) {

  .mobility-section,
  .smart-section {
    flex-direction: column;
    align-items: center;
  }

  .mobility-img,
  .mobility-card,
  .card {
    max-width: 90%;
  }

  /* 移动端 pos-logo 适配 */
  .pos-logo {
    text-align: center;
    margin: 20px auto;
  }

  .pos-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  /* Contactless Payments 相关模块居中 */
  .smart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
  }

  /* 移动端垂直排列布局 */
  .mobility-section {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    padding: 40px 20px;
  }

  .mobility-img {
    display: block;
    max-width: 100%;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    order: 1;
  }

  .mobility-text {
    width: 100%;
    position: relative;
    z-index: 2;
    order: 2;
    margin-top: 20px;
  }

  .mobility-cards-wrapper {
    flex-direction: column;
    gap: 20px;
    overflow-x: visible;
    position: relative;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-top: 20px;
  }

  .mobility-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    clear: both;
  }

  /* 修复移动端标题和文字显示问题 */
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 100%;
    padding: 0 10px;
  }

  .highlight-box {
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .highlight-box h3 {
    font-size: 1.4rem;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .highlight-box li {
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    margin: 10px 0;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
  }

  /* 移动端国旗显示优化 */
  .eu-flags-container {
    gap: 10px;
    padding: 15px;
    margin: 15px 0;
  }

  .flag-item {
    min-width: 50px;
    padding: 8px;
  }

  .flag-img {
    width: 35px;
    height: 26px;
  }
}

/* 针对更小屏幕的额外优化 */
@media (max-width: 480px) {
  .mobility-card {
    padding: 15px;
    margin: 0 5px;
    clear: both;
    margin-top: 15px;
  }

  /* 小屏幕 pos-logo 适配 */
  .pos-logo {
    margin: 15px auto;
    padding: 0 10px;
  }

  .pos-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .mobility-section {
    gap: 30px;
    padding: 30px 15px;
  }

  .mobility-img {
    margin-bottom: 25px;
  }

  .mobility-text {
    margin-top: 15px;
  }

  .mobility-cards-wrapper {
    margin-top: 15px;
    gap: 15px;
  }

  /* 小屏幕 Contactless Payments 模块居中优化 */
  .smart-section {
    gap: 15px;
    padding: 0 10px;
  }

  .card {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }

  .mobility-card h3 {
    font-size: 1.3rem;
  }

  .mobility-card p,
  .mobility-card ul,
  .mobility-card ul li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .mobility-cards-wrapper {
    padding: 0 5px;
    gap: 10px;
  }

  /* 针对小屏幕优化 highlight-box 标题 */
  .highlight-box h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .highlight-box {
    padding: 15px;
    margin: 15px auto;
  }

  .highlight-box li {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 8px 0;
    max-width: 100%;
    display: block;
    padding: 0 5px;
  }

  /* 小屏幕国旗显示优化 */
  .eu-flags-container {
    gap: 8px;
    padding: 10px;
    margin: 10px 0;
  }

  .flag-item {
    min-width: 45px;
    padding: 6px;
  }

  .flag-img {
    width: 30px;
    height: 22px;
  }
}

/* 针对超小屏幕的额外优化 */
@media (max-width: 360px) {
  .highlight-box {
    padding: 10px;
    margin: 10px auto;
  }

  /* 超小屏幕 pos-logo 适配 */
  .pos-logo {
    margin: 10px auto;
    padding: 0 5px;
  }

  .pos-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-width: 250px;
  }

  .highlight-box h3 {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .highlight-box li {
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 6px 0;
    max-width: 100%;
    display: block;
    padding: 0 3px;
  }

  /* 超小屏幕 Contactless Payments 模块居中优化 */
  .smart-section {
    gap: 12px;
    padding: 0 5px;
  }

  .card {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
  }

  /* 超小屏幕国旗显示优化 */
  .eu-flags-container {
    gap: 6px;
    padding: 8px;
    margin: 8px 0;
  }

  .flag-item {
    min-width: 40px;
    padding: 5px;
  }

  .flag-img {
    width: 28px;
    height: 20px;
  }
}

@media (min-width: 769px) {
  .mobility-cards-wrapper {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
  }

  .mobility-card {
    min-width: auto;
    width: 100%;
    max-width: 550px;
  }
}

.pos-ws-img {
  width: 60%;
  max-width: 1000px;
  height: auto;
}

@media (max-width: 1132px) {
  .pos-ws-img {
    width: 80%;
    max-width: 80%;
  }
}

