/* 鲜视运司机端 · 下载页样式（移动端优先，桌面居中 + 二维码） */
:root {
  --brand: #0080F5;
  --brand-dark: #0068CC;
  --bg: #F0F4F8;
  --card: #FFFFFF;
  --text: #1A1D21;
  --muted: #6B7280;
  --line: #EBEEF2;
  --warn: #F3AF2B;
  --ok: #00A870;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 34, 56, .04), 0 6px 18px rgba(16, 34, 56, .05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 微信提示 ---------- */
.wx-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid rgba(243, 175, 43, .45);
  background: rgba(243, 175, 43, .12);
  border-radius: var(--radius-sm);
  color: #8A5B00;
}
.wx-tip[hidden] { display: none; }
.wx-tip__icon { width: 22px; height: 22px; flex: none; color: #B07600; }
.wx-tip__text { margin: 0; font-size: 13.5px; flex: 1 1 180px; }
.wx-tip__dots { font-weight: 700; letter-spacing: 1px; }
.wx-tip__copy {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(176, 118, 0, .5);
  background: rgba(255, 255, 255, .7);
  color: #8A5B00;
  font-size: 13px;
}

/* ---------- 应用信息 ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(160deg, #0080F5 0%, #1E93FF 55%, #43A8FF 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero__icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  flex: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 40, 90, .18);
  object-fit: cover;
}
.hero__meta { min-width: 0; }
.hero__name { margin: 0 0 2px; font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.hero__slogan { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.chip--ghost { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card--action { display: flex; flex-direction: column; gap: 10px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__title { margin: 0; font-size: 15.5px; font-weight: 600; }
.card__hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.card__sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(0, 128, 245, .1);
}
.tag--gray { color: var(--muted); background: var(--line); }

/* ---------- 按钮 ---------- */
.btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn__icon { width: 20px; height: 20px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(0, 128, 245, .25); }
.btn--primary:active { background: var(--brand-dark); }
.btn--outline { background: #fff; color: var(--brand); border: 1px solid rgba(0, 128, 245, .45); }
.btn[disabled] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn[hidden] { display: none; }

.switch-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-family: inherit;
  text-align: left;
}

/* ---------- 二维码 ---------- */
.card--qr { text-align: center; }
.qr-box {
  width: 168px;
  height: 168px;
  margin: 4px auto 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box canvas, .qr-box img { width: 100% !important; height: 100% !important; display: block; }

/* ---------- 更新说明 ---------- */
.note-list { margin: 8px 0 0; padding-left: 18px; color: #374151; font-size: 13.5px; }
.note-list li { margin-bottom: 4px; }

/* ---------- 安装步骤 ---------- */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps__item { display: flex; gap: 10px; }
.steps__no {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(0, 128, 245, .1);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps__t { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.steps__d { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-right: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.faq code { font-size: 12px; word-break: break-all; color: #374151; }

/* ---------- 页脚 ---------- */
.foot { text-align: center; padding: 6px 0 0; }
.foot__support { margin: 0 0 4px; font-size: 13px; color: #374151; }
.foot__support a { color: var(--brand); text-decoration: none; }
.foot__copyright { margin: 0; font-size: 11.5px; color: #9AA0A6; }

/* ---------- 轻提示(自绘，不用 alert) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  max-width: 76vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(26, 29, 33, .88);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 20;
}
.toast[hidden] { display: none; }
.toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 桌面：居中窄栏 + 显示二维码 ---------- */
@media (min-width: 560px) {
  .page { padding-top: 32px; gap: 14px; }
}
@media (max-width: 340px) {
  body { font-size: 14px; }
  .hero__icon { width: 58px; height: 58px; border-radius: 15px; }
  .hero__name { font-size: 17px; }
}
