/* Loco Pay 官网：以 1920 设计稿为基准，用弹性布局适配不同浏览器宽度 */

:root {
  --blue: #1b69fd;
  --ink: #1a191e;
  --title: #212326;
  --muted: #797979;
  --body: rgba(0, 0, 0, 0.6);
  --footer: #263238;
  --header-h: 72px;
  --max: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Poppins, "PingFang SC", "Noto Sans SC", sans-serif;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

img {
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.lang-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 顶栏：整条通栏，内容限制在 1440 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-mark img {
  display: block;
  width: 30px;
  height: auto;
}

.logo-word {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.logo-word img {
  display: block;
  height: 12px;
  width: auto;
}

.logo-word img:last-child {
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: clamp(36px, 4.2vw, 72px);
}

.nav a {
  padding: 6px 0;
  border-radius: 6px;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.nav a.is-active {
  color: var(--blue);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.lang {
  position: relative;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px 0 6px 10px;
  border-radius: 6px;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.lang-toggle img {
  width: 22px;
  height: auto;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(26, 25, 30, 0.12);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* 首屏：标题距顶栏约 88px，对齐参考站首页节奏 */
.hero {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(40px, 4.6vw, 88px) 0 clamp(20px, 2.1vw, 40px);
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1175px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 96px);
  line-height: 1.12;
  color: var(--title);
  text-transform: uppercase;
}

.hero-lead {
  max-width: 837px;
  margin: 18px auto 0;
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.5;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 204px;
  margin-top: 28px;
  padding: 16px 38px;
  border-radius: 89px;
  background: var(--blue);
  color: #fff;
  font-family: Inter, Poppins, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.297;
}

.btn:hover,
.btn:focus-visible {
  background: #0f57e4;
}

.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: block;
  height: auto;
}

.deco-pattern {
  left: clamp(8px, 4.6vw, 89px);
  top: 4%;
  width: clamp(72px, 8.8vw, 148px);
  transform: rotate(180deg);
}

.deco-ufo {
  left: clamp(16px, 16.4vw, 280px);
  top: 54%;
  width: clamp(96px, 10vw, 176px);
}

.deco-spark {
  right: clamp(12px, 18vw, 320px);
  top: 48%;
  width: clamp(56px, 6.2vw, 112px);
}

.deco-bank {
  right: clamp(8px, 8.4vw, 160px);
  bottom: 0;
  width: clamp(88px, 7.6vw, 140px);
  transform: rotate(17deg);
}

.deco-bitcoin {
  right: clamp(8px, 5.4vw, 100px);
  top: 0;
  width: clamp(96px, 8vw, 148px);
  transform: rotate(30deg);
}

/* 手机样机：按 1100×1020 舞台等比缩放 */
.showcase {
  position: relative;
  padding-bottom: clamp(8px, 2vw, 24px);
  overflow: hidden;
}

.showcase-gradient {
  position: absolute;
  left: 0;
  right: 0;
  top: 32%;
  bottom: 0;
  background: linear-gradient(114.31deg, #a1fbff 15.683%, #ccd0ff 47.809%, #ffcce0 110.63%);
  z-index: 0;
}

.phones {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  aspect-ratio: 1100 / 1020;
  container-type: inline-size;
}

.phones {
  overflow: hidden;
}

.phones-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1100px;
  height: 1020px;
  transform-origin: top left;
}

.ly {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ly > img {
  display: block;
  flex: none;
  transform-origin: center;
}

.glow {
  position: relative;
  flex: none;
}

.glow img {
  position: absolute;
  display: block;
}

.phone {
  position: absolute;
  display: block;
  object-fit: contain;
}

.phone--left {
  left: 9.77px;
  top: 118.81px;
  width: 511.222px;
  height: 749.698px;
}

.phone--right {
  left: 424.01px;
  top: 24.88px;
  width: 659.001px;
  height: 966.365px;
}

/* 图文分区 */
.feature {
  display: grid;
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 815fr) minmax(0, 1105fr);
  align-items: stretch;
  background: #fff;
  gap: 0;
}

.feature--image-left {
  grid-template-columns: minmax(0, 1110fr) minmax(0, 810fr);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 48px) clamp(20px, 2.5vw, 40px);
}

.feature--image-right .feature-copy {
  padding-left: clamp(20px, 4vw, 48px);
}

.feature--image-left .feature-copy {
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.feature h2,
.why h2,
.about h1,
.contact-block h2 {
  scroll-margin-top: 120px;
}

.feature h2 {
  margin: 0;
  max-width: 657px;
  font-weight: 700;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: 1.3;
  color: #000;
  text-transform: uppercase;
}

.feature--team h2 {
  max-width: 605px;
  font-size: clamp(28px, 3.54vw, 68px);
  line-height: 1.15;
}

.feature p {
  max-width: 591px;
  margin: 18px 0 0;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.5;
  color: var(--body);
}

.feature-media {
  align-self: start;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1105 / 737;
  object-fit: cover;
  object-position: center;
}

.feature--image-left .feature-media img {
  aspect-ratio: 1110 / 729;
}

.feature--team .feature-media img {
  aspect-ratio: 1110 / 740;
}

/* Why */
.why {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(48px, 4.5vw, 72px) 0 clamp(48px, 5vw, 80px);
}

.why-line {
  max-width: 1400px;
  margin: 0 auto clamp(24px, 2.5vw, 40px);
}

.why-line img {
  display: block;
  width: 100%;
  height: 1px;
}

.why h2 {
  margin: 0 auto clamp(28px, 3vw, 48px);
  max-width: 960px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 96px);
  line-height: 1.297;
  color: var(--title);
  text-transform: uppercase;
}

.why h2 .accent {
  color: var(--blue);
}

.why-grid {
  display: grid;
  grid-template-columns: 425fr 569fr 425fr;
  gap: clamp(16px, 3.125vw, 60px);
  align-items: center;
  max-width: 1540px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 425 / 604;
  min-height: 0;
  padding: clamp(28px, 3.3vw, 64px) clamp(18px, 2.1vw, 40px) clamp(28px, 2.5vw, 48px);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: #16325c;
}

.why-card--center {
  aspect-ratio: 569 / 808;
  padding: clamp(36px, 5.1vw, 98px) clamp(22px, 2.7vw, 52px) clamp(32px, 2.9vw, 56px);
  border-radius: 21px;
}

.why-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card .shade {
  position: absolute;
  inset: 0;
}

.why-card--fast .shade {
  background: rgba(0, 9, 55, 0.2);
}

.why-card--center .shade {
  background: rgba(10, 124, 255, 0.15);
}

.why-card p,
.why-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.why-card p {
  text-transform: capitalize;
}

.why-card h3 {
  text-transform: uppercase;
}

.why-card p {
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: 1.6;
  max-width: 16em;
}

.stat {
  display: inline;
  margin-right: 0.2em;
  font-weight: 500;
  font-size: 1.83em;
  line-height: 1;
  vertical-align: -0.08em;
}

.why-card h3 {
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 50px);
  line-height: 1.297;
  max-width: 8em;
}

.why-card--center p {
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 40px);
  line-height: 1.26;
  max-width: 12em;
}

.why-card--center h3 {
  font-size: clamp(36px, 4.2vw, 80px);
}

/* Company */
.about {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(40px, 4.6vw, 72px) 0 0;
}

.about h1,
.contact-block h2 {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.about-lead,
.about-body {
  max-width: 1315px;
  margin: 22px auto 0;
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.8;
  color: var(--ink);
}

.about-photo {
  max-width: 1000px;
  margin: clamp(28px, 2.5vw, 40px) auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f8f8;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 600;
  object-fit: cover;
}

.about-body p {
  margin: 0 0 1.15em;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.contact-block {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(48px, 4.5vw, 64px) 0 clamp(56px, 5vw, 72px);
}

.contact-block p {
  max-width: 1588px;
  margin: 20px auto 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 38px);
  line-height: 1.51;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.contact-block p span {
  font-weight: 400;
}

/* 页脚 */
.site-footer {
  position: relative;
  background: #263238;
  color: #fff;
  padding: 48px 0 28px;
}

.footer-bg {
  display: block;
  width: min(var(--max), calc(100% - 48px));
  height: 1px;
  margin: 28px auto 0;
  background: rgba(224, 224, 224, 0.55);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr) minmax(160px, 0.7fr);
  gap: 32px;
  padding: 0;
}

.footer-brand {
  align-self: end;
  padding-bottom: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-mark img {
  width: 32px;
}

.footer-logo .logo-word img {
  height: 13px;
}

.footer-logo .logo-word img:last-child {
  margin-top: 3px;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 430px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
  margin-bottom: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col strong {
  display: block;
  font-weight: 600;
  color: #fff;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .deco-spark {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-bar {
    flex-wrap: wrap;
  }

  .nav,
  .lang {
    display: none;
    margin-left: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .site-header.is-open .header-bar {
    align-items: start;
  }

  .site-header.is-open .nav,
  .site-header.is-open .lang {
    display: flex;
    flex-basis: 100%;
  }

  .site-header.is-open .nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .site-header.is-open .lang {
    justify-self: start;
    padding: 0 0 12px;
  }

  .lang-menu {
    left: 0;
    right: auto;
  }

  .deco-pattern,
  .deco-ufo,
  .deco-bank,
  .deco-bitcoin {
    opacity: 0.95;
  }

  .deco-ufo {
    left: 0;
    bottom: 0;
  }

  .deco-bank {
    right: 0;
  }

  .deco-bitcoin {
    right: 0;
    top: 8px;
  }
}

@media (max-width: 800px) {
  .feature,
  .feature--image-left {
    grid-template-columns: 1fr;
  }

  .feature--image-left .feature-media {
    order: -1;
  }

  .feature-copy,
  .feature--image-right .feature-copy,
  .feature--image-left .feature-copy {
    padding: 28px 20px 8px;
  }

  .feature--image-left .feature-copy {
    padding-bottom: 36px;
  }

  .why-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .why-card,
  .why-card--center {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .footer-brand {
    align-self: start;
    order: 3;
  }

  .footer-logo .logo-mark img {
    width: 32px;
  }

  .footer-logo .logo-word img {
    height: 13px;
  }
}

@media (max-width: 800px) {
  .deco {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .btn {
    min-width: 0;
    width: min(100%, 240px);
  }
}

html[lang="zh"] .about h1,
html[lang="zh"] .contact-block p {
  letter-spacing: 0;
}

html[lang="zh"] #contact-title {
  display: none;
}

html[lang="zh"] .feature h2,
html[lang="zh"] .why h2,
html[lang="zh"] .why-card h3,
html[lang="zh"] .why-card p {
  text-transform: none;
}

html[lang="zh"] .lang-en {
  display: none;
}

html[lang="en"] .lang-zh {
  display: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 20px 0;
}

.legal-nav a {
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-nav a.is-active,
.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--blue);
}

.legal {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.legal .kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.legal h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.legal .meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.legal h2 {
  margin: 32px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
  text-transform: none;
}

.legal h3 {
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: #1d2023;
}

.legal .toc {
  margin-top: 24px;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 16px 18px 16px 36px;
}

.legal .toc strong {
  display: block;
  margin: 0 0 8px -18px;
}

.legal .toc a {
  color: var(--blue);
}

.legal ul,
.legal ol {
  padding-left: 1.2em;
}
