/* ========================================
   打卡位置核实未通过 —— 行业专业弹窗样式（v3 Premium）
   设计语言：克制 · 精致 · 可信
   参考：微信/支付宝/美团 级别弹窗美学
   - 居中卡片，柔和毛玻璃遮罩
   - 右上角 X 关闭按钮（精致圆形）
   - 顶部状态徽标 + 主图标（单次舒缓脉冲）
   - 数据卡：距离 / 限值 / 景点（信息表式呈现）
   - 反馈类型 chips
   - 重新打卡 / 打卡反馈 双按钮（主次分明）
   ======================================== */

/* ---------- 遮罩 ---------- */
.checkin-fail-overlay {
    position: absolute;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 12, 10, 0.46);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    animation: cfMaskIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 28px 22px;
    box-sizing: border-box;
}
@keyframes cfMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfMaskOut { from { opacity: 1; } to { opacity: 0; } }
.checkin-fail-overlay.closing { animation: cfMaskOut 0.18s ease forwards; }

/* ---------- 卡片 ---------- */
.checkin-fail-card {
    width: 100%;
    max-width: 326px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 30px 70px -20px rgba(120, 20, 15, 0.45),
        0 8px 24px -8px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(196, 30, 58, 0.04);
    overflow: hidden;
    position: relative;
    animation: cfCardIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cfCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cfCardOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.97); }
}
.checkin-fail-overlay.closing .checkin-fail-card {
    animation: cfCardOut 0.18s ease forwards;
}

/* 顶部细色带 —— 品牌识别 */
.checkin-fail-card .cf-band {
    height: 4px;
    background: linear-gradient(90deg, #8E1416 0%, #C41E3A 50%, #E8384F 100%);
}

/* ---------- 右上角 X 关闭按钮（精致） ---------- */
.checkin-fail-card .cf-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(60, 40, 36, 0.06);
    border: none;
    color: #8a7a74;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.checkin-fail-card .cf-close:hover {
    background: rgba(196, 30, 58, 0.08);
    color: #C41E3A;
}
.checkin-fail-card .cf-close:active {
    transform: scale(0.86);
    background: rgba(196, 30, 58, 0.14);
    color: #AE100D;
}

/* ---------- 顶部状态行 ---------- */
.checkin-fail-card .cf-radar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 0 14px;
}
.cf-radar-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 舒缓单次脉冲环（克制，不喧宾夺主） */
.cf-radar-icon .cf-radar-ring {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid #C41E3A;
    opacity: 0;
}
.cf-radar-icon .cf-radar-ring.r1 {
    animation: cfRadarPulse 2.4s ease-out infinite;
}
.cf-radar-icon .cf-radar-ring.r2 {
    animation: cfRadarPulse 2.4s ease-out infinite 1.2s;
}
.cf-radar-icon .cf-radar-core {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 16px rgba(196, 30, 58, 0.38),
        0 0 0 6px rgba(196, 30, 58, 0.06);
    z-index: 2;
}
.cf-radar-icon .cf-radar-core i {
    color: #fff;
    font-size: 20px;
}
@keyframes cfRadarPulse {
    0%   { transform: scale(0.55); opacity: 0.55; }
    70%  { opacity: 0.12; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- 状态徽标（eyebrow） ---------- */
.checkin-fail-card .cf-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #AE100D;
    letter-spacing: 1.2px;
    margin: 0 0 7px;
    text-transform: none;
}
.checkin-fail-card .cf-eyebrow .cf-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.14);
    animation: cfDotBlink 1.6s ease-in-out infinite;
}
@keyframes cfDotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ---------- 标题与说明 ---------- */
.checkin-fail-card .cf-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1f1411;
    letter-spacing: 0.3px;
    margin: 0 0 6px;
    padding: 0 44px;
    line-height: 1.35;
}
.checkin-fail-card .cf-subtitle {
    text-align: center;
    font-size: 12.5px;
    color: #8c7a73;
    line-height: 1.6;
    padding: 0 30px;
    margin: 0 0 18px;
}

