/* ==========================================================================
   鸿途跨境电商 · 语言选择页 / Language selection
   ========================================================================== */

:root {
  --lang-ink: #0a2f5e;
  --lang-ink-soft: #2f5c82;
  --lang-muted: #5d7f9c;
  --lang-accent: #1f6ba3;
  --lang-line: rgba(31, 107, 163, .32);
  --lang-bg-top: #f6fcff;
  --lang-bg-bottom: #d8eefb;
  --lang-scene-fade: #d8eefb;
  --lang-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lang-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body.lang-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--lang-ink);
  font-family: var(--lang-sans);
  background:
    radial-gradient(1200px 620px at 50% 2%, #ffffff 0%, rgba(255, 255, 255, .58) 36%, transparent 70%),
    radial-gradient(900px 700px at 50% 46%, rgba(255, 255, 255, .4), transparent 68%),
    linear-gradient(180deg, #f5fbff 0%, #eaf7fe 42%, #dcf1fd 72%, var(--lang-bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #1f6ba3; color: #fff; }

a { color: inherit; }

/* ---- Background art ---------------------------------------------------- */

.lang-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-globe {
  position: absolute;
  top: clamp(-230px, -13vw, -110px);
  left: 50%;
  width: clamp(680px, 72vw, 980px);
  height: auto;
  transform: translateX(-50%);
  opacity: .56;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.bg-glow-top {
  top: -20%;
  left: 50%;
  width: min(1100px, 100vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 74%);
}

.bg-glow-bottom {
  right: -14%;
  top: 24%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(91, 175, 226, .14), transparent 72%);
}

.bg-ray {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  filter: blur(.6px);
  opacity: .55;
}

.bg-ray-one { top: 20%; transform: rotate(-11deg); }
.bg-ray-two { top: 43%; transform: rotate(-11deg); opacity: .28; }

/* ---- Content ----------------------------------------------------------- */

.lang-main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 5vh, 58px) 24px clamp(20px, 3.5vh, 38px);
  text-align: center;
}

.lang-brand,
.lang-rule,
.lang-choose {
  animation: langIn .68s cubic-bezier(.22, .61, .36, 1) both;
}
.lang-brand { animation-delay: .04s; }
.lang-rule { animation-delay: .14s; }
.lang-choose { animation-delay: .22s; }

@keyframes langIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.lang-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
}

.lang-logo {
  display: block;
  width: clamp(78px, 7.4vw, 108px);
  height: auto;
  border-radius: 24%;
  filter: drop-shadow(0 18px 30px rgba(15, 63, 100, .2)) drop-shadow(0 2px 5px rgba(15, 63, 100, .08));
}

.lang-wordmark { text-align: left; }

.lang-wordmark h1 {
  margin: 0;
  font-size: clamp(27px, 2.65vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .14em;
  color: var(--lang-ink);
  white-space: nowrap;
}

.lang-brand-en {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 11px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, .92vw, 13px);
  font-weight: 600;
  letter-spacing: .5em;
  color: #3d7098;
}
.lang-brand-en::before,
.lang-brand-en::after {
  content: "";
  width: clamp(24px, 3vw, 46px);
  height: 1px;
  background: rgba(61, 112, 152, .42);
}

.lang-tagline {
  position: relative;
  margin: clamp(16px, 2.2vh, 24px) 0 0;
  padding: 0 52px;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: .28em;
  color: #3f6d92;
  white-space: nowrap;
}
.lang-tagline::before,
.lang-tagline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 109, 146, .5));
}
.lang-tagline::before { left: 0; }
.lang-tagline::after {
  right: 0;
  transform: rotate(180deg);
}

.lang-tagline-en {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9px, .78vw, 11px);
  letter-spacing: .16em;
  color: #7d99ae;
}

/* Divider with globe */
.lang-rule {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  width: min(470px, 76%);
  margin: clamp(24px, 3.8vh, 40px) 0 clamp(17px, 2.8vh, 26px);
  color: var(--lang-accent);
}
.lang-rule > span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 111, 168, .5));
}
.lang-rule > span:last-child { transform: rotate(180deg); }

