/* 前台移动端样式 */
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}
.phone { max-width: 640px; margin: 0 auto; background: #fff; min-height: 100vh; }
.content { padding: 16px 16px 30px; }
.foot { text-align: center; color: #9ca3af; font-size: 12px; padding: 16px 0 24px; }
.nav {
    display: flex; align-items: center; height: 48px; padding: 0 12px;
    border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top: 0; z-index: 10;
}
.nav .back { font-size: 26px; color: #6b7280; text-decoration: none; width: 32px; }
.nav span { font-weight: 600; }
a { color: #2563eb; }

/* 首页 */
.f-home h1 { font-size: 20px; margin: 8px 0 4px; }
.f-home .muted { color: #6b7280; font-size: 13px; }
.f-empty { padding: 50px 0; text-align: center; color: #9ca3af; }
.f-card {
    display: block; margin-top: 14px; padding: 14px 16px; border-radius: 12px;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; color: inherit;
}
.f-card-title { font-size: 16px; font-weight: 600; }
.f-card-desc { color: #6b7280; font-size: 13px; margin-top: 4px; }
.f-card-meta { margin-top: 10px; display: flex; gap: 10px; font-size: 12px; color: #6b7280; align-items: center; }
.f-go { margin-left: auto; color: #2563eb; }

/* 表单 */
.f-header h1 { font-size: 20px; margin: 6px 0 8px; }
.f-desc { color: #4b5563; font-size: 14px; margin: 0 0 10px; }
.f-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.f-tag {
    background: #eff6ff; color: #1d4ed8; border-radius: 20px; padding: 4px 10px; font-size: 12px;
}
.f-tag-warn { background: #fff7ed; color: #c2410c; }

.f-item { padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.f-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { color: #dc2626; }
.f-hint { margin: 0 0 8px; color: #9ca3af; font-size: 12px; }

.f-form input[type="text"], .f-form input[type="tel"], .f-form input[type="number"],
.f-form input[type="date"], .f-form input[type="datetime-local"],
.f-form textarea, .f-form select {
    width: 100%; padding: 11px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 15px; background: #fff; outline: none;
}
.f-form input:focus, .f-form textarea:focus, .f-form select:focus { border-color: #2563eb; }
.f-form textarea { resize: vertical; }

.f-options { display: flex; flex-direction: column; gap: 8px; }
.f-opt {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px;
}
.f-opt input { width: 18px; height: 18px; accent-color: #2563eb; }

.f-upload-btn {
    width: 100%; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px;
    background: #f9fafb; color: #475569; font-size: 14px; cursor: pointer;
}
.f-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.f-preview img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb;
}

.f-error {
    margin: 14px 0 0; padding: 10px 12px; background: #fef2f2; color: #b91c1c;
    border-radius: 8px; font-size: 14px;
}
.f-submit {
    margin-top: 22px; width: 100%; padding: 14px; border: 0; border-radius: 10px;
    background: #2563eb; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.f-submit:disabled { background: #93c5fd; }
.f-foot { text-align: center; color: #9ca3af; font-size: 12px; margin-top: 10px; }

/* 关闭页 */
.f-closed { text-align: center; padding: 70px 20px; }
.f-closed-icon { font-size: 44px; }
.f-closed h2 { font-size: 18px; margin: 12px 0 6px; }

/* 凭证 */
.ticket-head { text-align: center; padding: 18px 0 10px; background: #2563eb; color: #fff; border-radius: 12px; }
.ticket-head.warn { background: #ea580c; }
.ticket-head h2 { margin: 0; font-size: 19px; }
.ticket-head p { margin: 4px 0 0; opacity: .9; font-size: 13px; }
.ticket-notice {
    margin: 12px 0; padding: 10px 12px; background: #fff7ed; color: #c2410c;
    border-radius: 8px; font-size: 13px;
}
.ticket-qr { text-align: center; margin: 18px 0; }
.ticket-qr canvas, .ticket-qr img { width: 200px; height: 200px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 12px; }
.ticket-info { border-top: 1px solid #f3f4f6; }
.ticket-info .row {
    display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px;
}
.ticket-info .row span { color: #6b7280; flex: 0 0 40%; }
.ticket-info .row b { text-align: right; word-break: break-all; }
.ticket-info .row.signed b { color: #16a34a; }
.center { text-align: center; }
.btn-block { display: block; margin-top: 16px; padding: 12px; border-radius: 10px; background: #2563eb; color: #fff; text-align: center; text-decoration: none; }

/* 错误页 */
.public-page { text-align: center; padding: 70px 20px; }
.muted { color: #6b7280; }
.small { font-size: 12px; }
