/* 由 miniprogram/app.wxss 转换（rpx → rem） */
/* ========== 称上见 · 设计规范 ==========
   黑白为底，荧光绿 #D6FF3C 点缀，橙色只用来提示超出。
   中文标题用粗体，英文小标签用等宽字体 + 大写 + 字距，做出潮牌吊牌的感觉。 */
body {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --grey: #9a9a9a;
  --grey-2: #c9c9c9;
  --line: #e9e9e9;
  --card: #f2f2f2;
  --paper: #ffffff;
  --volt: #d6ff3c;
  --hot: #ff5a24;
  --mono: "SF Mono", Menlo, "Roboto Mono", "Courier New", monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
  line-height: 1.45;
}

/* ---------- 布局 ---------- */
.wrap { padding-left: 0.56rem; padding-right: 0.56rem; }
.row { display: flex; align-items: center; }
.flex1 { flex: 1; min-width: 0; }
.tab-page { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.mt8 { margin-top: 0.08rem; }
.mt16 { margin-top: 0.16rem; }
.mt24 { margin-top: 0.24rem; }
.mt32 { margin-top: 0.32rem; }
.mt48 { margin-top: 0.48rem; }
.ml16 { margin-left: 0.16rem; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 文字 ---------- */
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 0.2rem; letter-spacing: 0.04rem; color: var(--grey); text-transform: uppercase; }
.h1 { font-size: 0.6rem; font-weight: 800; line-height: 1.18; letter-spacing: -0.01rem; }
.h2 { font-size: 0.4rem; font-weight: 800; line-height: 1.25; }
.h3 { font-size: 0.32rem; font-weight: 800; }
.sub { font-size: 0.3rem; color: var(--grey); }
.small { font-size: 0.24rem; color: var(--grey); }
.b { font-weight: 800; color: var(--ink); }
.num { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02rem; }
.unit { font-size: 0.28rem; font-weight: 700; margin-left: 0.08rem; letter-spacing: 0; }
.hot { color: var(--hot); }
.hl { background: linear-gradient(transparent 55%, var(--volt) 55%); padding: 0 0.04rem; }

/* ---------- 按钮 ---------- */
.btn {
  height: 1.04rem;
  border-radius: 9.99rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.32rem;
  font-weight: 800;
  box-sizing: border-box;
  padding: 0 0.36rem;
}
.btn-ink { background: var(--ink); color: #ffffff; }
.btn-grey { background: var(--card); color: var(--ink); }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-dotted { background: #ffffff; color: var(--ink); border: 0.04rem dotted var(--ink); }
.btn-sm { height: 0.72rem; font-size: 0.26rem; padding: 0 0.28rem; }
.btn.is-off { opacity: 0.25; }
.btn-hover { opacity: 0.72; }
.btn-ico { width: 0.4rem; height: 0.4rem; margin-right: 0.12rem; }
.circle-btn {
  width: 1.04rem;
  height: 1.04rem;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.circle-btn image { width: 0.48rem; height: 0.48rem; }
.arrow { font-size: 0.56rem; line-height: 1; font-weight: 300; margin-top: -0.08rem; }

/* 原生 button 去掉默认样式（分享、获取昵称时要用原生 button） */
button.plain { margin: 0; padding: 0; background: none; border-radius: 0; line-height: inherit; font-size: inherit; color: inherit; text-align: inherit; }
button.plain::after { border: none; }

/* ---------- 卡片与标签 ---------- */
.card { background: var(--card); border-radius: 0.4rem; }
.thumb { background: #ffffff; border-radius: 0.28rem; overflow: hidden; }
.sticker {
  display: inline-block;
  background: var(--ink);
  color: var(--volt);
  font-weight: 900;
  font-size: 0.22rem;
  padding: 0.08rem 0.18rem;
  border-radius: 0.1rem;
  letter-spacing: 0.01rem;
  transform: rotate(-4deg);
}
.tag {
  display: inline-block;
  border: 0.02rem solid var(--ink);
  border-radius: 9.99rem;
  padding: 0.02rem 0.14rem;
  font-size: 0.2rem;
  font-family: var(--mono);
  letter-spacing: 0.02rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 0.6rem;
  padding: 0 0.24rem;
  border-radius: 9.99rem;
  background: #ffffff;
  font-size: 0.24rem;
  font-weight: 700;
  margin: 0 0.12rem 0.12rem 0;
  box-sizing: border-box;
}
.chip.on { background: var(--ink); color: #ffffff; }
.dots { display: inline-flex; align-items: center; }
.dot { width: 0.14rem; height: 0.14rem; border-radius: 50%; background: var(--grey-2); margin-right: 0.08rem; }
.dot.on { background: var(--ink); }

/* ---------- 底部弹层 ---------- */
.mask { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(17, 17, 17, 0.45); z-index: 100; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: #ffffff;
  border-radius: 0.48rem 0.48rem 0 0;
  padding: 0.4rem 0.48rem calc(0.4rem + env(safe-area-inset-bottom));
  max-height: 82vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: sheet-up 0.22s ease-out;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ---------- 滚轮选择器 ---------- */
.pv { height: 4rem; margin-top: 0.16rem; }
.pv-item { line-height: 0.88rem; text-align: center; font-size: 0.44rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pv-ind { height: 0.88rem; }

/* ---------- 状态 ---------- */
.state { padding: 1.2rem 0.56rem; text-align: center; }
.state-img { width: 3rem; height: 4rem; }
.state-title { font-size: 0.34rem; font-weight: 800; margin-top: 0.24rem; }
.state-text { font-size: 0.26rem; color: var(--grey); margin-top: 0.12rem; }
.state .btn { margin: 0.4rem auto 0; width: 3.6rem; }
.loading-line { text-align: center; padding: 0.4rem 0; color: var(--grey); font-family: var(--mono); font-size: 0.22rem; letter-spacing: 0.04rem; }