.globe-icon {
  flex: 0 0 auto;
  width: clamp(42px, 4vw, 50px);
  height: clamp(42px, 4vw, 50px);
  padding: 10px;
  border: 1px solid rgba(47, 111, 168, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 8px 22px rgba(25, 85, 130, .08);
}

/* Language choice */
.lang-choose { width: 100%; }

.lang-choose h2 {
  margin: 0 0 9px;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .16em;
  color: var(--lang-ink);
}

.lang-subtitle {
  margin: 0 0 clamp(21px, 3vh, 30px);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: .18em;
  color: var(--lang-muted);
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: min(356px, 100%);
  margin: 0 auto;
}

.lang-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid rgba(31, 107, 163, .55);
  border-radius: 11px;
  background: rgba(255, 255, 255, .68);
  color: #0b3a63;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(25, 80, 125, .08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease, color .24s ease;
}

.lang-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--lang-accent);
  transition: color .24s ease;
}

.lang-label {
  font-size: clamp(16px, 1.35vw, 18px);
  letter-spacing: .06em;
  font-weight: 500;
  white-space: nowrap;
}

.lang-default {
  margin-left: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(47, 111, 168, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--lang-accent);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .15em;
  white-space: nowrap;
  transition: color .24s ease, border-color .24s ease, background .24s ease;
}

.lang-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  width: 19px;
  height: 19px;
  color: var(--lang-accent);
  transition: transform .24s ease, color .24s ease;
}

.lang-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  background: linear-gradient(135deg, #0f548d, #0a3157);
  color: #fff;
  box-shadow: 0 18px 36px rgba(10, 53, 90, .24);
}
.lang-btn:hover .lang-icon,
.lang-btn:hover .lang-chevron { color: #fff; }
.lang-btn:hover .lang-chevron { transform: translateX(3px); }
.lang-btn:hover .lang-default {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid #2f8fcf;
  outline-offset: 3px;
}

.lang-note {
  margin: 17px 0 0;
  font-size: 10.5px;
  letter-spacing: .09em;
  color: #7792a8;
}

/* ---- Bottom logistics scene ------------------------------------------- */

.lang-scene {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

.lang-scene img {
  display: block;
  width: 100%;
  max-width: 1180px;
  height: auto;
}

.lang-scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  z-index: 1;
  background: linear-gradient(to bottom, var(--lang-scene-fade), rgba(203, 233, 249, 0));
  pointer-events: none;
}

.lang-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--lang-scene-fade) 0%, transparent 9%, transparent 91%, var(--lang-scene-fade) 100%);
  pointer-events: none;
}

/* ---- Responsive -------------------------------------------------------- */

@media (min-width: 1500px) {
  .lang-scene img { max-width: 1400px; }
}

@media (max-width: 760px) {
  .lang-main { padding: 30px 22px 22px; }
  .lang-lockup { gap: 16px; }
  .lang-logo { width: 82px; }
  .lang-wordmark h1 { font-size: 27px; letter-spacing: .1em; }
  .lang-brand-en { margin-top: 8px; letter-spacing: .38em; font-size: 9.5px; }
  .lang-tagline { margin-top: 15px; padding: 0 34px; font-size: 11.5px; letter-spacing: .2em; }
  .lang-tagline::before, .lang-tagline::after { width: 24px; }
  .lang-tagline-en { font-size: 8.5px; }
  .lang-rule { width: min(400px, 84%); margin: 22px 0 18px; }
  .lang-choose h2 { font-size: 22px; letter-spacing: .12em; }
  .lang-subtitle { margin-bottom: 20px; font-size: 12px; }
  .lang-options { width: min(330px, 100%); gap: 11px; }
  .lang-btn { min-height: 57px; padding: 0 17px; gap: 12px; }
  .lang-label { font-size: 16px; }
  .lang-icon { width: 23px; height: 23px; }
  .lang-note { margin-top: 15px; font-size: 9.8px; }
  .lang-scene img { max-width: 100%; }
  .lang-scene::before { height: 18px; }
  .bg-globe { top: -120px; width: 760px; }
}

@media (max-width: 390px) {
  .lang-main { padding: 24px 18px 18px; }
  .lang-logo { width: 72px; }
  .lang-wordmark h1 { font-size: 24px; }
  .lang-brand-en { letter-spacing: .3em; font-size: 8.5px; }
  .lang-tagline { font-size: 10.5px; }
  .lang-options { width: 100%; }
  .lang-btn { padding: 0 14px; gap: 10px; }
  .lang-label { font-size: 15px; }
  .lang-default { padding: 2px 6px; font-size: 8px; }
  .lang-note { font-size: 9px; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .lang-brand,
  .lang-rule,
  .lang-choose {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
