/* 都聊宣传页 · 手机优先，宽屏再展开。配色和 App 共用一套（shared/ui/css/app.css 的 :root） */

:root {
  --accent: #ff5c7a;
  --accent-soft: #ffe8ed;
  --accent-press: #ef4b6a;
  --accent-2: #ff8a5c;
  --bg: #f2f2f5;
  --bg-2: #ffffff;
  --bg-3: #f7f7f9;
  --bubble-me: #95ec69;
  --bubble-me-text: #101010;
  --bubble-other: #ffffff;
  --text: #191919;
  --text-2: #7a7a80;
  --text-3: #b0b0b6;
  --line: #e6e6ea;
  --shadow: 0 6px 24px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(255, 92, 122, 0.18), 0 8px 24px rgba(20, 20, 30, 0.08);
  --radius: 16px;
  --wrap: 1120px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --topbar-h: 56px;
  --mobile-bar-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --bg-2: #1b1b1f;
    --bg-3: #232328;
    --bubble-me: #3d7a2a;
    --bubble-me-text: #eaf7e2;
    --bubble-other: #26262c;
    --text: #f2f2f4;
    --text-2: #9a9aa2;
    --text-3: #6c6c74;
    --line: #2c2c33;
    --accent-soft: #3a2027;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(255, 92, 122, 0.16), 0 8px 28px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Noto Sans SC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* 手机底部固定按钮栏的位置 */
  padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom));
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  flex: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 92, 122, 0.28);
}

.btn-primary:hover {
  background: var(--accent-press);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand img {
  border-radius: 9px;
}

.brand-sm {
  gap: 7px;
  font-size: 15px;
}

.brand-sm img {
  border-radius: 6px;
}

.topnav {
  display: none;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-2);
}

.topnav a:hover {
  color: var(--accent);
}

.topbar .btn {
  margin-left: auto;
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 44px;
}

/* 背景两团淡淡的主题色光晕 */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -120px;
  background: var(--accent-soft);
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: 40px;
  left: -140px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 16px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.cta .btn {
  width: 100%;
}

.cta-sub {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
}

.cta-note {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

.cta-sub a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-weight: 600;
  vertical-align: bottom;
}

/* ---------------------------------------------------------------- 手机样机 */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.phone {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
  border: 8px solid #1d1d22;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 12px;
  background: #1d1d22;
  z-index: 2;
}

.ph-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 38px 14px 10px;
  background: var(--bg-3);
  border-bottom: 0.5px solid var(--line);
  color: var(--text);
}

.ph-back,
.ph-more {
  width: 22px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
}

.ph-more {
  font-size: 14px;
  text-align: right;
}

.ph-title {
  flex: 1;
  text-align: center;
  line-height: 1.25;
}

.ph-title b {
  display: block;
  font-size: 15px;
}

.ph-title small {
  font-size: 10.5px;
  color: var(--text-2);
}

.ph-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  overflow: hidden;
}

.ph-time {
  align-self: center;
  padding: 1px 8px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 11px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.4s ease forwards;
}

.msg:nth-child(2) { animation-delay: 0.3s; }
.msg:nth-child(3) { animation-delay: 1s; }
.msg:nth-child(4) { animation-delay: 1.8s; }
.msg:nth-child(5) { animation-delay: 2.6s; }
.msg:nth-child(6) { animation-delay: 3.3s; }
.msg:nth-child(7) { animation-delay: 4s; }
.msg:nth-child(8) { animation-delay: 4.7s; }

