/* download.liaoban.app 下载页：浅蓝白渐变底 + 居中单栏，白色手机样机配悬浮徽标，三项特点，深色 / 蓝色两枚下载按钮 */
:root {
  --ink: #111a33;
  --ink-2: #4a5470;
  --muted: #6b7590;
  --line: #dde5f3;
  --canvas: #f2f6fd;
  --surface: #ffffff;
  --blue: #2f5de0;
  --blue-2: #3d7bf2;
  --blue-deep: #1f44b8;
  --brand: #1f4fd1;
  --navy: #0e1530;
  --navy-deep: #060b1e;
  --bubble-in: #f1f3f8;
  --green: #22b573;
  --shadow-btn: 0 12px 24px -12px rgba(16, 32, 90, 0.55);
  --shadow-phone: 0 36px 60px -34px rgba(20, 40, 110, 0.45), 0 14px 26px -16px rgba(20, 40, 110, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100vh;
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(47, 93, 224, 0.45); outline-offset: 3px; }

/* 背景：浅蓝白渐变，左上一团淡青色光晕，右侧一团淡紫蓝 */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 26% at 18% 26%, rgba(176, 222, 240, 0.75), transparent 72%),
    radial-gradient(40% 30% at 92% 48%, rgba(214, 222, 252, 0.8), transparent 72%),
    linear-gradient(180deg, #eef3fd 0%, #f6f8fe 55%, #eef2fb 100%);
}

