/* 骑手端 NFC 换电卡（开发级精致视觉版 V2）
 * 严格遵循《骑手端 UI 设计规范 V1.0》与真实工程 pkg.wxss / my.wxss / powerCard.wxss / powerRecord.wxss
 * 主色：#CB2C30（按下 #A92327 / 浅底 #FBEAEC / 渐变深红 #9F2025）
 * 底色：#F6F7F9 | 卡片：#FFFFFF（12px 圆角，无重阴影）| 基准画布：402 × 874
 */
:root {
  --brand: #CB2C30;
  --brand-press: #A92327;
  --brand-soft: #FBEAEC;
  --brand-border: #EAB7B9;
  --grad-end: #9F2025;
  --t1: #181818;
  --t2: #333333;
  --t3: #767676;
  --t4: #A8ADB5;
  --line: #E9EBEE;
  --line2: #F1F2F4;
  --bg: #F6F7F9;
  --ok: #168550;
  --ok-bg: #E8F7EE;
  --warn: #A06C12;
  --warn-bg: #FDF4E3;
  --err: #D73547;
  --err-bg: #FDECEE;
  --gold: #7A5A1E;
  --gold-bg: #F6EBD3;
  --city: #1D6FD8;
  --city-bg: #E8F3FF;
  --mark: #0F766E;
  --mark-soft: #F0FDFA;
  --num: "DIN Alternate", "Bahnschrift", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", "DIN Alternate", "Bahnschrift", monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #E7EAEF;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--t2);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
p { margin: 0; }
button { font-family: inherit; }

/* ===================== 顶部工具条（设计画板模式） ===================== */
.toolbar {
  position: sticky; top: 0; z-index: 60;
  background: #111827; color: #fff; font-size: 13px; padding: 10px 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
}
.toolbar strong { font-weight: 600; color: #fff; margin-right: 4px; }
.toolbar a { color: #93C5FD; text-decoration: none; white-space: nowrap; }
.toolbar a:hover { text-decoration: underline; }
.toolbar .pill-link {
  margin-left: auto; background: var(--brand); color: #fff;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
}

/* ===================== 画板与开发标注栏 ===================== */
.board {
  width: 980px; background: #fff; margin: 28px auto;
  padding: 26px 32px 32px; border-radius: 14px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, .06);
}
.board-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid #EEF0F3;
}
.board-id {
  font: 600 13px/22px var(--num); color: #fff; background: var(--mark);
  border-radius: 6px; padding: 0 8px; letter-spacing: .5px;
}
.board-title { font-size: 19px; font-weight: 600; color: #111827; }
.board-sub { margin-left: auto; font-size: 12px; color: #6B7280; }
.board-body { display: flex; gap: 32px; align-items: flex-start; }

.notes { flex: 1; min-width: 0; font-size: 13px; line-height: 21px; color: #374151; }
.nt { margin-bottom: 18px; }
.nt:last-child { margin-bottom: 0; }
.nt h4 {
  margin: 0 0 10px; font-size: 14px; color: #111827;
  display: flex; align-items: center; gap: 6px;
}
.nt h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--mark); }
.nt ol { list-style: none; margin: 0; padding: 0; }
.nt li { display: flex; gap: 10px; margin-bottom: 10px; }
.nt li:last-child { margin-bottom: 0; }
.nt li .n {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mark); color: #fff; font: 600 12px/20px var(--num);
  text-align: center; margin-top: 1px;
}
.nt li > div > strong:first-child { display: block; color: #111827; font-weight: 600; }
.nt li strong { color: #111827; font-weight: 600; }
.nt .src {
  font-size: 12px; color: #525B6B; background: #F7F8FA;
  border-radius: 8px; padding: 10px 12px; line-height: 19px;
}
.nt .src b { color: #1F2937; font-weight: 600; }
.nt code {
  font-family: var(--mono); font-size: 11.5px;
  background: #F1F3F6; padding: 1px 5px; border-radius: 4px; color: #1F2937;
}
.nt table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nt td, .nt th {
  border: 1px solid #E5E7EB; padding: 6px 8px; text-align: left;
  vertical-align: top; line-height: 18px;
}
.nt th { background: #F7F8FA; color: #374151; font-weight: 600; }

/* 标注点 */
.hp { position: relative; }
.pin {
  position: absolute; z-index: 30; left: -9px; top: -9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mark); color: #fff; font: 600 12px/20px var(--num);
  text-align: center; box-shadow: 0 0 0 2px #fff; font-style: normal; pointer-events: none;
}

/* ===================== 手机标准壳 402×874 ===================== */
.phone {
  position: relative; width: 402px; height: 874px; flex: none;
  border-radius: 38px; border: 1px solid #D5DAE1;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .12);
  overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
}
/* 骑手端品牌柔和顶部渐变（同源 r-top.is-grad，通透轻盈） */
.phone.is-grad-bg {
  background: linear-gradient(180deg, #FBE7E8 0%, #FDF4F5 21%, #F6F7F9 40%, #F6F7F9 100%);
}
.phone.is-slate-bg {
  background: linear-gradient(180deg, #ECEFF4 0%, #F4F5F8 20%, #F6F7F9 38%, #F6F7F9 100%);
}

.sb {
  height: 48px; flex: none; display: flex; align-items: center;
  justify-content: space-between; padding: 6px 26px 0 30px;
  font: 600 15px/1 var(--num); color: #111;
}
.sb.is-light { color: #fff; }
.sb .r { display: flex; gap: 6px; align-items: center; }
.sb svg { width: 17px; height: 17px; }

.nav {
  height: 48px; flex: none; display: flex; align-items: center;
  justify-content: center; position: relative;
  font-size: 17px; font-weight: 600; color: var(--t1); background: #fff;
}
.nav.is-transparent { background: transparent; }
.nav.is-clear { background: transparent; color: #fff; }
.nav .back {
  position: absolute; left: 8px; top: 6px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--t1); cursor: pointer; border-radius: 50%;
}
.nav .back:hover { background: rgba(0, 0, 0, .04); }
.nav .back svg { width: 22px; height: 22px; }

.capsule {
  position: absolute; right: 10px; top: 8px; width: 88px; height: 32px;
  border-radius: 16px; border: 1px solid rgba(0, 0, 0, .09);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px);
  display: flex; align-items: center;
}
.capsule.is-light { border-color: rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .18); }
.capsule span { flex: 1; display: flex; justify-content: center; align-items: center; color: #111; }
.capsule.is-light span { color: #fff; }
.capsule i { width: 1px; height: 18px; background: rgba(0, 0, 0, .12); }
.capsule.is-light i { background: rgba(255, 255, 255, .28); }
.capsule svg { width: 17px; height: 17px; }

.r-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.r-scroll::-webkit-scrollbar { display: none; }

.tabbar {
  height: 54px; flex: none; display: flex; background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar .tb-it {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 10px; color: #999; cursor: pointer;
}
.tabbar .tb-it.on { color: #000; font-weight: 600; }
.tabbar .tb-it img { width: 22px; height: 22px; object-fit: contain; display: block; }

.safe { height: 34px; flex: none; background: #fff; position: relative; }
.safe.is-bg { background: transparent; }
.safe::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111;
}

/* ===================== 通用组件（对齐骑手端规范 V1.0） ===================== */
.pk-section { margin: 12px 16px 0; }
.pk-card { background: #fff; border-radius: 12px; }

.pk-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px; border-radius: 24px;
  background: linear-gradient(135deg, #D9383C 0%, #CB2C30 100%);
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .3px;
  padding: 0 22px; border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(203, 44, 48, .22);
  transition: transform .12s, opacity .15s;
}
.pk-btn:active { background: var(--brand-press); transform: scale(.99); }
.pk-btn.block { width: 100%; }
.pk-btn.sm { height: 40px; font-size: 14px; border-radius: 20px; box-shadow: none; }
.pk-btn.ghost {
  background: #fff; color: var(--t2); border: 1px solid #DCDFE4; box-shadow: none; font-weight: 500;
}
.pk-btn.soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.pk-btn.disabled { background: #E3E5E9; color: #fff; box-shadow: none; cursor: not-allowed; }
.pk-btn svg { width: 18px; height: 18px; flex: none; }

.pk-scope {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px;
  border-radius: 4px; font-size: 11px; font-weight: 500;
  background: var(--city-bg); color: var(--city); white-space: nowrap;
}

.st-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.st-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pill svg { width: 12px; height: 12px; flex: none; }
.st-pill.ok { background: var(--ok-bg); color: var(--ok); }
.st-pill.warn { background: var(--warn-bg); color: var(--warn); }
.st-pill.err { background: var(--err-bg); color: var(--err); }
.st-pill.gray { background: #EEF0F4; color: var(--t3); }
.st-pill.brand { background: var(--brand-soft); color: var(--brand); }

/* ===================== 真实「我的」页复刻 ===================== */
.my-top-bar { background: var(--brand); flex: none; }
.my-header { background: var(--brand); padding-bottom: 48px; }
.my-top-part { display: flex; align-items: center; padding: 6px 16px 16px; position: relative; }
.my-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.my-avatar img { width: 46px; height: 46px; object-fit: contain; }
.my-user-info { margin-left: 14px; flex: 1; min-width: 0; }
.my-phone { color: #fff; font-size: 18px; font-weight: 600; font-family: var(--num); }
.my-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.my-badge {
  display: inline-flex; align-items: center; gap: 5px; background: #fff;
  color: var(--brand); border-radius: 14px; padding: 4px 8px; font-size: 12px; font-weight: 500;
}
.my-badge img { width: 13px; height: 15px; object-fit: contain; }
.my-right-chev { color: rgba(255, 255, 255, .85); width: 18px; height: 18px; flex: none; }

.vip-card {
  position: relative; margin: 0 15px; height: 128px; border-radius: 12px;
  padding: 12px 16px 14px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
  background: linear-gradient(135deg, #FBEFCF 0%, #F2D894 52%, #EBC674 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}
.vip-card__wm { position: absolute; right: -6px; bottom: -14px; width: 108px; opacity: .18; pointer-events: none; }
.vip-card__top { position: relative; z-index: 1; display: flex; align-items: center; }
.vip-card__badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #EFC25A, #D59A32);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.vip-card__badge img { width: 28px; height: 24px; }
.vip-card__info { margin-left: 10px; flex: 1; min-width: 0; }
.vip-card__title { font-size: 20px; font-weight: 700; color: #5A3F16; line-height: 1.2; }
.vip-card__slogan { font-size: 11px; color: #93702E; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vip-card__divider { width: 1px; height: 36px; background: rgba(120, 85, 25, .28); margin: 0 8px; flex: none; }
.vip-card__status { font-size: 11px; line-height: 1.75; color: #8A6526; flex: none; }
.vip-card__bottom { position: relative; z-index: 1; display: flex; align-items: center; }
.vip-card__renew {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 14px; background: rgba(120, 85, 25, .10);
  border: 1px solid rgba(120, 85, 25, .22); color: #8A6526; font-size: 11px;
}
.vip-card__renew img { width: 14px; height: 14px; }
.vip-card__more { margin-left: auto; font-size: 13px; color: #8A6526; }

.my-module-box {
  position: relative; z-index: 2; display: flex; background: #fff;
  margin: -32px 15px 12px; padding: 16px 0 14px; border-radius: 10px;
}
.my-module-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; font-size: 13px; color: #111; cursor: pointer;
}
.my-module-item + .my-module-item { border-left: 1px solid #F0F0F0; }
.my-module-icon-wrap { position: relative; display: inline-flex; }
.my-module-item img { width: 19px; height: 21px; object-fit: contain; }
.my-msg-dot {
  position: absolute; top: -1px; right: -5px; width: 7px; height: 7px;
  border-radius: 50%; background: #E8312E; border: 1.5px solid #fff;
}

.my-new-menus { margin: 0 15px 16px; background: #fff; border-radius: 10px; padding: 15px 12px 14px; }
.my-new-menus-title { font-size: 16px; font-weight: 600; color: #222; padding: 0 8px 14px; }
.my-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 4px; }
.my-grid-item {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; cursor: pointer; padding: 4px 2px; border-radius: 8px;
}
.my-grid-item.is-highlight {
  background: #FFF7F7; outline: 1px dashed var(--brand-border);
}
.my-grid-ic { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; margin-bottom: 7px; position: relative; }
.my-grid-ic img { width: 22px; height: 24px; object-fit: contain; }
.my-grid-ic svg { width: 24px; height: 24px; color: var(--brand); }
.my-grid-text { font-size: 12px; color: #555; text-align: center; line-height: 16px; white-space: nowrap; }
.my-grid-badge {
  position: absolute; top: -3px; right: 4px; font-size: 9px; line-height: 14px;
  padding: 0 4px; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 600;
}
.my-grid-badge.is-ok { background: var(--ok); }

/* ===================== 真实「换电卡」页复刻 ===================== */
.pc-hero {
  position: relative; overflow: hidden; border-radius: 16px; padding: 16px; color: #fff;
  background: linear-gradient(135deg, #DE3B3F 0%, #CB2C30 46%, #9F2025 100%);
}
.pc-hero .wm { position: absolute; right: -6px; bottom: -16px; width: 112px; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.pc-hero .row1 { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pc-hero .chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 11px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 11px; font-weight: 600;
}
.pc-hero .chip i { width: 5px; height: 5px; border-radius: 50%; background: #7CF0A9; }
.pc-hero .lv { display: inline-flex; align-items: center; gap: 4px; opacity: .92; }
.pc-hero .no { margin-left: auto; opacity: .86; font-family: var(--mono); font-size: 12px; }
.pc-hero .lb { position: relative; display: flex; justify-content: space-between; margin: 12px 0 10px; font-size: 13px; opacity: .88; }
.pc-hero .big { position: relative; display: flex; align-items: baseline; font-family: var(--num); font-weight: 700; font-size: 34px; line-height: 30px; }
.pc-hero .big .u { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; font-weight: 600; margin: 0 5px 0 3px; }
.pc-hero .sub { position: relative; font-size: 13px; opacity: .88; margin-top: 8px; }
.pc-hero .foot {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px;
}

.pc-pkg-card { padding: 12px 14px; }
.pc-pkg-card .k { display: block; font-size: 12px; color: var(--t3); }
.pc-pkg-card .v { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pc-pkg-card .n { font-size: 15px; font-weight: 600; color: var(--t1); }
.pc-tiles { display: flex; gap: 8px; }
.pc-tile { flex: 1; min-width: 0; padding: 11px 10px; display: flex; flex-direction: column; }
.pc-tile svg { width: 18px; height: 18px; color: var(--brand); }
.pc-tile .k { font-size: 11px; color: var(--t3); margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.pc-tile .v { font-size: 13px; font-weight: 600; color: var(--t1); margin-top: 2px; line-height: 18px; }
.pc-tile .s { font-size: 11px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-tile .s.link { color: var(--brand); }

/* 换电卡页精致实体 NFC 卡入口条 */
.nfc-entry-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
}
.nfc-entry-mini-card {
  width: 44px; height: 30px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, #E24448 0%, #CB2C30 60%, #9E1F24 100%);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; box-shadow: 0 3px 8px rgba(203, 44, 48, .22);
}
.nfc-entry-mini-card.is-empty {
  background: linear-gradient(135deg, #F6F7FA 0%, #E7EBF2 100%);
  border: 1px solid #D9DFE9; box-shadow: none;
}
.nfc-entry-mini-chip {
  width: 11px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, #F9E6B6, #D8AE5A);
}
.nfc-entry-mini-card.is-empty .nfc-entry-mini-chip { background: #CFD5E0; }
.nfc-entry-mini-wave { width: 13px; height: 13px; color: rgba(255, 255, 255, .92); }
.nfc-entry-mini-card.is-empty .nfc-entry-mini-wave { color: #8A93A2; }
.nfc-entry-tx { flex: 1; min-width: 0; }
.nfc-entry-title { font-size: 14px; font-weight: 600; color: var(--t1); line-height: 20px; }
.nfc-entry-sub { font-size: 12px; color: var(--t3); line-height: 17px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfc-entry-sub .mono { font-family: var(--mono); color: var(--t2); font-weight: 600; }
.nfc-entry-r { display: flex; align-items: center; gap: 4px; flex: none; }
.nfc-entry-r svg { width: 15px; height: 15px; color: var(--t4); }

.pc-member { display: flex; gap: 11px; align-items: center; padding: 12px 14px; }
.pc-member .mi {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #F7E3B5, #E2BE73); color: #6B4B12;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pc-member .tx { flex: 1; min-width: 0; }
.pc-member .b { display: block; font-size: 13px; font-weight: 600; color: var(--t1); }
.pc-member .s { display: block; font-size: 11px; color: var(--t3); }
.pc-mbar { position: relative; height: 6px; border-radius: 3px; background: #F1EBDD; margin: 6px 0 5px; }
.pc-mbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #E9C77E, #C9962E); }
.pc-mbar .knob { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #C9962E; margin-left: -6px; }

/* ===================== V2 精品实体 NFC 卡片系统（Apple Wallet 级质感） ===================== */
.nfc-card-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 20px 16px;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* 状态1：未绑定 · 银灰磨砂实体卡（干净高级，绝非廉价虚线框） */
.nfc-card-shell.is-silver {
  background: linear-gradient(140deg, #FFFFFF 0%, #F5F6F9 52%, #E8ECF3 100%);
  border: 1px solid #E1E5EE;
  color: var(--t1);
  box-shadow: 0 8px 24px rgba(24, 34, 52, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
}
/* 状态2：已绑定可拍卡 · 街鹿品牌红质感卡 */
.nfc-card-shell.is-brand {
  background: linear-gradient(135deg, #E34246 0%, #CB2C30 48%, #8F1B20 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(203, 44, 48, .26), inset 0 1px 0 rgba(255, 255, 255, .22);
}
/* 状态3：已绑定暂不可拍 · 钛灰石墨金属卡 */
.nfc-card-shell.is-graphite {
  background: linear-gradient(135deg, #4F5768 0%, #373E4D 52%, #242934 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(36, 41, 52, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
}
/* 斜向镜面柔光带 */
.nfc-card-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .04) 36%, transparent 36.5%, transparent 100%);
}
.nfc-card-shell.is-silver .nfc-card-sheen {
  background: linear-gradient(115deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .15) 42%, transparent 42.5%);
}
/* 右侧精雕 NFC 同心信号弧 SVG 纹理 */
.nfc-card-rings {
  position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  width: 175px; height: 175px; pointer-events: none; opacity: .16;
}
.nfc-card-shell.is-silver .nfc-card-rings { opacity: .07; color: #181818; }
.nfc-card-shell.is-brand .nfc-card-rings,
.nfc-card-shell.is-graphite .nfc-card-rings { color: #fff; }

.nfc-card-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.nfc-card-brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
}
.nfc-card-brand img { width: 20px; height: 20px; object-fit: contain; }
.nfc-card-shell.is-brand .nfc-card-brand img,
.nfc-card-shell.is-graphite .nfc-card-brand img {
  background: rgba(255, 255, 255, .94); border-radius: 50%; padding: 2px;
}

.nfc-glass-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: 11px; font-weight: 600;
}
.nfc-glass-pill i { width: 6px; height: 6px; border-radius: 50%; }
.nfc-glass-pill.is-live { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(4px); }
.nfc-glass-pill.is-live i { background: #6FF2A3; }
.nfc-glass-pill.is-idle { background: rgba(24, 24, 24, .06); color: var(--t3); }
.nfc-glass-pill.is-idle i { background: var(--t4); }
.nfc-glass-pill.is-warn { background: #FDF4E3; color: #9A630C; }
.nfc-glass-pill.is-warn i { background: #E59A13; }
.nfc-glass-pill.is-err { background: #FDECEE; color: #C72C3D; }
.nfc-glass-pill.is-err i { background: #D73547; }

.nfc-card-center {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 14px;
}
.nfc-svg-chip { width: 42px; height: 31px; flex: none; display: block; }
.nfc-card-num-block { flex: 1; min-width: 0; }
.nfc-card-num-k { font-size: 11px; opacity: .72; display: block; letter-spacing: .3px; }
.nfc-card-num-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.nfc-card-num {
  font-family: var(--mono); font-size: 23px; font-weight: 700;
  letter-spacing: 1.6px; line-height: 26px;
}
.nfc-card-num.is-placeholder {
  font-size: 18px; font-weight: 600; letter-spacing: 1.2px; color: #9BA3B0;
}
.nfc-copy-chip {
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 8px; border-radius: 11px;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 11px; font-weight: 500; border: 0; cursor: pointer;
}
.nfc-copy-chip:hover { background: rgba(255, 255, 255, .28); }
.nfc-copy-chip svg { width: 11px; height: 11px; }

.nfc-card-bottom {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px; opacity: .88;
}
.nfc-card-shell.is-silver .nfc-card-bottom {
  border-top-color: rgba(24, 34, 52, .08); color: var(--t3); opacity: 1;
}
.nfc-card-bottom .mono { font-family: var(--num); }

/* ===================== V2 未绑定操作卡（清爽呼吸感） ===================== */
.v2-bind-card {
  padding: 18px 16px 18px;
}
.v2-bind-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
}
.v2-bind-head b { font-size: 16px; font-weight: 600; color: var(--t1); }
.v2-bind-head span { font-size: 12px; color: var(--t3); }

/* 精致 48px 复合输入框：冷灰柔底 + 右侧独立浅红扫码微按钮 */
.v2-input-box {
  height: 48px; border-radius: 10px;
  background: #F5F6F9; border: 1.5px solid #EAECEF;
  padding: 0 6px 0 12px; display: flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.v2-input-box.is-focus {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(203, 44, 48, .08);
}
.v2-input-box.is-err {
  background: #FFFBFB; border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(215, 53, 71, .08);
}
.v2-input-lead { width: 18px; height: 18px; color: var(--t4); flex: none; }
.v2-input-box.is-focus .v2-input-lead { color: var(--brand); }
.v2-input-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 1px; color: var(--t1);
}
.v2-input-box input::placeholder {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--t4);
}
.v2-input-clear {
  width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: #D4D8E0; color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.v2-scan-pill {
  height: 34px; padding: 0 11px; border-radius: 8px; border: 0;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; cursor: pointer; flex: none;
}
.v2-scan-pill:hover { background: #F7D8DC; }
.v2-scan-pill svg { width: 15px; height: 15px; }

.v2-input-help {
  margin: 8px 2px 16px; font-size: 12px; line-height: 17px; color: var(--t3);
  display: flex; align-items: center; gap: 5px; min-height: 18px;
}
.v2-input-help.is-err { color: var(--err); font-weight: 500; }
.v2-input-help svg { width: 14px; height: 14px; flex: none; }

/* ===================== V2 三步指引（清爽舒展） ===================== */
.v2-howto-card { padding: 16px 14px 16px; }
.v2-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 14px;
}
.v2-sec-title b { font-size: 15px; font-weight: 600; color: var(--t1); }
.v2-sec-title span { font-size: 12px; color: var(--t3); }
.v2-steps { display: flex; align-items: flex-start; position: relative; }
.v2-step { flex: 1; text-align: center; position: relative; padding: 0 4px; }
.v2-step:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 26px); right: calc(-50% + 26px);
  border-top: 1.5px dashed #E8B8BA;
}
.v2-step-ic {
  width: 44px; height: 44px; border-radius: 13px; margin: 0 auto 9px;
  background: linear-gradient(145deg, #FFF3F4 0%, #FBE6E8 100%);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.v2-step-ic svg { width: 20px; height: 20px; }
.v2-step-no {
  position: absolute; right: -4px; top: -4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font: 700 10px/16px var(--num); text-align: center; box-shadow: 0 0 0 2px #fff;
}
.v2-step b { display: block; font-size: 13px; font-weight: 600; color: var(--t1); line-height: 18px; }
.v2-step small { display: block; font-size: 11px; color: var(--t3); line-height: 15px; margin-top: 2px; }

/* 底部无卡轻提示区（呼吸感关键！） */
.v2-foot-notes {
  margin: 14px 20px 0;
  font-size: 12px; line-height: 20px; color: var(--t3);
}
.v2-foot-notes p { position: relative; padding-left: 11px; margin-bottom: 3px; }
.v2-foot-notes p::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px;
  border-radius: 50%; background: #C2C7D0;
}
.v2-foot-notes b { color: var(--t2); font-weight: 500; }

/* ===================== V2 已绑定态：权益卡片 + 优雅操作列表 ===================== */
.v2-pkg-card { padding: 16px; }
.v2-pkg-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.v2-pkg-head b { font-size: 15px; font-weight: 600; color: var(--t1); }
.v2-pkg-box {
  background: #F7F8FA; border-radius: 12px; padding: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.v2-pkg-left { flex: 1; min-width: 0; }
.v2-pkg-name-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v2-pkg-name { font-size: 15px; font-weight: 600; color: var(--t1); line-height: 21px; }
.v2-pkg-meta { margin-top: 5px; font-size: 12px; color: var(--t3); line-height: 17px; }
.v2-pkg-right {
  flex: none; text-align: right; padding-left: 12px;
  border-left: 1px solid #E6E9EF;
}
.v2-pkg-days { font-family: var(--num); font-size: 24px; font-weight: 700; color: var(--t1); line-height: 26px; }
.v2-pkg-days small { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 600; margin-left: 2px; }
.v2-pkg-exp { font-size: 11px; color: var(--t3); margin-top: 3px; font-family: var(--num); }

.v2-tip-strip {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--ok-bg); color: #12613B;
  font-size: 12px; line-height: 18px; display: flex; align-items: flex-start; gap: 7px;
}
.v2-tip-strip svg { width: 15px; height: 15px; flex: none; margin-top: 1.5px; color: var(--ok); }

/* 优雅单行操作菜单卡（替代生硬的底部大红框按钮） */
.v2-menu-card { padding: 2px 16px; }
.v2-menu-row {
  display: flex; align-items: center; gap: 11px;
  min-height: 54px; padding: 12px 0; cursor: pointer;
}
.v2-menu-row + .v2-menu-row { border-top: 1px solid var(--line2); }
.v2-menu-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: #F4F5F8; color: var(--t2);
  display: flex; align-items: center; justify-content: center;
}
.v2-menu-ic.is-danger { background: var(--err-bg); color: var(--err); }
.v2-menu-ic svg { width: 16px; height: 16px; }
.v2-menu-tx { flex: 1; min-width: 0; }
.v2-menu-tx b { display: block; font-size: 14px; font-weight: 600; color: var(--t1); line-height: 20px; }
.v2-menu-tx b.is-danger { color: var(--err); }
.v2-menu-tx small { display: block; font-size: 12px; color: var(--t3); line-height: 16px; margin-top: 1px; }
.v2-menu-chev { width: 16px; height: 16px; color: var(--t4); flex: none; }

/* ===================== V2 未购套餐/到期/暂停 统一引导卡 ===================== */
.v2-empty-pkg {
  padding: 24px 18px 20px; text-align: center;
}
.v2-empty-badge {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  background: linear-gradient(145deg, #FEF6E7 0%, #FDEBC8 100%);
  color: #B46A0E; display: flex; align-items: center; justify-content: center;
}
.v2-empty-badge.is-err { background: linear-gradient(145deg, #FFF1F2 0%, #FCDDE0 100%); color: var(--err); }
.v2-empty-badge svg { width: 26px; height: 26px; }
.v2-empty-pkg h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--t1); }
.v2-empty-pkg p { margin: 6px auto 18px; max-width: 270px; font-size: 13px; line-height: 20px; color: var(--t3); }

/* ===================== 弹窗与 Toast ===================== */
.r-mask {
  position: absolute; inset: 0; background: rgba(15, 19, 28, .54);
  backdrop-filter: blur(2px); z-index: 25;
  display: flex; align-items: flex-end;
}
.r-mask.is-center { align-items: center; justify-content: center; padding: 0 30px; }
.r-dlg {
  width: 100%; background: #fff; border-radius: 18px;
  padding: 26px 20px 20px; text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .18);
}
.r-dlg__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.r-dlg__icon.is-red { background: linear-gradient(145deg, #FFF0F1, #FAD6DA); color: var(--brand); }
.r-dlg__icon.is-warn { background: linear-gradient(145deg, #FFF8EA, #FDE8C1); color: var(--warn); }
.r-dlg__icon svg { width: 26px; height: 26px; }
.r-dlg h4 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--t1); }
.r-dlg__list {
  text-align: left; background: #F7F8FA; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; line-height: 21px; color: var(--t2);
}
.r-dlg__list p { position: relative; padding-left: 11px; margin-bottom: 5px; }
.r-dlg__list p:last-child { margin-bottom: 0; }
.r-dlg__list p::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.r-dlg__list b { color: var(--t1); font-weight: 600; }
.r-dlg__btns { display: flex; gap: 10px; margin-top: 20px; }
.r-dlg__btns .pk-btn { flex: 1; height: 44px; font-size: 15px; padding: 0; }

.r-toast {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  z-index: 40; max-width: 290px; padding: 10px 18px; border-radius: 12px;
  background: rgba(20, 22, 26, .88); color: #fff; font-size: 13px; line-height: 1.5;
  text-align: center; pointer-events: none;
}

/* ===================== 真实「换电记录」页复刻 ===================== */
.pr-wrap { padding: 14px 16px 24px; }
.pr-item {
  background: #fff; border-radius: 12px; padding: 14px 15px; margin-bottom: 12px;
}
.pr-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
.pr-order-no { font-size: 14px; font-weight: 600; color: #111; font-family: var(--num); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-status { flex: none; height: 24px; line-height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.pr-status.s0 { color: #168550; background: #E8F7EE; }
.pr-status.s3 { color: #555B65; background: #F0F1F3; }
.pr-divider { height: 1px; background: var(--line2); }
.pr-body { padding-top: 12px; }
.pr-row { display: flex; align-items: center; font-size: 13px; line-height: 22px; color: #50545B; margin-bottom: 4px; }
.pr-row:last-child { margin-bottom: 0; }
.pr-label { flex: none; margin-right: 6px; color: var(--t3); }
.pr-val { flex: 1; min-width: 0; color: var(--t2); word-break: break-all; }
.pr-val.mono { font-family: var(--mono); font-size: 12px; }
.pr-nfc-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600;
}
.pr-nfc-tag svg { width: 12px; height: 12px; }
.pr-scan-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 4px; background: #F1F2F4; color: var(--t3); font-size: 11px; font-weight: 500;
}
.pr-nomore { text-align: center; font-size: 12px; color: var(--t4); margin-top: 16px; }

/* 附加对比迷你卡（画板右侧使用） */
.mini-compare {
  border: 1px solid #E5E7EB; border-radius: 12px; background: #F6F7F9;
  padding: 12px; margin-top: 10px;
}
.mini-compare-cap {
  font-size: 11px; font-weight: 600; color: var(--mark); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.mini-compare-cap span {
  background: var(--mark); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 10px;
}
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #374151; background: #F7F8FA;
  border: 1px solid #E5E7EB; border-radius: 6px; padding: 3px 8px;
  font-family: var(--mono);
}
.spec-chip i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .1); }

/* 右侧画板紧凑状态对照卡（用于 N06 到期/暂停态展示） */
.v2-mini-state {
  background: #fff; border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
  border: 1px solid #ECEEF2;
}
.v2-mini-state__row { display: flex; align-items: flex-start; gap: 10px; }
.v2-mini-state__ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.v2-mini-state__ic.is-err { background: var(--err-bg); color: var(--err); }
.v2-mini-state__ic.is-warn { background: var(--warn-bg); color: var(--warn); }
.v2-mini-state__ic svg { width: 17px; height: 17px; }
.v2-mini-state__tx b { display: block; font-size: 13px; color: var(--t1); line-height: 19px; }
.v2-mini-state__tx small { display: block; font-size: 12px; color: var(--t3); line-height: 17px; margin-top: 2px; }
