* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f2f3f5; color: #333; font-size: 15px; }
a { text-decoration: none; color: inherit; }

.topbar { position: sticky; top: 0; background: #1f6feb; color: #fff; text-align: center; padding: 14px 12px; font-size: 17px; font-weight: 600; z-index: 10; }
.topbar .back { float: left; font-size: 16px; margin-top: -1px; }

.not-login { padding: 80px 20px; text-align: center; }
.not-login-box { background: #fff; padding: 40px 20px; border-radius: 10px; color: #999; font-size: 16px; }

/* 标签页 */
.tabs { display: flex; background: #fff; border-bottom: 1px solid #e5e5e5; }
.tabs .tab { flex: 1; text-align: center; padding: 13px 0; color: #666; cursor: pointer; }
.tabs .tab.active { color: #1f6feb; font-weight: 600; border-bottom: 2px solid #1f6feb; }

.tab-page { padding: 12px; }

/* 表单 */
.form-row { background: #fff; padding: 12px; border-radius: 8px; margin-bottom: 10px; }
.form-row label { display: block; color: #666; font-size: 13px; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=tel], .form-row input[type=date], .form-row textarea {
    width: 100%; border: 1px solid #e0e0e0; border-radius: 6px; padding: 9px 10px; font-size: 15px; background: #fafafa; color: #333;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #1f6feb; background: #fff; }
.form-row input[readonly] { color: #999; }
.field-value { font-size: 15px; color: #1f6feb; padding: 9px 0; }
.radio-group { display: flex; gap: 24px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #333; margin: 0; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { flex: 1; }
.range span { color: #999; }

.upload-box { border: 1px dashed #bbb; border-radius: 8px; padding: 16px; text-align: center; color: #999; cursor: pointer; background: #fafafa; }
.upload-box img { max-width: 100%; max-height: 240px; border-radius: 6px; display: block; margin: 0 auto; }

.btn-submit { display: block; width: 100%; background: #1f6feb; color: #fff; border: none; border-radius: 8px; padding: 14px; font-size: 17px; margin: 6px 0 30px; cursor: pointer; }
.btn-submit:disabled { background: #9db9e8; }

/* 列表 */
.list-card { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.lc-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.lc-line { color: #666; font-size: 13px; margin-bottom: 3px; }
.lc-status { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.empty { text-align: center; color: #999; padding: 40px 0; }

/* 状态徽章 */
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; }
.badge-ok { background: #e8f7ee; color: #1a9e4b; }
.badge-no { background: #fdeaea; color: #d64040; }
.badge-wait { background: #fff4e0; color: #d98b00; }

/* 详情页 */
.clock-bar { background: #d64040; color: #fff; text-align: center; font-size: 18px; font-weight: 700; padding: 10px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.panel { background: #fff; border-radius: 8px; padding: 12px; margin: 10px 12px; }
.panel h3 { font-size: 14px; color: #666; margin-bottom: 8px; border-left: 3px solid #1f6feb; padding-left: 8px; }
.detail-line { display: flex; padding: 6px 0; font-size: 15px; border-bottom: 1px solid #f2f2f2; }
.detail-line:last-child { border-bottom: none; }
.detail-line .k { width: 96px; color: #999; flex-shrink: 0; }
.detail-line .v { flex: 1; word-break: break-all; }

.time-big { background: #fff7e6; border: 1px solid #ffc069; border-radius: 8px; padding: 14px; margin: 10px 12px; }
.time-big .t-label { color: #d46b08; font-size: 13px; margin-bottom: 6px; }
.time-big .t-value { font-size: 22px; font-weight: 700; color: #d46b08; }

.status-big { display: flex; gap: 8px; margin: 4px 0 12px; }
.status-big .s-item { flex: 1; text-align: center; border-radius: 8px; padding: 12px 4px; font-size: 13px; }
.status-big .s-item .s-name { margin-bottom: 5px; color: #666; }
.status-big .s-item .s-val { font-size: 16px; font-weight: 700; }
.status-big .s-ok { background: #e8f7ee; color: #1a9e4b; }
.status-big .s-no { background: #fdeaea; color: #d64040; }
.status-big .s-wait { background: #fff4e0; color: #d98b00; }

.idcard-img { max-width: 100%; border-radius: 6px; border: 1px solid #eee; }

/* ---------- 自定义 Toast 提示 ---------- */
.toast-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 让点击穿透，不阻碍页面操作 */
}
.toast-box {
    background: rgba(0, 0, 0, 0.8); /* 如果喜欢纯白，可以改成 #fff */
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    max-width: 80%;
    text-align: center;
    animation: toastFadeIn 0.25s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast-box::before {
    content: '';
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.toast-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a9e4b'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}
.toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d64040'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}
.toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f6feb'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes toastFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}