.page {
  width: min(440px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(32px, 7vh, 64px) 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 标题 */
.logo { width: 52px; height: 52px; border-radius: 24%; box-shadow: 0 10px 20px -12px rgba(31, 79, 209, 0.6); }
.head h1 {
  margin-top: 14px;
  font-size: clamp(32px, 8.6vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.head h1 i { font-style: normal; margin: 0 0.18em; }
.sub { margin-top: 6px; font-size: clamp(16px, 4.4vw, 20px); color: var(--ink-2); letter-spacing: 0.06em; }

/* 手机样机 + 悬浮徽标 */
.stage { position: relative; margin-top: clamp(26px, 5vh, 40px); padding-bottom: 26px; }
.stage::after { /* 样机底部的柔和投影 */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 100, 190, 0.22), transparent);
  z-index: -1;
}
.phone {
  width: min(250px, 62vw);
  aspect-ratio: 9 / 17.4;
  padding: 5px;
  border-radius: 40px;
  background: #1b2242;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px #3a4370;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 11px;
}
.status { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 0; height: 32px; font-size: 11px; }
.island { width: 70px; height: 20px; margin-top: -4px; border-radius: 12px; background: #0b0f1f; }
.battery { width: 19px; height: 9px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.battery::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; border-radius: 1px; background: var(--ink); }
.chat-head {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  padding: 6px 12px 10px;
  text-align: center;
}
.chat-head b { display: block; font-size: 13px; line-height: 1.3; }
.chat-head em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 9px; color: #1c8a58; line-height: 1.3; }
.chat-head em::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.back { width: 8px; height: 8px; border-left: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); margin-left: 6px; }
.more { color: var(--ink-2); letter-spacing: -1px; font-weight: 700; }
.msgs { flex: 1; min-height: 0; padding: 10px 10px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.msgs small { display: block; font-size: 8.5px; color: var(--muted); margin: 0 0 3px 4px; }
.msgs p { display: inline-block; max-width: 94%; padding: 6px 10px; border-radius: 13px; line-height: 1.45; font-size: 10.5px; }
.msgs .in p { background: var(--bubble-in); color: var(--ink); }
.msgs .out { text-align: right; }
.msgs .out p { text-align: left; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue-deep)); }
.msgs .out span { display: block; font-size: 7.5px; opacity: 0.78; white-space: nowrap; }
.composer { display: flex; align-items: center; gap: 8px; margin: 0 10px 18px; padding: 5px 5px 5px 10px; border-radius: 18px; border: 1px solid var(--line); }
.composer .plus { width: 14px; height: 14px; border-radius: 50%; border: 1.3px solid #a8b0c4; position: relative; }
.composer .plus::before, .composer .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #a8b0c4; transform: translate(-50%, -50%); }
.composer .plus::before { width: 6px; height: 1.3px; }
.composer .plus::after { width: 1.3px; height: 6px; }
.composer .field { flex: 1; color: #a1a9bc; font-size: 10px; }
.composer .send { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); position: relative; }
.composer .send::after { content: ""; position: absolute; left: 7px; top: 7.5px; width: 5px; height: 5px; border-top: 1.6px solid #fff; border-right: 1.6px solid #fff; transform: rotate(45deg); }
.home-bar { position: absolute; left: 50%; bottom: 7px; width: 34%; height: 4px; border-radius: 2px; background: #c9cfdc; transform: translateX(-50%); }

/* 悬浮徽标：半透明圆底 + 白色描边图标 */
.badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 20px -12px rgba(31, 79, 209, 0.5);
}
.badge svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge--check { left: -26%; top: 18%; width: 46px; height: 46px; background: #8fe3c0; }
.badge--check svg { width: 22px; height: 22px; }
.badge--bolt { right: -32%; top: 36%; width: 66px; height: 66px; background: #a8bff4; }
.badge--bolt svg { width: 30px; height: 30px; }
.badge--lock { left: -40%; top: 58%; width: 60px; height: 60px; background: #9cc4f0; }

/* 三项特点 */
.features {
  margin-top: 18px;
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.features li { display: flex; flex-direction: column; align-items: center; }
.f-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e6eefc; border: 1px solid #d4e0f8; }
.f-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features b { margin-top: 8px; font-size: clamp(14px, 3.9vw, 16px); color: var(--ink); }
.features li > span:last-child { font-size: 11px; color: var(--muted); }

/* 下载按钮 */
.actions { margin-top: 22px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  border-radius: 12px;
  color: #fff;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.dl svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.dl-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.dl-txt b { font-size: clamp(15px, 4.2vw, 17px); font-weight: 700; letter-spacing: 0.04em; }
.dl-txt small { font-size: 10.5px; opacity: 0.72; }
.dl:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dl:active { transform: translateY(0); filter: none; }
.dl.ios { background: linear-gradient(135deg, #1a2244, var(--navy-deep)); }
.dl.android { background: linear-gradient(135deg, var(--blue-2), var(--blue-deep)); }
.dl.current { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -5px; }

.meta { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.meta span:empty { display: none; }

.qr-card {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
}
.qr-box { width: 84px; height: 84px; }
.qr-box svg { display: block; width: 100%; height: 100%; }

/* 弹层 */
.mask { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 30, 0.55); display: grid; place-items: center; padding: 20px; }
.wx-tip { position: absolute; top: 16px; right: 20px; color: #fff; text-align: right; font-size: 17px; line-height: 1.7; }
.wx-tip svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.modal { width: min(380px, 100%); padding: 28px 26px; border-radius: 20px; background: var(--surface); text-align: center; }
.modal h2 { font-size: 20px; }
.modal ol { margin-top: 16px; padding-left: 20px; text-align: left; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.ok { margin-top: 22px; padding: 11px 36px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 600; }

/* 手机：按屏幕高度压缩样机，让三项特点和下载按钮尽量落在首屏（样机高度 = 屏幕高度 - 其余内容约 445px） */
@media (max-width: 600px) {
  .page { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 28px; }
  .logo { width: 40px; height: 40px; }
  .head h1 { margin-top: 8px; font-size: 30px; }
  .sub { margin-top: 0; font-size: 15px; }
  .stage { margin-top: 16px; padding-bottom: 20px; }
  .phone { width: auto; height: clamp(270px, calc(100svh - 445px), 480px); }
  .badge--check { left: -24%; }
  .badge--bolt { right: -26%; width: 56px; height: 56px; }
  .badge--lock { left: -32%; width: 52px; height: 52px; }
  .features { margin-top: 10px; }
  .actions { margin-top: 18px; }
  .btns { gap: 12px; }
  .dl { height: 56px; }
  .meta { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
