/* ==========================================================================
   贸联通 · 移动端落地页（App 卡片式）
   只服务 index.html / download.html，法务页面继续用 styles.css
   ========================================================================== */

:root {
  --lp-ink: #0e2230;
  --lp-muted: #5f7583;
  --lp-teal: #0f9b8e;
  --lp-teal-ink: #0d6d66;
  --lp-deep: #082a45;
  --lp-line: rgba(14, 34, 48, 0.1);
  --lp-card: #ffffff;
  --lp-orange-1: #ffb23e;
  --lp-orange-2: #ff5b2b;
  --lp-font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

html.lp-lock {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--lp-font);
  color: var(--lp-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 55% at 50% -8%, #dff5f2 0%, rgba(223, 245, 242, 0) 62%),
    radial-gradient(80% 40% at 100% 4%, #e7f7f4 0%, rgba(231, 247, 244, 0) 58%),
    #f6fbfb;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lp-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lp-deep);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ 骨架 */

.lp-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------------------------ 顶栏 */

.lp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 8px 16px -8px rgba(8, 42, 69, 0.55);
}

.lp-brand em {
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  color: #33505f;
}

.lp-more {
  margin-left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3c5563;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lp-more span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.lp-more:active {
  background: rgba(14, 34, 48, 0.06);
}

/* ------------------------------------------------------------------ 主卡 */

.lp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: 26px 22px 86px;
  color: #fff;
  background: linear-gradient(158deg, #07233d 0%, #0a4a60 52%, #12b3a3 100%);
  box-shadow: 0 26px 54px -32px rgba(7, 35, 61, 0.75);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%);
}

.lp-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -170px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.045),
    0 0 0 76px rgba(255, 255, 255, 0.03);
}

.lp-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-tile {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 14px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 20px 36px -20px rgba(3, 20, 34, 0.6);
}

.lp-tile img {
  width: 100%;
  height: 100%;
}

.lp-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lp-title small {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.lp-sub {
  margin: 22px 0 0;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------------ 三张能力卡 */

.lp-feats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -38px 8px 0;
}

.lp-feat {
  background: var(--lp-card);
  border: 1px solid rgba(15, 155, 142, 0.1);
  border-radius: 18px;
  padding: 15px 6px 13px;
  text-align: center;
  box-shadow: 0 16px 32px -22px rgba(7, 35, 61, 0.5);
}

.lp-feat svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  color: #0f8d82;
}

.lp-feat b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lp-ink);
}

/* ------------------------------------------------------------------ 下载卡 */

.lp-dl {
  margin-top: 34px;
  padding: 24px 22px 20px;
  text-align: center;
  background: var(--lp-card);
  border-radius: 26px;
  box-shadow: 0 32px 62px -42px rgba(7, 35, 61, 0.55);
}

.lp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 58px;
  border-radius: 29px;
  background: linear-gradient(95deg, var(--lp-orange-1), var(--lp-orange-2));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-decoration: none;
  box-shadow:
    0 18px 30px -18px rgba(255, 91, 43, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lp-cta:hover {
  box-shadow:
    0 22px 34px -18px rgba(255, 91, 43, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lp-cta:active {
  transform: translateY(1px) scale(0.996);
}

.lp-support {
  margin: 14px 0 0;
  font-size: 13px;
  color: #7b909c;
}

.lp-support a {
  color: var(--lp-teal-ink);
  font-weight: 600;
  text-decoration: none;
}

.lp-support i {
  font-style: normal;
  margin: 0 4px;
  color: #b7c6ce;
}

.lp-alt {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.lp-alt[hidden] {
  display: none;
}

.lp-chip {
  flex: 1 1 0;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 22px;
  background: #f2f8f8;
  border: 1px solid rgba(15, 155, 142, 0.22);
  color: var(--lp-teal-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lp-chip:active {
  background: #e8f4f3;
}

/* ------------------------------------------------------------------ 微信提示 */

.lp-tip {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ec;
  border: 1px solid #ffd9ae;
  color: #8a4b12;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}

.lp-tip.is-visible {
  display: flex;
}

.lp-tip svg {
  flex: none;
  margin-top: 3px;
}

/* ------------------------------------------------------------------ 帮助卡 */

.lp-help {
  margin-top: 34px;
  padding: 20px 22px;
  background: var(--lp-card);
  border-radius: 26px;
  box-shadow: 0 32px 62px -46px rgba(7, 35, 61, 0.5);
}

.lp-help h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.lp-help ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.lp-help li {
  position: relative;
  margin-top: 12px;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--lp-muted);
}

.lp-help li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f6f4;
  color: var(--lp-teal-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.lp-help li b {
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-help .lp-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-teal-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 155, 142, 0.35);
}

/* ------------------------------------------------------------------ 底部 */

.lp-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 13.5px;
  color: #7b909c;
}

.lp-links a {
  color: #4d6a78;
  text-decoration: none;
}

.lp-links span {
  color: #c2d1d8;
}

.lp-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #8b9fa9;
}

.lp-foot a {
  color: inherit;
}

/* ------------------------------------------------------------------ 菜单 */

.lp-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 30, 45, 0.34);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lp-sheet[hidden] {
  display: none;
}

.lp-sheet-card {
  width: min(520px, 100%);
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px -20px rgba(8, 42, 69, 0.35);
  animation: lp-rise 0.22s ease both;
}

.lp-sheet-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 6px;
  font-size: 13px;
  color: #8b9fa9;
}

.lp-sheet-card header button {
  border: 0;
  background: transparent;
  color: #7b909c;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
}

.lp-sheet-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-top: 1px solid var(--lp-line);
  font-size: 16px;
  color: var(--lp-ink);
  text-decoration: none;
}

.lp-sheet-card a::after {
  content: "›";
  color: #b7c6ce;
  font-size: 18px;
}

@keyframes lp-rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ 宽屏 */

@media (min-width: 700px) {
  .lp-shell {
    max-width: 640px;
    padding-top: 18px;
  }

  .lp-hero {
    padding: 34px 32px 92px;
    border-radius: 32px;
  }

  .lp-hero-main {
    gap: 22px;
  }

  .lp-tile {
    width: 152px;
    height: 152px;
    padding: 16px;
    border-radius: 34px;
  }

  .lp-title {
    font-size: 35px;
  }

  .lp-title small {
    font-size: 26px;
  }

  .lp-sub {
    margin-top: 26px;
    font-size: 17.5px;
  }

  .lp-feats {
    margin: -44px 16px 0;
    gap: 14px;
  }

  .lp-dl {
    padding: 28px 30px 24px;
  }

  .lp-cta {
    height: 62px;
    font-size: 20px;
  }

  .lp-sheet {
    align-items: center;
  }

  .lp-sheet-card {
    border-radius: 24px;
    padding-bottom: 16px;
  }
}

@media (max-width: 359px) {
  .lp-shell {
    padding-inline: 14px;
  }

  .lp-hero {
    padding: 22px 18px 78px;
  }

  .lp-tile {
    width: 96px;
    height: 96px;
    padding: 10px;
    border-radius: 22px;
  }

  .lp-title {
    font-size: 26px;
  }

  .lp-title small {
    font-size: 20px;
  }

  .lp-sub {
    font-size: 15.5px;
  }

  .lp-feat b {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lp-cta,
  .skip-link {
    transition: none;
  }

  .lp-sheet-card {
    animation: none;
  }
}
