/* ============ 基础 ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
  color: #1b1f27;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }

/* ============ 头部 ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #12306e 100%);
  color: #fff;
  padding: 38px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero-inner { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.app-icon {
  width: 76px; height: 76px; border-radius: 18px; flex: 0 0 76px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.app-icon span { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: -1px; }
.app-name { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.app-meta { font-size: 13px; opacity: .82; margin-top: 4px; }
.badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 20px;
  background: rgba(255, 255, 255, .18); font-size: 12px; vertical-align: 2px;
}
.hero-sub { margin-top: 14px; font-size: 14px; opacity: .9; position: relative; z-index: 1; }

/* ============ 主卡片 ============ */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(14, 30, 62, .08);
  padding: 26px;
}
.main-card { margin-top: -50px; position: relative; z-index: 2; }
.main-grid { display: flex; gap: 28px; align-items: center; }
.main-left { flex: 1 1 auto; min-width: 0; }
.main-right { flex: 0 0 210px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px 22px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff; font-size: 17px; font-weight: 600;
  border: 0; cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 61, 145, .28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(11, 61, 145, .32); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; color: var(--primary);
  border: 1px solid rgba(11, 61, 145, .32);
  box-shadow: none; font-size: 14px; padding: 11px 18px;
}
.btn.small { padding: 9px 16px; font-size: 14px; width: auto; box-shadow: none; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: #5b6472; }
.facts b { color: #1b1f27; font-weight: 600; }
.hash {
  margin-top: 14px; font-size: 11.5px; color: #8b93a1;
  word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.tip {
  margin-top: 16px; padding: 10px 12px; border-radius: 10px;
  background: #f2f6fd; color: #3f5170; font-size: 12.5px; line-height: 1.75;
}

/* ============ 二维码 ============ */
.qr-box {
  border: 1px solid #e8ecf3; border-radius: 14px; padding: 14px 12px 12px; background: #fbfcfe;
}
#qrcode { display: flex; justify-content: center; min-height: 170px; align-items: center; }
#qrcode canvas, #qrcode img { border-radius: 6px; }
.qr-label { margin-top: 10px; font-size: 12.5px; color: #5b6472; }
.qr-sub { font-size: 11.5px; color: #98a0ad; margin-top: 2px; word-break: break-all; }
.qr-actions { margin-top: 12px; display: flex; gap: 8px; }
.qr-actions .btn { flex: 1; }

/* ============ 区块 ============ */
.section { margin-top: 24px; }
.section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary);
}
.muted { color: #7b8494; font-size: 13px; }

/* ============ 版本列表 ============ */
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed #e9edf3;
}
.row:last-child { border-bottom: 0; }
.row-ver { font-weight: 700; font-size: 15px; min-width: 84px; }
.row-ver small { display: block; font-weight: 400; font-size: 11.5px; color: #98a0ad; }
.row-info { flex: 1 1 auto; font-size: 12.5px; color: #7b8494; min-width: 0; }
.row-act { display: flex; gap: 8px; flex: 0 0 auto; }
.tag-latest {
  display: inline-block; padding: 1px 7px; margin-left: 6px; border-radius: 4px;
  background: rgba(11, 61, 145, .1); color: var(--primary); font-size: 11px; font-weight: 600; vertical-align: 1px;
}

/* ============ 步骤 ============ */
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 12px; font-size: 13.5px; color: #3c4554; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: rgba(11, 61, 145, .08); color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

footer { margin: 34px 0 40px; text-align: center; font-size: 12px; color: #9aa2af; }

/* ============ 微信提示浮层 ============ */
.wx-mask { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .82); z-index: 99; }
.wx-tip { position: absolute; top: 18px; right: 22px; color: #fff; text-align: right; font-size: 15px; line-height: 1.8; }
.wx-arrow { font-size: 40px; line-height: 1; }

/* ============ 手机 ============ */
@media (max-width: 720px) {
  .hero { padding: 28px 0 68px; }
  .app-icon { width: 62px; height: 62px; flex-basis: 62px; border-radius: 15px; }
  .app-icon span { font-size: 21px; }
  .app-name { font-size: 20px; }
  .card { padding: 20px; border-radius: 14px; }
  .main-grid { flex-direction: column-reverse; gap: 20px; }
  .main-right { flex: none; width: 100%; }
  .main-left { width: 100%; }
  .row { flex-wrap: wrap; }
  .row-info { flex-basis: 100%; order: 3; }
  .row-act { order: 2; margin-left: auto; }
}
