:root {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #fff;
  --ink: #222;
  --muted: #888;
  --line: #eee;
  --accent: #f6339a;
  --rose: #ff2357;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible { outline: 2px solid #f5a4cb; outline-offset: 3px; }
.site-shell { width: 100%; max-width: 448px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; }
.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(100deg, var(--accent), var(--rose));
  box-shadow: 0 2px 5px #00000012;
}
.brand h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.brand p { margin: 0; color: #fff; font-size: 12px; line-height: 18px; }
main { padding: 16px; }
.panel { margin: 0 0 16px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px #00000012; }
.quick-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 12px; }
.quick-nav a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; font-size: 11px; line-height: 16.5px; }
.quick-nav svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.region-heading { display: flex; align-items: center; justify-content: space-between; }
.region-heading h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.region-action { padding: 5px 14px; border: 1px solid #fb64b6; border-radius: 20px; color: var(--accent); font-size: 12px; line-height: 18px; }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.location-grid a { min-width: 0; overflow: hidden; font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.location-grid a.active { color: var(--accent); font-weight: 600; }
.promotion { padding: 2px 0; }
.promotion h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.promotion h2::before { display: none; }
.promotion h2 span { padding: 4px 10px; border-radius: 16px; color: #8d6120; background: #fef3c6; font-size: 12px; line-height: 18px; font-weight: 600; }
@media (max-width: 360px) { .location-grid { column-gap: 8px; } }

button { font: inherit; color: inherit; touch-action: manipulation; }
button:focus-visible { outline: 2px solid #f5a4cb; outline-offset: 3px; }
.region-action { background: #fff; cursor: pointer; }
.location-choice { min-width: 0; overflow: hidden; padding: 0; border: 0; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; cursor: pointer; }
.location-choice.active { color: var(--accent); font-weight: 600; }
.region-tools { display: flex; gap: 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.region-tools button { padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 12px; line-height: 18px; cursor: pointer; }
.quick-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.safety-template { overflow-wrap: anywhere; }
.safety-warning, .safety-questions section, .cooperation-panel { padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0000000d; }
.safety-warning { border: 1px solid #ffe2e2; }
.safety-warning-heading { display: flex; align-items: flex-start; gap: 12px; }
.safety-shield { display: flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: #ffe2e2; font-size: 20px; }
.safety-warning h2 { margin: 0; padding-top: 4px; color: #101828; font-size: 18px; line-height: 28px; font-weight: 700; }
.safety-warning ul { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.safety-warning li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: #364153; background: #fef2f2; font-size: 14px; line-height: 24px; }
.safety-number { display: flex; flex: 0 0 24px; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: #e7000b; background: #ffe2e2; font-size: 12px; line-height: 16px; font-weight: 700; }
.safety-copy { min-width: 0; }
.safety-questions { display: grid; gap: 16px; margin-top: 16px; }
.safety-questions h2 { margin: 0; color: #101828; font-size: 16px; line-height: 24px; font-weight: 700; }
.safety-questions p { margin: 12px 0 0; color: #4a5565; font-size: 14px; line-height: 28px; }
.cooperation-panel h2 { margin: 0 0 14px; font-size: 18px; line-height: 26px; }
.cooperation-panel p { margin: 10px 0 0; color: #555; font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }

.post-list { display: grid; gap: 14px; margin-top: 16px; }
.post-card { position: relative; display: flex; margin: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0000000d; transition: transform .15s; }
.post-card:active, .promotion-card:active { transform: scale(.99); }
.post-thumbnail { width: 96px; height: 96px; flex: 0 0 96px; object-fit: cover; }
.post-card-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: space-between; padding: 12px; overflow-wrap: anywhere; }
.post-card h2 { overflow: hidden; margin: 4px 0 0; color: #1e2939; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; }
.post-card p { margin: 0; font-size: 12px; line-height: 16px; }
.post-card .post-region { color: #99a1af; }
.post-card .post-address { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; margin-top: 2px; color: #99a1af; }
.post-age { margin-left: 8px; color: #99a1af; font-size: 12px; line-height: 16px; font-weight: 400; }
.post-card .post-services { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 4px; color: #6a7282; }
.post-card .post-date { margin-top: 4px; color: #99a1af; }
.post-price { color: var(--rose); font-size: 14px; line-height: 20px; font-weight: 700; }
.promotion-card { position: relative; display: flex; overflow: hidden; border: 1px solid #fee685; border-radius: 16px; background: linear-gradient(to bottom right, #fffbeb, #fff, #fff1f2); box-shadow: 0 8px 24px #be78191f; transition: transform .15s; }
.promotion-decoration { position: absolute; top: 0; right: 0; width: 64px; height: 64px; border-bottom-left-radius: 100%; background: linear-gradient(to bottom left, #fee68580, transparent); }
.promotion-thumbnail { width: 112px; height: 112px; flex: 0 0 112px; object-fit: cover; }
.promotion-card-copy { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: space-between; padding: 14px; }
.promotion-card .promotion-card-title { display: block; overflow: hidden; margin: 4px 0 0; color: #101828; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 24px; font-weight: 700; }
.promotion-services { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 4px 0 0; color: #6a7282; font-size: 12px; line-height: 19.5px; }
.promotion-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; }
.promotion-price { color: var(--rose); font-size: 14px; line-height: 20px; font-weight: 700; }
.promotion-cta { color: #bb4d00; font-size: 12px; line-height: 16px; font-weight: 500; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 12px; line-height: 18px; }
.pagination a, .pagination .disabled { display: inline-flex; min-width: 30px; min-height: 32px; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination a.active { border-color: var(--accent); color: #fff; background: var(--accent); font-weight: 600; }
.pagination .disabled { color: #aaa; }
.pagination-gap { padding: 0 2px; color: var(--muted); }
.detail-back { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: 14px; }
.site-shell:has(.post-detail) > .site-header { display: none; }
main:has(> .post-detail) { padding: 0; }
.post-detail { padding-bottom: 40px; overflow-wrap: anywhere; }
.detail-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; min-height: 56px; padding: 16px; color: #fff; background: linear-gradient(to right, var(--accent), var(--rose)); box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; }
.detail-header a { color: #ffffffe6; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 16px; color: #6a7282; background: #fff; font-size: 12px; line-height: 16px; }
.detail-breadcrumb a:hover { color: var(--accent); }
.detail-crumb-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #fff; }
.detail-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-content { padding: 0 16px; }
.detail-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px #0000000d; }
.detail-region { color: #99a1af; font-size: 12px; line-height: 16px; }
.detail-region-link { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 12px; line-height: 16px; }
.detail-summary h1 { margin: 8px 0 0; color: #101828; font-size: 18px; line-height: 28px; font-weight: 700; }
.detail-age { margin-left: 8px; color: #99a1af; font-size: 14px; line-height: 20px; font-weight: 400; }
.detail-price { margin-top: 8px; color: var(--rose); font-size: 20px; line-height: 28px; font-weight: 700; }
.detail-card h2 { margin: 0 0 8px; color: #1e2939; font-size: 14px; line-height: 20px; font-weight: 700; }
.detail-card p { margin: 0; color: #4a5565; font-size: 14px; line-height: 24px; white-space: pre-line; }
.detail-reminder { margin-top: 16px; padding: 16px; border: 1px solid #fee685; border-radius: 16px; color: #953d00; background: #fffbeb; font-size: 12px; line-height: 19.5px; }
.detail-card .detail-address { color: #364153; font-weight: 500; line-height: 20px; }
.detail-contacts h2 { margin-bottom: 12px; }
.detail-contact-list { display: grid; gap: 8px; }
.detail-contact-list > div { display: flex; align-items: center; gap: 8px; color: #364153; font-size: 14px; line-height: 20px; }
.detail-contact-label { color: #99a1af; }
.detail-contact-value { font-weight: 500; white-space: pre-line; }
.post-qr { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 12px 48px #0003; }
.post-qr::backdrop { background: #0007; }
.post-qr-content { position: relative; padding: 28px 24px 20px; text-align: center; }
.post-qr h2 { margin: 4px 16px 18px; font-size: 18px; line-height: 26px; }
.qr-close { position: absolute; top: 4px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 36px; cursor: pointer; }
#post-qr-code svg { display: block; width: 100%; max-width: 280px; height: auto; margin: auto; }
#post-qr-message { margin: 16px 0 0; color: #666; font-size: 13px; line-height: 21px; overflow-wrap: anywhere; }
.site-shell:has(.safari-guide) > .site-header { display: none; }
main:has(> .safari-guide) { padding: 0; }
.safari-guide { min-height: 100vh; min-height: 100dvh; background: var(--page); }
.guide-header { position: relative; display: flex; justify-content: center; align-items: center; min-height: 96px; padding: 18px 72px; color: #fff; background: linear-gradient(to right, var(--accent), var(--rose)); text-align: center; }
.guide-header > a { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #ffffffe6; font-size: 13px; line-height: 22px; }
.guide-header h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.guide-header p { margin: 4px 0 0; font-size: 12px; line-height: 18px; }
.guide-content { display: grid; gap: 16px; padding: 24px 16px 32px; }
.guide-card { padding: 24px 20px; border: 1px solid #f0f0f2; border-radius: 20px; background: #fff; box-shadow: 0 2px 6px #00000005; }
.guide-primary { text-align: center; }
.guide-compass { display: block; width: 88px; height: 88px; margin: 0 auto 18px; }
.guide-primary h1 { margin: 0; color: #101828; font-size: 24px; line-height: 34px; font-weight: 700; }
.guide-description { margin: 12px 0 24px; color: #6a7282; font-size: 14px; line-height: 24px; }
.guide-open, .guide-copy { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border-radius: 12px; font-size: 14px; line-height: 22px; font-weight: 600; cursor: pointer; }
.guide-open { border: 0; color: #fff; background: linear-gradient(to right, var(--accent), var(--rose)); }
.guide-open:disabled { color: #8a8d95; background: #f0f1f4; cursor: default; }
.guide-status { margin: 12px 0 20px; color: #888; font-size: 12px; line-height: 20px; }
.guide-address-label { display: block; margin: 0 0 8px; color: #6a7282; text-align: left; font-size: 12px; line-height: 18px; }
.guide-address { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 11px 12px; border: 1px solid #e7e8ed; border-radius: 10px; color: #6a7282; background: #f8f9fb; font: inherit; font-size: 12px; line-height: 18px; }
.guide-address:focus-visible { outline: 2px solid #f5a4cb; outline-offset: 2px; }
.guide-copy { margin-top: 12px; border: 1px solid #ffb3d8; color: var(--accent); background: #fff5fa; }
.guide-steps { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.guide-steps h2 { margin: 0 0 18px; color: #101828; font-size: 15px; line-height: 22px; }
.guide-steps ol { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; align-items: center; gap: 12px; color: #6a7282; font-size: 13px; line-height: 21px; }
.guide-steps li > span { display: flex; flex: 0 0 26px; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); background: #fff0f8; font-size: 12px; font-weight: 600; }