/* ---------- 距离数据卡（信息表式） ---------- */
.checkin-fail-card .cf-distance {
    margin: 0 20px 16px;
    background: #FBF6F4;
    border: 1px solid #F0E4DE;
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
}
.cf-distance .cf-dist-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.24);
}
.cf-distance .cf-dist-icon i {
    color: #fff;
    font-size: 15px;
}
.cf-distance .cf-dist-text {
    flex: 1;
    min-width: 0;
}
.cf-distance .cf-dist-label {
    font-size: 10.5px;
    color: #9a8a82;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cf-distance .cf-dist-value {
    font-size: 16px;
    font-weight: 700;
    color: #AE100D;
    line-height: 1.1;
    font-feature-settings: "tnum";
}
.cf-distance .cf-dist-value .cf-dist-unit {
    font-size: 11px;
    font-weight: 500;
    color: #9a8a82;
    margin-left: 2px;
}
.cf-distance .cf-allow {
    font-size: 10px;
    color: #4a7a5e;
    background: #E9F4ED;
    border: 1px solid #D6EBDD;
    border-radius: 7px;
    padding: 4px 8px;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
}

/* ---------- 反馈类型 ---------- */
.checkin-fail-card .cf-feedback {
    margin: 0 20px 12px;
}
.checkin-fail-card .cf-feedback-hint {
    font-size: 11.5px;
    color: #6b5b54;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}
.checkin-fail-card .cf-feedback-hint i {
    color: #C41E3A;
    font-size: 11px;
    flex-shrink: 0;
}
.checkin-fail-card .cf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.checkin-fail-card .cf-chip {
    font-size: 11.5px;
    color: #5a463f;
    background: #FAF5F3;
    border: 1px solid #ECDFD9;
    border-radius: 16px;
    padding: 7px 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    line-height: 1.2;
}
.checkin-fail-card .cf-chip:active { transform: scale(0.95); }
.checkin-fail-card .cf-chip.active {
    color: #fff;
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    border-color: transparent;
    box-shadow: 0 4px 11px rgba(196, 30, 58, 0.3);
}

/* ---------- 按钮组 ---------- */
.checkin-fail-card .cf-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px 20px;
}
.checkin-fail-card .cf-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
}
.checkin-fail-card .cf-btn:active { transform: scale(0.97); }
.checkin-fail-card .cf-btn-secondary {
    background: #fff;
    color: #AE100D;
    border: 1.5px solid #E8B3AC;
}
.checkin-fail-card .cf-btn-secondary:active {
    background: #FBF1EF;
}
.checkin-fail-card .cf-btn-primary {
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.32);
}
.checkin-fail-card .cf-btn-primary:active {
    box-shadow: 0 3px 9px rgba(196, 30, 58, 0.28);
}
.checkin-fail-card .cf-btn i { font-size: 13px; }

/* ---------- 反馈提交中 ---------- */
.checkin-fail-card .cf-submitting {
    padding: 38px 22px 42px;
    text-align: center;
}
.checkin-fail-card .cf-submitting .cf-spin {
    width: 40px;
    height: 40px;
    border: 3px solid #F2DDD7;
    border-top-color: #AE100D;
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: cfSpin 0.8s linear infinite;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }
.checkin-fail-card .cf-submitting .cf-spin-text {
    font-size: 13px;
    color: #6b5b54;
    letter-spacing: 0.3px;
}

/* ---------- 反馈提交成功 ---------- */
.checkin-fail-card .cf-done {
    padding: 38px 22px 36px;
    text-align: center;
}
.checkin-fail-card .cf-done .cf-done-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow:
        0 8px 20px rgba(196, 30, 58, 0.32),
        0 0 0 6px rgba(196, 30, 58, 0.06);
    animation: cfDonePop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cfDonePop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.checkin-fail-card .cf-done .cf-done-icon i {
    color: #fff;
    font-size: 25px;
}
.checkin-fail-card .cf-done .cf-done-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f1411;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}
.checkin-fail-card .cf-done .cf-done-text {
    font-size: 12.5px;
    color: #8c7a73;
    line-height: 1.65;
    padding: 0 14px;
}
.checkin-fail-card .cf-done .cf-done-btn {
    margin-top: 20px;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #8E1416 0%, #C41E3A 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.28);
}
.checkin-fail-card .cf-done .cf-done-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 9px rgba(196, 30, 58, 0.24);
}
