/* Clover Compact 读卡器（共享）—— 机身 300 × 600，按实拍比例。类名全部 cc- 前缀。 */
.cc-dev { position: relative; width: 300px; height: 600px; font-family: Inter, system-ui, "Helvetica Neue", Arial, sans-serif; color: #2B2F36; user-select: none; }
.cc-top { position: absolute; left: 14px; right: 14px; top: 0; height: 368px; background: #F4F4F2; border-radius: 34px 34px 18px 18px;
  box-shadow: inset 0 0 0 1px #DDDDD8, 0 10px 24px rgba(10, 22, 41, .14); }
.cc-cam { position: absolute; left: 50%; top: 14px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #2B2F36; }
.cc-scr { position: absolute; left: 22px; right: 22px; top: 34px; height: 262px; background: #FBFBFA; border-radius: 6px; box-shadow: 0 0 0 4px #E9E9E5; overflow: hidden; }
.cc-logo { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 6px; font-size: 25px; font-weight: 700; letter-spacing: -.5px; color: #3A3D42; }
.cc-leaf { position: relative; width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cc-leaf i { background: #3A3D42; border-radius: 50% 50% 50% 0; }
.cc-leaf i:nth-child(2) { border-radius: 50% 50% 0 50%; } .cc-leaf i:nth-child(3) { border-radius: 50% 0 50% 50%; } .cc-leaf i:nth-child(4) { border-radius: 0 50% 50% 50%; }
.cc-pad { position: absolute; left: 0; right: 0; top: 352px; bottom: 0; background: #EFEFEC; border-radius: 22px 22px 26px 26px; box-shadow: inset 0 0 0 1px #DADAD5, 0 10px 24px rgba(10, 22, 41, .14); padding: 34px 22px 18px; }
.cc-pad::before { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 30px; background: #F7F7F5; border-radius: 0 0 14px 14px; box-shadow: 0 2px 0 #DCDCD7; }
.cc-keys { height: 100%; background: #16181C; border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr 1.5fr; gap: 6px 10px; }
.cc-key { display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; border-radius: 8px; }
.cc-key b { font-size: 30px; font-weight: 700; } .cc-key small { font-size: 11px; font-weight: 600; }
.cc-red { background: #7A1015; } .cc-yellow { background: #B5741A; height: 30px; width: 70%; } .cc-green { background: #2B7A2A; }
.cc-red, .cc-green { border-radius: 10px; transition: filter .15s, transform .15s; }
.cc-key.down { filter: brightness(1.35); transform: scale(.95); }
.cc-zero { display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: #fff; padding: 2px 0; }
.cc-zero b { font-size: 30px; }

/* ---------- 屏幕 ---------- */
.cc-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; animation: cc-in .25s ease; }
.cc-msg { font-size: 15px; font-weight: 500; color: #3A3D42; letter-spacing: .2px; }
.cc-lab { font-size: 14px; color: #5B5F66; } .cc-big { font-size: 34px; font-weight: 600; } .cc-big.sm { font-size: 24px; }
.cc-ok { margin-top: 6px; padding: 8px 34px; border-radius: 4px; background: #2E8B3E; color: #fff; font-size: 15px; font-weight: 600; }
.cc-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #D9EFD8; border-top-color: #3AA846; border-right-color: #3AA846; animation: cc-rot .9s linear infinite; }
.cc-check { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #2A3CC8; display: flex; align-items: center; justify-content: center; animation: cc-pop .3s ease; }
.cc-cp { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #2A44A8; color: #fff; padding: 3px 9px 2px; border-radius: 2px; font-size: 17px; line-height: 1; white-space: nowrap; display: flex; flex-direction: column; align-items: center; }
.cc-cp b { font-weight: 800; display: inline; } .cc-cp small { font-size: 5px; letter-spacing: .3px; opacity: .85; }
.cc-cp.big { position: static; transform: none; font-size: 24px; }
.cc-tip { position: absolute; inset: 0; padding: 0 8px; animation: cc-in .25s ease; }
.cc-tot { display: flex; align-items: center; gap: 10px; height: 62px; border-bottom: 1px solid #E3E3DF; padding: 0 4px; }
.cc-shield { width: 22px; height: 26px; }
.cc-tot > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.cc-tot small { font-size: 12px; color: #4B4F55; } .cc-tot b { font-size: 18px; font-weight: 600; }
.cc-next { width: 40px; height: 40px; background: #C9CACD; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.cc-next.on { background: #2E8B3E; }
.cc-q { font-size: 13px; padding: 10px 4px 7px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cc-tb { height: 44px; border: 1px solid #C6C7C3; border-radius: 2px; background: #FDFDFC; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cc-tb b { font-size: 12px; font-weight: 500; } .cc-tb small { font-size: 10px; color: #55595F; }
.cc-tb.on { border-color: #2E8B3E; box-shadow: inset 0 0 0 2px #2E8B3E; background: #F1F8F0; }

/* ---------- 小票（从机身顶部出纸，示意） ---------- */
.cc-paper { position: absolute; left: 60px; right: 60px; bottom: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: height .1s linear; }
.cc-slip { background: #fff; border: 1px solid #E5E5E0; border-bottom: 0; padding: 10px 10px 12px; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 9.5px; line-height: 1.45; color: #222; display: flex; flex-direction: column; box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
.cc-slip small { font-size: 9px; color: #333; } .cc-rs { text-align: center; font-size: 11px; }
.cc-rr { display: flex; justify-content: space-between; gap: 6px; } .cc-rr span:last-child { text-align: right; word-break: break-all; }
.cc-rr.bold { font-weight: 700; } .cc-rr.hl span:last-child { background: #FFF3BF; }

@keyframes cc-rot { to { transform: rotate(360deg); } }
@keyframes cc-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 刷卡页（实拍 IMG_7943） ---------- */
.cc-tapv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; animation: cc-in .25s ease; }
.cc-ttop { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid #E3E3DF; font-size: 13px; }
.cc-ttop b { font-weight: 600; } .cc-shc { width: 16px; height: 16px; }
.cc-oval { margin-top: 14px; width: 132px; height: 70px; border: 2px solid #1F2226; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cc-dash { display: flex; gap: 10px; margin-top: 12px; } .cc-dash i { width: 14px; height: 3px; background: #2B2F36; } .cc-dash i.on { background: #3AA846; animation: cc-blink 1.2s ease infinite; }
.cc-ins { margin-top: 12px; font-size: 15px; font-weight: 600; color: #2B2F36; }
.cc-sur { margin-top: 5px; font-size: 11.5px; color: #3A3D42; }
.cc-priv { position: absolute; left: 10px; bottom: 7px; font-size: 10px; color: #7A7E85; }
@keyframes cc-blink { 50% { opacity: .35; } }
