/* 用户端样式 - 绿色主题 */
.user-body { background: #F5F7F6; min-height: 100vh; }
.user-topbar { background: #FFFFFF; border-bottom: 2px solid #00A650; position: sticky; top: 0; z-index: 100; }
.user-topbar-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 8px 0px; min-height: 52px; }
.user-main { max-width: 480px; margin: 0 auto; padding: 16px; min-height: calc(100vh - 140px); }
.user-footer { max-width: 480px; margin: 0 auto; text-align: center; color: #999; font-size: 12px; padding: 16px; }

.page-title { font-size: 18px; font-weight: bold; text-align: center; margin: 4px 0 16px; }
.card { background: #fff; border-radius: 10px; padding: 20px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 12px; }
.card-title { font-weight: bold; font-size: 15px; margin-bottom: 12px; color: #333; }

.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; }
.form-item input { width: 100%; padding: 11px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; background: #fafafa; }
.form-item input:focus { border-color: #00A650; background: #fff; outline: none; }
.form-item input[readonly] { background: #f2f2f2; color: #666; }

.btn { display: inline-block; width: 100%; padding: 13px 0; border: none; border-radius: 24px; font-size: 16px; cursor: pointer; text-align: center; color: #fff; background: linear-gradient(135deg, #00A650, #008842); box-sizing: border-box; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-plain { background: #fff; color: #00A650; border: 1px solid #00A650; }
.btn-sm { width: auto; padding: 8px 22px; font-size: 14px; border-radius: 18px; }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

.error-tip { display: none; color: #FF4D4F; background: #FDECEC; border: 1px solid #f5c6c6; border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.error-tip.show { display: block; }
.toast-tip { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.9); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 999; opacity: 0; transition: all .25s; pointer-events: none; max-width: 80%; text-align: center; }
.toast-tip.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.empty-tip { text-align: center; color: #999; padding: 20px 0; font-size: 13px; }

/* 首页 */
.user-hero { text-align: center; padding: 26px 8px 18px; }
.user-hero svg { margin: 0 auto; }
.user-hero h1 { font-size: 22px; margin: 14px 0 8px; }
.user-hero p { color: #666; font-size: 14px; line-height: 1.7; margin: 0; }
.user-entry { display: flex; gap: 12px; margin: 6px 0 20px; }
.entry-btn { flex: 1; text-align: center; padding: 14px 0; border-radius: 8px; font-size: 16px; }
.entry-btn-primary { background: linear-gradient(135deg, #00A650, #008842); color: #fff; box-shadow: 0 4px 12px rgba(0,166,80,.3); }
.entry-btn-plain { background: #fff; color: #00A650; border: 1px solid #dcdcdc; }
.user-features { display: flex; gap: 10px; margin-top: 8px; }
.feature-item { flex: 1; background: #fff; border-radius: 8px; padding: 14px 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.feature-item i { font-style: normal; font-size: 22px; display: block; }
.feature-item b { display: block; font-size: 13px; margin: 6px 0 2px; }
.feature-item span { font-size: 11px; color: #999; }

/* 号码选择 */
.num-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.num-item { width: calc(33.333% - 7px); background: #f7f8fa; border: 1px solid #e5e6eb; border-radius: 6px; padding: 10px 0; text-align: center; font-size: 14px; cursor: pointer; }
.num-item.active { border-color: #00A650; color: #00A650; background: #E8F5E9; }
.num-tip { color: #ff9a00; font-size: 12px; margin: 0 0 10px; }
.num-tip.warn { color: #FF4D4F; }

/* 选号页 */
.choose-wrap { padding-bottom: 96px; }
.choose-tip { color: #999; font-size: 13px; text-align: center; margin-bottom: 14px; }
.choose-footer { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 8px rgba(0,0,0,.06); z-index: 99; }
.choose-footer .btn { max-width: 448px; margin: 0 auto; display: block; }

/* 上传 */
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-item { width: 92px; height: 92px; border: 1px dashed #d0d0d0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; cursor: pointer; position: relative; overflow: hidden; background: #fafafa; text-align: center; }
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .del { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; width: 20px; height: 20px; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; border-radius: 0 0 0 6px; }
/* 弹窗 */
.mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 100; display: none; }
.mask.show { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; z-index: 101; transform: translateY(100%); transition: transform .25s; max-height: 82%; display: flex; flex-direction: column; }
.sheet.show { transform: translateY(0); }
.sheet-title { padding: 16px; font-size: 17px; font-weight: bold; text-align: center; border-bottom: 1px solid #f5f5f5; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.sheet-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #f5f5f5; }

/* 成功页 */
.success-wrap { text-align: center; padding: 40px 16px; background: #fff; border-radius: 10px; }
.success-check { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: #00b140; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.success-number { font-size: 20px; color: #00A650; font-weight: bold; margin: 8px 0; }

/* 时间线 / 步骤条 */
.status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.status-head span:first-child { color: #999; font-size: 13px; }
.status-badge { padding: 2px 10px; border-radius: 12px; font-size: 13px; color: #fff; background: #00A650; }
.status-badge.badge-green { background: #00b140; }
.status-info p { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; }
.status-info p span { color: #999; }
.status-info p b { color: #333; font-weight: normal; }
.timeline { padding: 4px 0; }
.tl-node { display: flex; gap: 10px; position: relative; padding-bottom: 18px; }
.tl-node::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: #e5e6eb; }
.tl-node:last-child::before { display: none; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: #e5e6eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; z-index: 1; }
.tl-dot i { font-style: normal; }
.tl-node.current .tl-dot { background: #00A650; }
.tl-node.done .tl-dot { background: #00b140; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; justify-content: space-between; }
.tl-head b { font-size: 15px; }
.tl-head span { color: #999; font-size: 12px; }
.tl-op { color: #999; font-size: 12px; margin-top: 2px; }
.tl-remark { margin-top: 6px; background: #f7f8fa; border-radius: 4px; padding: 6px 10px; font-size: 13px; color: #333; word-break: break-all; }
.tl-copy { color: #00A650; cursor: pointer; }
.tl-copy i { font-style: normal; font-size: 12px; border: 1px solid #00A650; border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.reject-box { text-align: center; padding: 16px 0; background: #FDECEC; border-radius: 8px; margin-bottom: 8px; }
.reject-box b { color: #FF4D4F; }
.reject-box p { color: #666; font-size: 13px; margin: 6px 0 0; }
@media (max-width: 380px) { .user-features { flex-direction: column; } }
