/* 真链层配套样式
   ---------------------------------------------------------------
   只加真链接入所必需的三小块（二维码 / 地址行 / 主网警示），
   全部沿用设计自己的变量与圆角，浅色深色都跟着走，不引入新色板。 */

/* ── 收款二维码：白底，保证任何主题下都扫得出来 ── */
#phone .rc-qr {
  width: 184px;
  height: 184px;
  margin: 0 auto 14px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#phone .rc-qr img,
#phone .rc-qr canvas {
  display: block;
  width: 168px !important;
  height: 168px !important;
  max-width: 100%;
  border-radius: 8px;
}

/* ── 地址行：左边可滚动的等宽地址 + 右边复制按钮 ── */
#phone .rc-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--cp-soft);
  border: 1px solid var(--cp-border);
  border-radius: 13px;
}
#phone .rc-addr .code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .2px;
  overflow-wrap: anywhere;
  text-align: left;
  color: var(--cp-text);
}
#phone .rc-addr .text-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border-radius: 11px;
}

/* ── 主网警示：只在真的连着主网时出现 ── */
#phone .rc-warn {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #FCF3DE;
  border: 1px solid #E3D4B6;
  color: #684E27;
  font-size: 12px;
  line-height: 1.6;
}
#phone[data-theme="dark"] .rc-warn {
  background: #3A3222;
  border-color: #5C4E33;
  color: #F0DDB8;
}

/* ── 启动自检横幅：只在真链层没加载完整时出现 ──
   它是一块"红色警报"，绝不能用温和的提示色 —— 因为这一屏上的所有数字
   此刻都不是真的。用设计里已有的强调色体系（棕红）画的，视觉上不突兀。 */
#phone .rc-boot-warn {
  margin: 0 0 14px;
  padding: 14px 15px;
  border-radius: 14px;
  background: #FBEDE9;
  border: 1px solid #E4C3B8;
  color: #7A3A28;
  font-size: 12.5px;
  line-height: 1.65;
  text-align: left;
}
#phone .rc-boot-warn strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: #6B2E1D;
}
#phone .rc-boot-warn p {
  margin: 0 0 6px;
}
#phone .rc-boot-warn p:last-child {
  margin-bottom: 0;
}
#phone .rc-boot-warn em {
  font-style: normal;
  font-weight: 600;
}
#phone .rc-boot-warn .rc-boot-warn-foot {
  padding-top: 7px;
  border-top: 1px solid #E4C3B8;
  color: #8A5040;
}
#phone[data-theme="dark"] .rc-boot-warn {
  background: #3B2721;
  border-color: #5E3B30;
  color: #F3D6CB;
}
#phone[data-theme="dark"] .rc-boot-warn strong { color: #FFE3D8; }
#phone[data-theme="dark"] .rc-boot-warn .rc-boot-warn-foot { border-top-color: #5E3B30; color: #DCB4A5; }
