:root {
  --bg: #f5f6fb;
  --card-bg: #ffffff;
  --ink: #1f2330;
  --ink-soft: #6b7280;
  --primary: #5b5bf5;
  --primary-2: #8b5cf6;
  --wechat: #07c160;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(31, 35, 48, .08);
}

* { 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", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部品牌区 ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 40px 22px 30px;
  text-align: center;
}
.hero__logo { font-size: 40px; line-height: 1; }
.hero__title { margin: 12px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.hero__sub { margin: 0; font-size: 14px; opacity: .9; }
.hero__hint { margin: 14px auto 0; font-size: 12px; opacity: .8; max-width: 320px; }

/* ---------- 卡片网格 ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
}
.card--mp { border: 1px solid rgba(7, 193, 96, .35); }

.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0fb; border-radius: 12px; font-size: 24px;
}
.card__name { margin: 12px 0 2px; font-size: 18px; font-weight: 700; }
.card__tagline { margin: 0 0 6px; font-size: 13px; color: var(--primary); font-weight: 600; }
.card__desc { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); flex: 1; }

.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: #eef0f7; color: var(--ink-soft); font-weight: 600;
}
.badge--web { background: #eaf0ff; color: #3b5bdb; }
.badge--coming { background: #f1f1f1; color: #9aa0ac; }
.badge--miniprogram { background: rgba(7,193,96,.12); color: var(--wechat); }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 12px; padding: 11px 0;
  font-size: 14px; font-weight: 700; cursor: pointer; width: 100%;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--web { background: var(--primary); color: #fff; }
.btn--mp { background: var(--wechat); color: #fff; }
.btn--disabled { background: #eceef3; color: #aab0bd; cursor: not-allowed; }

/* 微信开放标签渲染的按钮需要块级铺满 */
wx-open-launch-weapp.wx-launch { display: block; width: 100%; }

/* ---------- 底部 ---------- */
.footer { text-align: center; font-size: 12px; color: var(--ink-soft); padding: 0 16px 28px; }
.footer__line { margin: 3px 0; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__sep { margin: 0 8px; opacity: .5; }

/* ---------- 联系开发者悬浮按钮 ---------- */
.contact-btn {
  position: fixed; right: 14px; bottom: 24px;
  z-index: 40;
  border: none; border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 700;
  color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 6px 18px rgba(91, 91, 245, .35);
  transition: transform .08s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-btn:active { transform: scale(.95); }
@media (min-width: 560px) {
  .contact-btn { right: calc(50% - 360px + 14px); }
}

/* ---------- 小程序码弹窗 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.modal.show { display: flex; }
.modal__box {
  background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 320px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal__title { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.modal__img { width: 200px; height: 200px; object-fit: contain; border-radius: 10px; background: #f6f6f6; }
.modal__tip { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.modal__tip code { background: #f0f0fb; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.modal__close {
  margin-top: 18px; width: 100%; border: none; background: #f0f1f5; color: var(--ink);
  border-radius: 12px; padding: 11px 0; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* 联系开发者弹窗：二维码放大 */
.modal__box--contact { max-width: 340px; }
.modal__box--contact .modal__img {
  width: 240px; height: 240px; border-radius: 12px;
}
.modal__box--contact .modal__tip { font-size: 14px; }
