:root {
  --bg: #f5f4f0;
  --surface: #fff;
  --text: #181816;
  --muted: #77756f;
  --line: #e8e5dd;
  --accent: #17a673;
  --accent-dark: #0d7e56;
  --danger: #d64242;
  --available: #16a765;
  --busy: #e2a412;
  --closed: #df3e3e;
  --shadow: 0 10px 30px rgba(30, 29, 25, .07);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
html { width: 100%; min-height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-y; }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
button, input, textarea, select { min-width: 0; font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) 18px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 26px; }
h2 { margin-bottom: 0; font-size: 18px; }
.round-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
main { max-width: 760px; margin: 0 auto; }
.membership-gate { max-width: 732px; margin: 0 auto 14px; padding: 15px; border: 1px solid #f0cd6b; border-radius: 18px; background: #fff7d9; box-shadow: var(--shadow); }
.membership-gate p { margin: 6px 0 0; color: #6e5a21; font-size: 13px; line-height: 1.5; }
.membership-gate .card-actions a { background: rgba(255,255,255,.75); }
.view { display: none; padding: 0 14px 22px; }
.view.active { display: block; }
.search-panel, .form-card { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.search-panel > input { width: 100%; height: 48px; border: 0; outline: 0; border-radius: 14px; padding: 0 15px; background: var(--bg); }
.filter-row, .two-columns { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 9px; }
.nearby-options { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.nearby-options select { width: auto; padding: 7px 10px; }
.two-columns { grid-template-columns: 1fr 1fr; margin-top: 0; }
input, textarea, select { width: 100%; color: var(--text); background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.primary { border: 0; border-radius: 12px; padding: 12px 18px; color: white; background: var(--accent); font-weight: 700; }
.primary:active { background: var(--accent-dark); }
.primary:disabled { cursor: wait; opacity: .65; }
.primary.full { width: 100%; min-height: 50px; margin-top: 8px; }
.compact { padding-inline: 16px; }
.section { margin-top: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.section-title span, .hint, small { color: var(--muted); font-size: 12px; }
.admin-collapsible > summary { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; cursor: pointer; list-style: none; }
.admin-collapsible > summary::-webkit-details-marker { display: none; }
.admin-collapsible > summary::after { content: "⌄"; color: var(--muted); font-size: 20px; transition: transform .2s; }
.admin-collapsible[open] > summary::after { transform: rotate(180deg); }
.keyboard-row-editor { margin-bottom: 10px; padding: 10px; border: 1px dashed #cbc8c0; border-radius: 14px; }
.keyboard-row-editor > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.keyboard-row-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.keyboard-button-editor { display: grid; grid-template-columns: minmax(110px, 1fr) 82px 36px; gap: 6px; flex: 1 1 220px; }
.keyboard-button-editor input, .keyboard-button-editor select { padding: 10px; }
.group-button-remove { min-height: 42px; border: 0; border-radius: 10px; color: var(--danger); background: var(--bg); font-size: 20px; }
.sponsor-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 70%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.sponsor-card, .listing-card { background: var(--surface); border-radius: 18px; padding: 15px; box-shadow: var(--shadow); }
.sponsor-card { scroll-snap-align: start; border: 1px solid #e7d7a3; }
.sponsor-card .sponsor-label { color: #97731c; font-size: 11px; font-weight: 700; }
.card-list { display: grid; gap: 10px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-head strong { font-size: 17px; }
.status { white-space: nowrap; font-size: 13px; font-weight: 700; }
.meta { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.price { font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span, .badge { padding: 4px 8px; border-radius: 999px; color: var(--accent-dark); background: #e6f7f0; font-size: 11px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-actions a, .card-actions button { border: 0; border-radius: 10px; padding: 8px 11px; color: var(--text); background: var(--bg); text-decoration: none; font-size: 13px; }
.card-actions .danger { color: var(--danger); }
.hidden { display: none !important; }
.form-card { display: grid; gap: 14px; }
.compact-form { gap: 10px; }
.separated-form { margin-top: 12px; }
.compact-list { margin-top: 12px; }
.form-card > *, .two-columns > * { min-width: 0; }
.form-heading { display: flex; align-items: center; justify-content: space-between; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-grid label { display: block; }
.tag-grid input { position: absolute; opacity: 0; pointer-events: none; }
.tag-grid span { display: block; border-radius: 999px; padding: 8px 11px; background: var(--bg); font-size: 12px; }
.tag-grid input:checked + span { color: white; background: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.check input { width: 20px; height: 20px; }
.location-picker { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px; text-align: left; color: var(--text); background: var(--bg); }
.location-picker small { display: block; margin-top: 3px; }
.text-button { border: 0; padding: 5px; color: var(--muted); background: transparent; }
.text-button.accent { color: var(--accent); font-weight: 700; }
.tabbar { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; width: min(760px, 100%); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(20px); }
.tabbar button { flex: 1; display: grid; gap: 2px; place-items: center; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.tabbar button span { font-size: 21px; }
.tabbar button.active { color: var(--accent); font-weight: 700; }
dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); }
dialog::backdrop { background: rgba(0,0,0,.5); }
.dialog-shell { min-height: 100%; }
.dialog-shell > header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
.dialog-shell > header button:last-child { justify-self: end; }
.device-location-card { display: grid; justify-items: center; gap: 10px; margin: 14px; padding: 24px 18px 18px; border-radius: 18px; color: var(--text); background: linear-gradient(145deg, #e7f8f1, #f7fbf9); text-align: center; }
.place-search-card { margin: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.place-search-card > strong { font-size: 16px; }
.place-search-card > p { margin: 5px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.place-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.place-search-row input { min-height: 46px; }
.place-search-row button { min-width: 74px; }
.place-search-card .place-search-status { min-height: 0; margin: 9px 2px 0; }
.place-search-results { display: grid; gap: 7px; margin-top: 9px; }
.place-search-result { display: grid; gap: 3px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--text); background: var(--bg); text-align: left; }
.place-search-result strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.place-search-result span { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.location-privacy-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 28px; }
.device-location-card strong { font-size: 17px; }
.device-location-card p { margin: 6px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.device-location-card .primary { width: min(280px, 100%); margin: 4px 0 0; }
.device-location-card .primary:disabled { opacity: .65; }
.device-location-card .location-capture-status { margin: 0; color: var(--muted); font-weight: 700; }
.device-location-card .location-capture-status.success { color: var(--accent-dark); }
.location-map-wrap { position: relative; overflow: hidden; height: 310px; margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 18px; background: #dfe9e4; box-shadow: var(--shadow); }
#location-adjust-map { width: 100%; height: 100%; }
.location-crosshair { position: absolute; z-index: 5; left: 50%; top: 50%; width: 44px; height: 44px; pointer-events: none; transform: translate(-50%, -50%); }
.location-crosshair span { position: absolute; inset: 5px; border: 3px solid white; border-radius: 50%; background: rgba(23,166,115,.18); box-shadow: 0 2px 12px rgba(0,0,0,.32), inset 0 0 0 2px var(--accent); }
.location-crosshair span::before, .location-crosshair span::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent); transform: translate(-50%, -50%); }
.location-crosshair span::before { width: 22px; height: 2px; }
.location-crosshair span::after { width: 2px; height: 22px; }
.location-map-instruction { position: absolute; z-index: 5; left: 9px; top: 9px; display: grid; gap: 2px; padding: 7px 9px; border-radius: 9px; color: #1a342b; background: rgba(255,255,255,.91); pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.location-map-instruction strong { font-size: 12px; }
.location-map-instruction small { font-size: 9px; }
.coordinate-preview { position: absolute; z-index: 5; left: 9px; right: 9px; bottom: 20px; overflow: hidden; padding: 6px 8px; border-radius: 8px; color: white; background: rgba(16,27,23,.72); pointer-events: none; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
#location-dialog .dialog-shell { height: 100%; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.place-fields { display: grid; gap: 13px; padding: 0 14px 24px; }
.place-fields label { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.place-fields label > span { display: flex; align-items: center; justify-content: space-between; }
.place-fields label b { font-size: 14px; }
.place-fields label small { font-weight: 400; }
.place-fields input { padding: 11px 0 2px; border: 0; border-radius: 0; background: transparent; }
.place-fields .place-name-field p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.location-summary { margin: 0; padding: 12px 13px; border-radius: 12px; color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.5; }
.location-summary strong { color: var(--text); }
.admin-listing-fields { padding-block: 10px; border-color: rgba(23,166,115,.35); }
.admin-listing-fields .card-section-heading { padding: 4px 0 5px; }
.admin-listing-fields select { border: 0; background: transparent; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 92px; transform: translate(-50%, 20px); max-width: 88%; padding: 10px 14px; border-radius: 12px; color: white; background: rgba(18,18,18,.9); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 首页：参考卡片式 Mini App，同时保留现有业务入口 */
.topbar { justify-content: center; padding-block: calc(14px + env(safe-area-inset-top)) 12px; background: color-mix(in srgb, var(--surface) 96%, transparent); border-bottom: 1px solid var(--line); }
.topbar > div { text-align: center; }
.topbar .eyebrow { display: none; }
.topbar h1 { font-size: 19px; }
.topbar .round-button { position: absolute; right: 16px; width: 38px; height: 38px; box-shadow: none; background: var(--bg); }
#search-view { padding-inline: 12px; }
.home-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -12px 12px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.home-tabs button { position: relative; height: 48px; border: 0; color: var(--muted); background: transparent; font-size: 15px; }
.home-tabs button.active { color: var(--accent); font-weight: 800; }
.home-tabs button.active::after { content: ""; position: absolute; left: 31%; right: 31%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.compliance-notice { overflow: hidden; margin: 0 0 12px; padding: 9px 11px; border-radius: 10px; color: #8a6a16; background: #fff3c9; font-size: 12px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.map-panel { margin: 0 0 16px; }
.map-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 8px; }
.map-toolbar select { min-height: 40px; padding: 8px 7px; border-color: var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; }
.map-stage { position: relative; overflow: hidden; height: clamp(390px, 57vh, 560px); border: 1px solid var(--line); border-radius: 18px; background: #dfe9e4; box-shadow: var(--shadow); }
#realtime-map { width: 100%; height: 100%; }
.map-message { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #315346; background: linear-gradient(145deg, rgba(239,249,245,.94), rgba(224,240,234,.94)); font-size: 13px; }
.map-spinner { width: 25px; height: 25px; border: 3px solid rgba(23,166,115,.2); border-top-color: var(--accent); border-radius: 50%; animation: map-spin .8s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-locate { position: absolute; z-index: 4; right: 10px; bottom: 28px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; color: var(--accent-dark); background: white; box-shadow: 0 5px 18px rgba(0,0,0,.2); font-size: 23px; font-weight: 800; }
.map-locate.locating { animation: locate-pulse .9s ease-in-out infinite alternate; }
@keyframes locate-pulse { to { transform: scale(.88); opacity: .72; } }
.customer-location-marker { position: relative; width: 22px; height: 22px; pointer-events: none; }
.customer-location-pulse { position: absolute; inset: -12px; border-radius: 50%; background: rgba(35, 125, 255, .2); animation: customer-location-pulse 1.6s ease-out infinite; }
.customer-location-dot { position: absolute; inset: 2px; border: 3px solid white; border-radius: 50%; background: #237dff; box-shadow: 0 2px 9px rgba(0, 74, 181, .5); }
.customer-location-marker b { position: absolute; left: 50%; top: 27px; padding: 4px 7px; border-radius: 7px; color: white; background: #237dff; box-shadow: 0 2px 8px rgba(0,0,0,.2); transform: translateX(-50%); font-size: 10px; white-space: nowrap; }
@keyframes customer-location-pulse { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.map-legend { display: flex; align-items: center; gap: 10px; padding: 9px 3px 0; color: var(--muted); font-size: 11px; }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.map-legend i.available { background: var(--available); }
.map-legend i.busy { background: var(--busy); }
.map-legend i.closed { background: var(--closed); }
.map-legend strong { margin-left: auto; color: var(--muted); font-weight: 500; }
.map-privacy-notice { margin: 6px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.map-fallback { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 10px 12px; border-radius: 11px; color: #725e22; background: #fff4cf; font-size: 11px; }
.map-fallback span { flex: 1; }
.map-fallback button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 7px 9px; color: #725e22; background: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; }
.map-avatar-marker-anchor { position: absolute; width: 85px; height: 85px; overflow: visible; }
.map-avatar-marker { --marker-scale: 1; --marker-color: var(--closed); position: absolute; inset: 0; display: grid; width: 85px; height: 85px; place-items: center; overflow: visible; padding: 0; border: 0; color: white; background: transparent; transform: scale(var(--marker-scale)); transform-origin: 50% 100%; will-change: transform; font-size: 19px; font-weight: 800; }
.map-avatar-marker.available { --marker-color: var(--available); }
.map-avatar-marker.busy { --marker-color: var(--busy); }
.map-avatar-marker.closed { --marker-color: var(--closed); }
.map-avatar-frame { position: relative; z-index: 1; display: grid; width: 60px; height: 60px; place-items: center; overflow: hidden; border: 4px solid var(--marker-color); border-radius: 50% 50% 50% 12%; color: white; background: #314a42; box-shadow: 0 5px 16px rgba(0,0,0,.32); transform: rotate(-45deg); }
.map-avatar-frame img { position: absolute; left: 50%; top: 50%; display: block; width: 85px; max-width: none; height: 85px; border-radius: 0; object-fit: cover; object-position: 50% 28%; transform: translate(-50%, -50%) rotate(45deg); }
.map-avatar-marker .marker-initial { transform: rotate(45deg); }
.marker-status-dot { position: absolute; z-index: 2; top: 47px; right: 5px; width: 15px; height: 15px; border: 2px solid white; border-radius: 50%; background: var(--marker-color); box-shadow: 0 1px 4px rgba(0,0,0,.24); transform: none; }
.map-avatar-marker.status-changed .map-avatar-frame { animation: marker-change .55s ease-in-out 3 alternate; }
@keyframes marker-change { to { filter: brightness(1.25); box-shadow: 0 0 0 8px rgba(23,166,115,.2), 0 5px 16px rgba(0,0,0,.32); } }
.maplibregl-ctrl-bottom-right { right: 0; bottom: 0; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0; }
.maplibregl-ctrl-logo { display: none !important; }
.maplibregl-ctrl-attrib { max-width: 72%; font-size: 9px; }
.maplibregl-ctrl-attrib { min-height: 20px; padding: 0 20px 0 0; }
.maplibregl-ctrl-attrib:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner { display: none; }
.search-panel { margin-bottom: 12px; border-radius: 14px; box-shadow: none; border: 1px solid var(--line); }
.featured-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.featured-card, .profile-card { position: relative; display: block; overflow: hidden; width: 100%; padding: 0; border: 0; border-radius: 14px; color: white; background: linear-gradient(145deg, #2e3b4b, #152331); text-align: left; box-shadow: 0 6px 18px rgba(25, 39, 52, .12); }
.featured-card { aspect-ratio: 1.2 / 1; }
.featured-card.submit-card { padding: 18px 14px; background: linear-gradient(145deg, #0a86c7, #42b7ed); }
.submit-card .feature-icon { display: block; margin-bottom: 25px; font-size: 32px; }
.submit-card strong { display: block; font-size: 19px; }
.submit-card small { display: block; margin-top: 6px; color: rgba(255,255,255,.82); font-size: 12px; }
.profile-card { min-height: 230px; }
.featured-card.profile-card { min-height: 0; }
.profile-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.62); background: radial-gradient(circle at 70% 20%, #50b8a0, transparent 42%), linear-gradient(145deg, #243d48, #17242b); font-size: 44px; font-weight: 800; }
.profile-shade { position: absolute; inset: 36% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.profile-copy { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; }
.profile-copy strong { display: block; overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.profile-copy small { display: block; overflow: hidden; margin-top: 4px; color: rgba(255,255,255,.86); white-space: nowrap; text-overflow: ellipsis; }
.profile-copy .tile-price { margin-top: 6px; font-size: 12px; font-weight: 700; }
.status-pill { position: absolute; z-index: 3; top: 9px; right: 9px; padding: 5px 8px; border-radius: 999px; color: white; background: rgba(12, 25, 26, .66); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.favorite-button { position: absolute; z-index: 4; top: 8px; left: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: white; background: rgba(12,25,26,.55); font-size: 16px; }
.favorite-button.active { color: #ffdd4a; }
.section-title { margin-top: 2px; }
.section-title h2 { font-size: 17px; }
.sponsor-strip { grid-auto-columns: minmax(190px, 58%); }
.sponsor-card { padding: 7px; border-radius: 15px; }
.sponsor-card .profile-card { min-height: 210px; }

/* 投稿页：分组卡片、横向字段和固定提交按钮 */
#submit-view { padding: 0 0 160px; }
.application-title { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; }
.application-title strong { font-size: 17px; }
.age-chip { justify-self: end; padding: 4px 7px; border-radius: 999px; color: var(--accent-dark); background: #e4f6ef; font-size: 11px; font-weight: 800; }
.application-form { display: grid; gap: 12px; padding: 12px; }
.application-card { padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 14px rgba(30,29,25,.04); }
.form-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; min-height: 58px; gap: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.application-card > .form-row:last-child { border-bottom: 0; }
.row-label { color: var(--text); white-space: nowrap; }
.required::before { content: "*"; margin-right: 4px; color: var(--danger); }
.form-row > input, .form-row textarea, .input-with-unit input { border: 0; border-radius: 0; padding: 12px 0; background: transparent; }
.form-row > input:focus, .form-row textarea:focus, .input-with-unit input:focus { box-shadow: inset 0 -2px 0 var(--accent); }
.input-with-unit { display: flex; align-items: center; min-width: 0; color: var(--muted); }
.input-with-unit input { flex: 1; }
.input-with-unit b { flex: 0 0 auto; font-size: 12px; font-weight: 500; }
.bust-row { margin: 0; padding: 0; }
.bust-row legend { margin: 0; }
.bust-options { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.bust-options label { display: block; }
.bust-options input { position: absolute; opacity: 0; pointer-events: none; }
.bust-options span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #cfd5da; border-radius: 50%; color: var(--muted); font-size: 12px; }
.bust-options input:checked + span { color: white; border-color: var(--accent); background: var(--accent); }
.form-row .location-picker { grid-template-columns: 1fr auto; width: 100%; padding: 8px 0; border-radius: 0; background: transparent; }
.form-row .location-picker strong { display: block; color: var(--muted); font-weight: 500; }
.form-row .location-picker small { max-width: 210px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.description-row { align-items: start; padding-top: 14px; }
.description-row textarea { min-height: 88px; padding-top: 2px; }
.card-section-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; }
.card-section-heading strong { font-size: 16px; }
.card-section-heading span { color: var(--muted); font-size: 12px; }
.tag-card { padding-bottom: 16px; }
.tag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.tag-grid label { min-width: 0; }
.tag-grid span { display: flex; align-items: center; gap: 5px; overflow: hidden; padding: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 12px; white-space: nowrap; }
.tag-grid span::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #cfd5da; background: var(--surface); }
.tag-grid input:checked + span { color: var(--text); background: transparent; }
.tag-grid input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.bust-options input, .tag-grid input { width: 1px; height: 1px; margin: 0; padding: 0; clip-path: inset(50%); }
.media-card { padding-block: 15px; }
.media-block + .media-block { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.media-heading { display: flex; align-items: center; justify-content: space-between; }
.media-heading span { color: var(--muted); font-size: 12px; }
.media-block > p { margin: 6px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verification-script { margin: 9px 0 8px; padding: 10px 12px; border: 1px solid #bfe4d2; border-radius: 10px; background: #effaf5; }
.verification-script span { display: block; margin-bottom: 4px; color: #287757; font-size: 11px; }
.verification-script strong { display: block; color: #154d39; font-size: 13px; line-height: 1.55; }
.verification-visibility { margin: 14px 0 0; padding: 0; border: 0; }
.verification-visibility legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.verification-visibility label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.verification-visibility input { width: 18px; height: 18px; }
.upload-tile { display: grid; width: 96px; height: 96px; place-content: center; gap: 7px; border: 1px dashed #b9c6cc; border-radius: 12px; color: var(--muted); text-align: center; font-weight: 500; }
.upload-tile span { font-size: 25px; font-weight: 300; }
.upload-tile b { font-size: 12px; font-weight: 500; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.media-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.media-preview:empty { display: none; }
.media-preview-item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 9px; background: var(--bg); }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-remove { position: absolute; top: 5px; right: 5px; z-index: 2; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #e53935; color: #fff; font-size: 22px; line-height: 26px; box-shadow: 0 2px 8px #0005; }
.existing-media::after { content: "原始资料"; position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 5px; background: #0009; color: #fff; font-size: 11px; }
.video-preview-label { position: absolute; inset: auto 5px 5px; overflow: hidden; color: white; font-size: 10px; text-shadow: 0 1px 3px #000; white-space: nowrap; text-overflow: ellipsis; }
.declarations { padding-block: 14px; }
.declarations .check + .check { margin-top: 12px; }
.application-submit-bar { position: fixed; z-index: 19; left: 50%; bottom: calc(65px + env(safe-area-inset-bottom)); display: flex; width: min(760px, 100%); transform: translateX(-50%); gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(18px); }
.application-submit-bar .primary.full { flex: 1; min-height: 50px; margin: 0; }
.application-submit-bar .text-button { flex: 0 0 82px; }

/* 资料详情 */
.listing-dialog { padding: 0; border: 0; background: transparent; }
.listing-dialog::backdrop { background: rgba(0,0,0,.55); }
.listing-dialog-shell { position: fixed; left: 50%; bottom: 0; width: min(760px, 100%); max-height: 88vh; overflow-y: auto; transform: translateX(-50%); padding: 14px 14px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--bg); }
.listing-dialog-shell > header { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 12px; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 24px; }
.listing-detail-cover { width: 100%; max-height: 46vh; margin-bottom: 10px; border-radius: 14px; object-fit: cover; }
.detail-loading { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.public-media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 -14px 15px; overflow: hidden; border-radius: 16px; background: #101413; }
.public-media-gallery > img, .public-media-gallery > figure { display: block; width: 100%; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #101413; }
.public-media-gallery img, .public-media-gallery video { display: block; width: 100%; height: 100%; object-fit: cover; }
.public-media-gallery figure { position: relative; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.public-media-gallery figcaption { position: absolute; left: 9px; bottom: 9px; padding: 5px 8px; border-radius: 999px; color: white; background: rgba(0,0,0,.62); font-size: 10px; }
.public-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.public-detail-head strong { display: block; font-size: 22px; }
.public-detail-head small { display: block; margin-top: 3px; }
.public-detail-head .status { padding: 6px 9px; border-radius: 999px; color: white; background: var(--closed); }
.public-detail-head .status.available { background: var(--available); }
.public-detail-head .status.busy { background: var(--busy); }
.map-location-warning { margin: 12px 0; padding: 10px 12px; border-radius: 12px; color: var(--accent-dark); background: #e7f6f0; font-size: 13px; line-height: 1.5; }
.map-location-warning small { color: #55917a; }
.detail-price { font-size: 18px; font-weight: 900; }
.detail-price span { color: var(--muted); font-weight: 400; }
.detail-facts { margin: 13px 0; }
.detail-facts > div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; }
.description-details { margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: var(--surface); }
.description-details summary { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.description-details p { margin: 9px 0 0; white-space: pre-wrap; color: var(--text); font-size: 13px; line-height: 1.65; }
.detail-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.detail-primary-actions a { padding: 12px; border-radius: 12px; color: white; background: var(--accent); text-align: center; text-decoration: none; font-size: 14px; font-weight: 800; }
.profile-empty { grid-column: 1 / -1; }

@media (max-width: 350px) {
  .form-row { grid-template-columns: 92px minmax(0, 1fr); }
  .tag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bust-options span { width: 24px; height: 24px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111210; --surface: #1b1d1a; --text: #f2f2ee; --muted: #a09f99; --line: #2d302b; --shadow: 0 10px 30px rgba(0,0,0,.2); }
  .compliance-notice { color: #e4c56b; background: #40391e; }
  .device-location-card { background: linear-gradient(145deg, #173a30, #18221f); }
  .map-message { color: #b9d8cc; background: linear-gradient(145deg, rgba(21,42,35,.95), rgba(17,31,27,.95)); }
  .map-location-warning { color: #8bd0b3; background: #183a2f; }
  .map-location-warning small { color: #76a894; }
}
