:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --sub: #8e8e93;
  --line: #e5e5ea;
  --accent: #0a84ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.hidden { display: none !important; }

.wrap {
  max-width: 640px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 48px) 24px calc(env(safe-area-inset-bottom) + 48px);
}

/* 头部 */
.hero { text-align: center; margin-bottom: 40px; }
.logo { font-size: 48px; margin-bottom: 12px; }
.hero h1 { font-size: 32px; font-weight: 700; margin: 0 0 4px; }
.hero .en { font-size: 14px; color: var(--sub); margin: 0 0 16px; letter-spacing: .05em; }
.hero .desc { font-size: 15px; color: var(--sub); line-height: 1.7; margin: 0; }

/* 功能网格 */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.feat {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border-radius: 14px; padding: 16px;
  font-size: 13px; line-height: 1.5; color: var(--sub);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.feat strong { color: var(--ink); font-size: 14px; }
.feat-ico { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

/* CTA */
.cta {
  display: block; width: 100%; padding: 16px;
  border: 0; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600; cursor: pointer;
}
.cta:active { opacity: .85; }
.foot { text-align: center; font-size: 12px; color: var(--sub); margin-top: 20px; }

/* 底部弹出（复用 SPA 风格） */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  display: flex; align-items: flex-end;
}
.sheet {
  width: 100%; background: var(--card);
  border-radius: 16px 16px 0 0;
  padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px);
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet h2 { margin: 0 0 4px; font-size: 20px; }
.sheet .hint { margin: 0 0 14px; color: var(--sub); font-size: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-x { border: 0; background: none; font-size: 18px; color: var(--sub); padding: 4px 8px; }

.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font: inherit; font-size: 15px; margin: 4px 0 8px; background: var(--bg);
}
.btn-primary {
  padding: 12px; border-radius: 10px; font-size: 16px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
}
.btn-primary.full { width: 100%; margin-top: 12px; }
.pin-row { margin-top: 4px; opacity: .4; pointer-events: none; }
.pin-row .input { margin: 0; }
.entry-err { color: #ff3b30; font-size: 13px; margin-top: 8px; }

.pick-list { display: grid; gap: 10px; }
.pick-item {
  width: 100%; padding: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg);
  font-size: 16px; color: var(--ink); text-align: center; cursor: pointer;
}
.pick-item:active { background: #e8e8ed; }

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