@keyframes msg-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.msg p {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.msg.other p {
  background: var(--bubble-other);
  color: var(--text);
  border-top-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.msg.me {
  align-self: flex-end;
}

.msg.me p {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-top-right-radius: 3px;
}

.av {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.av-a {
  background: linear-gradient(135deg, #ff8aa1, var(--accent));
}

.av-me {
  background: linear-gradient(135deg, #7fb6ff, #4d8bf0);
}

.typing p {
  display: flex;
  gap: 4px;
  padding: 11px 12px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: dot 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.ph-input {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 14px;
  background: var(--bg-3);
  border-top: 0.5px solid var(--line);
}

.ph-input span {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 12px;
  line-height: 30px;
}

.ph-input b {
  padding: 0 11px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 30px;
}

/* 样机两边的小卡片：手机上收起，宽屏再出现 */
.float-card {
  display: none;
  position: absolute;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}

.float-card svg {
  color: var(--accent);
}

.fc-1 {
  top: 22%;
  left: 0;
}

.fc-2 {
  bottom: 18%;
  right: 0;
  animation-delay: -2.5s;
}

.fc-3 {
  top: 8%;
  right: 2%;
  animation-delay: -1.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------------------------------------------------------- 区块 */

.section {
  padding: 48px 0;
}

.section-tint {
  background: var(--bg-2);
}

.section-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
}

.feature p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.steps h3 {
  font-size: 16px;
}

.steps p {
  color: var(--text-2);
  font-size: 14px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 14px;
}

.facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.facts svg {
  color: var(--accent);
}

/* ---------------------------------------------------------------- 发现（文字 + 示意卡片） */

/* 每个功能一行：文字 + 手机样机。首屏样机在右，往下左右交替 */
.frow {
  padding: 52px 0;
}

.frow-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.frow-text {
  text-align: center;
}

.frow-title {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.frow-lead {
  max-width: 30em;
  margin: 12px auto 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.frow-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.checks {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 15px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checks svg {
  margin-top: 3px;
  color: var(--accent);
}

/* 样机里的各个界面 */
.ph-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
}

.ph-done {
  width: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.ph-icon {
  display: flex;
  justify-content: flex-end;
  color: var(--text);
}

.ph-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 9px;
  background: var(--line);
  font-size: 11.5px;
  text-align: center;
}

.ph-seg b,
.ph-seg span {
  padding: 4px 0;
  border-radius: 7px;
}

.ph-seg b {
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ph-seg span {
  color: var(--text-2);
}

.ph-avatar {
  display: flex;
  justify-content: center;
}

.av.av-xl {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 22px;
}

.ph-card {
  overflow: hidden;
  border-radius: 11px;
  background: var(--bg-2);
}

.ph-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-top: 0.5px solid var(--line);
}

.ph-row:first-child {
  border-top: 0;
}

.ph-row span {
  flex: none;
}

.ph-row em {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-style: normal;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-row.nav::after {
  content: '›';
  color: var(--text-3);
}

.ph-row.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.ph-row.stacked em {
  text-align: left;
  white-space: normal;
}

.ph-switch {
  position: relative;
  width: 34px;
  height: 20px;
  margin-left: auto;
  border-radius: 10px;
  background: var(--line);
}

.ph-switch.on {
  background: #34c759;
}

.ph-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ph-switch.on::after {
  left: 16px;
}

.ph-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
  background: var(--bg-2);
}

.ph-profile b {
  display: block;
  font-size: 14px;
}

.ph-profile small {
  color: var(--text-2);
  font-size: 11px;
}

.ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 0;
  border-radius: 12px;
  background: var(--bg-2);
  text-align: center;
}

.ph-stats b {
  display: block;
  color: var(--accent);
  font-size: 16px;
}

.ph-stats small {
  color: var(--text-2);
  font-size: 10.5px;
}

.ph-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 12px 12px 28px;
  border-radius: 12px;
  background: var(--bg-2);
}

.ph-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 15px;
  width: 2px;
  background: var(--accent-soft);
}

.ph-tl {
  position: relative;
}

.ph-tl::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-2);
}

.ph-tl.muted::before {
  background: var(--text-3);
}

.ph-tl p {
  font-size: 12.5px;
  line-height: 1.4;
}

.ph-tl small {
  color: var(--text-3);
  font-size: 10.5px;
}

.ph-banner {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  animation: banner-in 0.5s 0.6s ease both;
}

.ph-banner img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.ph-banner div {
  flex: 1;
  min-width: 0;
}

.ph-banner b,
.ph-chat b {
  display: flex;
  align-items: baseline;
  font-size: 12.5px;
}

.ph-banner b small,
.ph-chat b small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 400;
}

.ph-banner p {
  font-size: 11.5px;
  line-height: 1.4;
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ph-list {
  flex: 1;
  overflow: hidden;
  background: var(--bg-2);
}

.ph-chat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 0.5px solid var(--line);
}

.ph-chat .av {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 14px;
}

.ph-chat > div {
  flex: 1;
  min-width: 0;
}

.ph-chat p {
  overflow: hidden;
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.has-badge i {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
}

.ph-tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 14px;
  background: var(--bg-3);
  border-top: 0.5px solid var(--line);
  color: var(--text-2);
  font-size: 10.5px;
  text-align: center;
}

.ph-tabbar .on {
  color: var(--accent);
  font-weight: 600;
}

.ph-intro {
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.msg .bub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.msg .bub small {
  padding-left: 2px;
  color: var(--text-2);
  font-size: 10px;
}

.msg .at {
  color: #1d6fd6;
  font-weight: 600;
}

.av-b {
  background: linear-gradient(135deg, #7ad6c0, #2fb39a);
}

.av-c {
  background: linear-gradient(135deg, #ffc27a, #ff8a5c);
}

.av-d {
  background: linear-gradient(135deg, #c7a6ff, #8c62f0);
}

.av-e {
  background: linear-gradient(135deg, #8fc3ff, #4d8bf0);
}

/* 样机里的发现卡片：小一号 */
.phone .plaza-mock {
  gap: 8px;
  max-width: none;
  margin: 0;
}

.phone .pm-card {
  gap: 9px;
  padding: 9px;
  border-radius: 11px;
  background: var(--bg-2);
  box-shadow: none;
}

.phone .pm-av {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 15px;
}

.phone .pm-title {
  font-size: 13px;
}

.phone .pm-sub {
  font-size: 10.5px;
}

.phone .pm-tags {
  margin-top: 4px;
}

.phone .pm-tags span {
  background: var(--bg);
  font-size: 10px;
}

.phone .pm-foot {
  gap: 8px;
  margin-top: 4px;
  font-size: 10.5px;
}

.phone .pm-add {
  padding: 4px 9px;
  font-size: 10.5px;
}

/* 滚到这一行再播放聊天动画（没有 JS 时直接显示） */
.js .frow .msg,
.js .frow .ph-banner {
  animation-play-state: paused;
}

.js .frow.in .msg,
.js .frow.in .ph-banner {
  animation-play-state: running;
}

.plaza-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.pm-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.pm-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8aa1, var(--accent));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.pm-main {
  flex: 1;
  min-width: 0;
}

.pm-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
}

.pm-title em {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.pm-sub {
  margin-top: 1px;
  color: var(--text-2);
  font-size: 12.5px;
}

.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.pm-tags span {
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 11.5px;
}

.pm-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 12px;
}

.pm-foot > span:first-child {
  flex: 1;
}

.pm-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pm-stat.on {
  color: var(--accent);
}

.pm-add {
  flex: none;
  align-self: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.pm-add.done {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------------------------------------------------------------- 下载 */

.platforms {
  display: grid;
  gap: 12px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
}

.platform-main {
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.platform h3 {
  font-size: 18px;
}

.meta {
  color: var(--text-2);
  font-size: 13.5px;
}

.platform-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.small {
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
}

.qr[hidden] {
  display: none;
}

.qr-code {
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

/* 安装包还没打出来时 */
.btn.is-disabled {
  pointer-events: none;
  background: var(--bg-3);
  color: var(--text-3);
  box-shadow: none;
}

/* ---------------------------------------------------------------- 页脚 */

.footer {
  padding: 28px 0 32px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer .brand {
  color: var(--text-2);
}

.footer-note {
  text-align: right;
}

@media (max-width: 639px) {
  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }

  .footer-note {
    text-align: center;
  }
}

/* ---------------------------------------------------------------- 手机底部固定按钮 */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 9px 16px calc(9px + var(--safe-bottom));
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-top: 0.5px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

/* iPhone 上只剩「进入网页版」一个按钮 */
.mobile-bar.single {
  grid-template-columns: 1fr;
}

[hidden] {
  display: none !important;
}

/* 移动端：主按钮已经进 H5，首屏下面那行「打开手机网页版」就不需要了 */
.is-mobile .cta-sub {
  display: none;
}

/* 首屏按钮滚出屏幕后再出来，避免同一屏两组一样的按钮 */
.mobile-bar.show {
  transform: none;
}

.mobile-bar .btn {
  height: 46px;
  box-shadow: none;
  font-size: 15px;
}

/* ---------------------------------------------------------------- 小屏微调 */

@media (max-width: 359px) {
  .wrap {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .topbar .btn-sm {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------- 平板 */

@media (min-width: 640px) {
  .cta {
    flex-direction: row;
    justify-content: center;
  }

  .cta .btn {
    width: auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 22px;
  }

  .feature-icon {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .facts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
  }

  .br-mobile {
    display: none;
  }
}

/* ---------------------------------------------------------------- 电脑 */

@media (min-width: 960px) {
  :root {
    --topbar-h: 64px;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .topnav {
    display: flex;
  }

  .topbar .btn {
    margin-left: 8px;
  }

  .hero {
    padding: 64px 0 88px;
  }

  .hero::before {
    width: 560px;
    height: 560px;
    top: -200px;
    right: -160px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-text {
    flex: 1.1;
    text-align: left;
  }

  .hero h1 {
    font-size: 68px;
    letter-spacing: 3px;
  }

  .lead {
    margin-left: 0;
    font-size: 18px;
  }

  .cta {
    justify-content: flex-start;
    margin-top: 36px;
  }

  .hero-visual {
    flex: 1;
    padding: 0 40px;
  }

  .phone {
    width: 310px;
  }

  .float-card {
    display: inline-flex;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 40px;
    font-size: 32px;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .feature {
    padding: 26px;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .frow {
    padding: 96px 0;
  }

  .frow-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .frow-text {
    flex: 1.1;
    text-align: left;
  }

  .frow-visual {
    flex: 1;
    padding: 0 40px;
  }

  /* 样机在左：文字挪到右边 */
  .frow.phone-left .frow-visual {
    order: -1;
  }

  .frow-title {
    font-size: 38px;
  }

  .frow-lead {
    margin-left: 0;
    font-size: 17px;
  }

  .checks {
    display: flex;
  }

  .platforms {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .platform {
    padding: 26px;
  }

  .platform .btn {
    margin-top: auto;
  }

  .platform-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    column-gap: 20px;
  }

  .platform-main .platform-head,
  .platform-main .platform-body {
    grid-column: 1;
  }

  .platform-main .platform-body {
    justify-content: flex-end;
  }

  .platform-main .qr {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .msg,
  .float-card,
  .ph-banner,
  .typing i {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- 用户协议 / 隐私政策 */

.legal-body {
  padding-bottom: 0;
}

.legal {
  max-width: 760px;
  padding-top: 28px;
  padding-bottom: 40px;
  line-height: 1.8;
}

.legal h1 {
  font-size: 28px;
  font-weight: 800;
}

.legal .legal-meta {
  margin: 8px 0 24px;
  color: var(--text-2);
  font-size: 14px;
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: var(--text);
  font-size: 15px;
}

.legal p + p {
  margin-top: 10px;
}

.legal ul,
.legal ol {
  margin: 8px 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a,
.footer-note a {
  color: var(--accent);
}

.legal mark {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}
