/* 手机浏览器端（App 式入口） */
.m-body {
  background: #f6f7fb;
  -webkit-tap-highlight-color: transparent;
}
.m-app {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
}
.m-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 2px 12px;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(12px);
}
.m-brand { display: flex; align-items: center; gap: 9px; }
.m-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, #4f46e5, #06b6d4);
  color: #fff; font-weight: 800; font-size: 17px;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.7);
}
.m-brand b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.m-brand small { display: block; font-size: 9px; color: var(--muted); letter-spacing: 0.12em; }
.m-user {
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.m-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 26px 22px 30px;
  background: linear-gradient(135deg, #4f46e5 0%, #4f46e5 45%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 18px 36px -20px rgba(79, 70, 229, 0.8);
}
.m-hero::after {
  content: ""; position: absolute; width: 180px; height: 180px;
  border-radius: 50%; border: 22px solid rgba(255, 255, 255, 0.1);
  right: -60px; top: -70px;
}
.m-hero h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.9px; font-weight: 800; margin: 0; }
.m-hero h1 em { font-style: normal; opacity: 0.86; }
.m-hero p { font-size: 12.5px; opacity: 0.82; margin: 8px 0 0; }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.m-tags span {
  height: 22px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); font-size: 10px;
  display: inline-flex; align-items: center;
}

.m-quick {
  margin-top: -14px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 30px -22px rgba(14, 21, 38, 0.5);
}
.m-quick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.m-quick-head b { font-size: 13.5px; }
.m-quick-head span { font-size: 10.5px; color: var(--muted); }
.m-code-form { display: flex; gap: 8px; margin-top: 10px; }
.m-code-form input {
  flex: 1; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--surface-2); text-align: center; font-size: 20px;
  font-weight: 700; letter-spacing: 6px; outline: none;
}
.m-code-form input:focus { border-color: var(--primary); background: #fff; }
.m-code-form .btn { height: 44px; flex: none; padding: 0 18px; }

.m-section {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 2px 10px;
}
.m-section span { font-size: 15px; font-weight: 700; }
.m-section a { font-size: 11.5px; color: var(--muted); }

.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tool {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 14px 14px; display: block;
  transition: transform 0.15s ease;
}
.m-tool:active { transform: scale(0.98); }
.m-ic {
  width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 10px;
}
.m-tool b { display: block; font-size: 13.5px; font-weight: 700; }
.m-tool small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.m-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; margin-top: 18px;
}
.m-card b { font-size: 13.5px; }
.m-card p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin: 6px 0 0; }
.m-link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--primary); font-weight: 600; }

.m-install {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 12px 14px; margin-top: 14px; font-size: 11.5px; color: var(--text-2);
}
.m-install button {
  border: 0; background: var(--primary); color: #fff; height: 28px;
  padding: 0 12px; border-radius: 8px; font-size: 11.5px; font-weight: 600;
}

.m-tab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.m-tab a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--muted); font-weight: 600;
}
.m-tab a .qraft-icon, .m-tab a svg { color: currentColor; }
.m-tab a.active { color: var(--primary); }

/* 输入框为空时不要用大间距，避免 placeholder 看起来像已输入 */
.m-code-form input:placeholder-shown { letter-spacing: 1px; font-weight: 500; font-size: 14px; }
