/* 微官網: a merchant's free page (/m/<slug>/, microsite-page.js) and its wizard (/m/new/, microsite-wizard.js).
   The page is the merchant's, so it is plain and fast: photos first, then the shop's name, one big button in its
   industry's colour, the other ways to reach it, and what its industry leads with. The industry sets --ms-accent. */
/* stylelint-disable declaration-block-single-line-max-declarations, declaration-property-value-allowed-list */

.ms { --ms-accent:#7048e8; --ms-soft:#f1edff; --ms-ink:#14171c; --ms-text-2:#5b6270; --ms-line:#e6e8ec; --ms-paper:#fff;
  display:block; width:min(560px, 100%); margin:0 auto; background:var(--ms-paper); color:var(--ms-ink);
  font-family:system-ui, -apple-system, "PingFang TC", "Hiragino Sans", "Noto Sans TC", sans-serif; line-height:1.5; }
.ms--food { --ms-accent:#d9480f; --ms-soft:#fff1e8; }
.ms--stay { --ms-accent:#0b7285; --ms-soft:#e6f6f8; }
.ms--home { --ms-accent:#3b5bdb; --ms-soft:#edf1ff; }
.ms--car { --ms-accent:#c76a00; --ms-soft:#fff4e0; }
.ms--service { --ms-accent:#2b8a3e; --ms-soft:#eaf7ec; }
.ms--shop { --ms-accent:#7048e8; --ms-soft:#f1edff; }

.ms-body-page { margin:0; background:#f3f4f6; }
.ms-shell { min-height:100vh; padding:0 0 32px; }
@media (min-width: 600px) { .ms-shell { padding:32px 16px 48px; } .ms-shell .ms { overflow:hidden; border-radius:1.5rem; box-shadow:0 10px 40px rgb(16 24 40 / 10%); } }

/* The photos open the page: one big cover, a row to swipe (cars), or four at once (homes). */
.ms-hero img { display:block; width:100%; height:100%; object-fit:cover; background:#eef0f3; }
.ms-hero--cover { aspect-ratio:4 / 3; }
.ms-hero--gallery { display:flex; gap:6px; overflow-x:auto; aspect-ratio:16 / 10; scroll-snap-type:x mandatory; scrollbar-width:none; }
.ms-hero--gallery img { flex:0 0 88%; scroll-snap-align:center; }
.ms-hero--gallery img:only-child { flex-basis:100%; }
.ms-hero--grid { display:grid; grid-template-columns:2fr 1fr; grid-auto-rows:1fr; gap:4px; aspect-ratio:4 / 3; }
.ms-hero--grid img:first-child { grid-row:span 3; }
.ms-hero--n3 img:first-child { grid-row:span 2; }
.ms-hero--empty { display:grid; place-items:center; aspect-ratio:4 / 3; background:var(--ms-soft); color:var(--ms-accent); font-size:72px; font-weight:800; }

.ms-body { padding:20px 20px 8px; }
.ms-head h1 { margin:2px 0 0; font-size:28px; font-weight:800; line-height:1.2; letter-spacing:0; overflow-wrap:anywhere; }
.ms-kind { display:inline-block; margin:0; padding:2px 10px; border-radius:999px; background:var(--ms-soft); color:var(--ms-accent); font-size:13px; font-weight:700; }
.ms-tagline { margin:8px 0 0; color:var(--ms-text-2); font-size:16px; }

/* One big button in the industry's colour, then the other ways in as round buttons with their names under them. */
.ms-actions { margin:20px 0 4px; }
.ms-primary { display:flex; align-items:center; justify-content:center; gap:10px; min-height:56px; border-radius:999px; background:var(--ms-accent); color:#fff; font-size:18px; font-weight:800; text-decoration:none; }
.ms-primary.ms-act--line { background:#06c755; }
.ms-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(64px, 1fr)); gap:8px; margin-top:14px; }
.ms-act { display:grid; justify-items:center; gap:6px; color:var(--ms-ink); font-size:13px; font-weight:600; text-decoration:none; }
.ms-primary svg { flex:none; width:22px; height:22px; }
.ms-act svg { box-sizing:content-box; flex:none; width:22px; height:22px; padding:13px; border-radius:50%; background:var(--ms-soft); color:var(--ms-accent); }
.ms-act--line svg { background:#e6f9ee; color:#06a648; }
.ms-primary:focus-visible, .ms-act:focus-visible, .ms-where:focus-visible { outline:3px solid var(--ms-accent); outline-offset:3px; }

.ms-block { margin-top:22px; padding-top:18px; border-top:1px solid var(--ms-line); }
.ms-block h2 { margin:0 0 8px; color:var(--ms-text-2); font-size:14px; font-weight:700; letter-spacing:0; }
.ms-block p { margin:0; font-size:17px; }
.ms-block ul { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.ms-block li { padding:6px 12px; border-radius:999px; background:var(--ms-soft); font-size:15px; }
.ms-photos { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; }
.ms-photos img { width:100%; height:auto; aspect-ratio:1; border-radius:.75rem; object-fit:cover; }
.ms-where { display:inline-flex; align-items:center; gap:6px; margin-top:12px; color:var(--ms-accent); font-weight:700; text-decoration:none; }

.ms-foot { display:grid; gap:12px; margin-top:24px; padding:20px; background:#f8f9fa; color:var(--ms-text-2); font-size:13px; }
.ms-made { color:var(--ms-ink); font-weight:700; }
.ms-brand { margin:0; }
.ms-report summary { cursor:pointer; }
.ms-report__form { display:grid; gap:8px; margin-top:10px; }
.ms-report__form fieldset { display:grid; gap:6px; margin:0; padding:0; border:0; }
.ms-report__form textarea { padding:8px; border:1px solid var(--ms-line); border-radius:.75rem; font:inherit; }
.ms-report__form button { justify-self:start; padding:8px 16px; border:0; border-radius:999px; background:var(--ms-ink); color:#fff; font:inherit; font-weight:700; }

/* ── The wizard ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.ms-start { width:min(560px, calc(100% - 32px)); margin:40px auto 24px; }
.ms-start h1 { margin:0; font-size:clamp(30px, 6vw, 40px); font-weight:800; letter-spacing:0; }
.ms-start__lead { margin:10px 0 0; color:var(--lb-text-2, #5b6270); font-size:17px; }
.ms-start__points { display:grid; gap:10px; margin:22px 0 26px; padding:0; list-style:none; }
.ms-start__points li { display:flex; gap:10px; align-items:baseline; font-size:16px; }
.ms-start__points li::before { content:""; flex:none; width:8px; height:8px; border-radius:50%; background:#06c755; transform:translateY(-2px); }
.ms-start__go { display:flex; width:100%; min-height:58px; align-items:center; justify-content:center; border:0; border-radius:999px; background:var(--lb-text, #14171c); color:var(--lb-bg, #fff); font:inherit; font-size:18px; font-weight:800; cursor:pointer; }
.ms-start__fine { margin:12px 0 0; color:var(--lb-text-3, #868e96); font-size:13px; text-align:center; }
.ms-mine { width:min(560px, calc(100% - 32px)); margin:8px auto 48px; }
.ms-mine h2 { font-size:18px; }
.ms-mine ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.ms-mine__item { display:grid; grid-template-columns:56px minmax(0, 1fr); gap:6px 12px; align-items:center; padding:10px; border:1px solid var(--lb-line, #e6e8ec); border-radius:1.25rem; }
.ms-mine__item img, .ms-mine__none { width:56px; height:56px; border-radius:.75rem; object-fit:cover; background:var(--lb-surface-2, #eef0f3); }
.ms-mine__item strong, .ms-mine__item small { display:block; }
.ms-mine__item small { color:var(--lb-text-2, #5b6270); }
.ms-mine__do { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }

/* The dots stand for the bar; the bar keeps its grid row (height 0) so the button stays at the foot. */
.ms-sheet .step-sheet__bar { height:0; visibility:hidden; }
.ms-dots { display:flex; gap:6px; justify-content:center; margin:0 auto 22px; padding:0; list-style:none; }
.ms-dots li { width:8px; height:8px; border-radius:999px; background:var(--line, #dee2e6); transition:width .2s ease; }
.ms-dots .is-done { background:#06c755; }
.ms-dots .is-now { width:24px; background:var(--ink, #14171c); }
.ms-q { margin:0; font-size:26px; font-weight:800; line-height:1.25; letter-spacing:0; outline:none; }
.ms-hint { margin:8px 0 0; color:var(--muted, #5b6270); font-size:15px; }
.ms-status { min-height:1.5em; margin:14px 0 0; color:#c92a2a; font-weight:600; }
.ms-field { display:grid; gap:6px; margin-top:22px; font-weight:700; }
.ms-field input, .ms-field textarea { width:100%; box-sizing:border-box; min-height:54px; padding:12px 14px; border:1.5px solid var(--line, #ced4da); border-radius:.85rem; background:var(--paper, #fff); color:inherit; font:inherit; font-size:18px; font-weight:400; }
.ms-field input:focus, .ms-field textarea:focus { border-color:var(--ink, #14171c); outline:none; }

.ms-tiles { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:22px; }
.ms-tile { --tile:#7048e8; display:grid; align-content:end; gap:2px; min-height:104px; padding:14px; border:1.5px solid transparent; border-radius:1.25rem; background:color-mix(in srgb, var(--tile) 10%, var(--paper, #fff)); color:var(--ink, #14171c); text-align:left; font:inherit; cursor:pointer; }
.ms-tile strong { color:var(--tile); font-size:20px; font-weight:800; }
.ms-tile small { color:var(--muted, #5b6270); font-size:13px; }
.ms-tile.is-on, .ms-tile:focus-visible { border-color:var(--tile); outline:none; }
.ms-tile--food { --tile:#d9480f; } .ms-tile--stay { --tile:#0b7285; } .ms-tile--home { --tile:#3b5bdb; }
.ms-tile--car { --tile:#c76a00; } .ms-tile--service { --tile:#2b8a3e; } .ms-tile--shop { --tile:#7048e8; }

.ms-shots { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-top:22px; }
.ms-shots.is-photo-drop { outline:3px solid var(--lb-link,#006bff); outline-offset:5px; border-radius:.85rem; }
.ms-shot { position:relative; margin:0; aspect-ratio:1; overflow:hidden; border-radius:.85rem; background:var(--paper-deep, #f1f3f5); }
.ms-shot img { width:100%; height:100%; object-fit:cover; }
.ms-shot figcaption { position:absolute; left:6px; bottom:6px; padding:1px 8px; border-radius:999px; background:rgb(0 0 0 / 60%); color:#fff; font-size:12px; }
.ms-shot__remove { position:absolute; top:6px; right:6px; width:28px; height:28px; padding:0; border:0; border-radius:50%; background:rgb(0 0 0 / 60%); color:#fff; font-size:18px; line-height:1; cursor:pointer; }
.ms-shot--add { display:grid; place-content:center; justify-items:center; gap:4px; border:1.5px dashed var(--line, #ced4da); color:var(--muted, #5b6270); cursor:pointer; }
.ms-shot--add span { font-size:30px; line-height:1; }
.ms-shot--add small { font-size:12px; text-align:center; }
.ms-file { position:absolute; width:1px; height:1px; opacity:0; }
.ms-shot--add:focus-within { outline:2px solid var(--ink, #14171c); }

.ms-map { position:relative; height:240px; margin-top:14px; overflow:hidden; border-radius:1.25rem; background:var(--paper-deep, #eef0f3); }
.ms-map__pin { position:absolute; z-index:2; left:50%; top:50%; width:26px; height:26px; margin:-26px 0 0 -13px; border-radius:50% 50% 50% 0; background:#e03131; box-shadow:0 2px 6px rgb(0 0 0 / 30%); transform:rotate(-45deg); pointer-events:none; }
.ms-map__pin::after { content:""; position:absolute; inset:8px; border-radius:50%; background:#fff; }
.ms-map-row { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; justify-content:space-between; margin-top:10px; }
.ms-pin-note { flex:1 1 220px; margin:0; color:var(--muted, #5b6270); font-size:14px; }
.ms-ghost, .ms-chip { display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border:1.5px solid var(--line, #ced4da); border-radius:999px; background:transparent; color:var(--ink, #14171c); font:inherit; font-size:14px; font-weight:700; text-decoration:none; cursor:pointer; }

/* A paid add-on, where it fits: one line and 了解方案, never in the way. */
.ms-up { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:12px; padding:12px 14px; border-radius:1.25rem; background:linear-gradient(135deg, #fff8e1, #fff3d6); color:#3d2c00; }
.ms-up div { display:grid; gap:2px; }
.ms-up strong { font-size:15px; }
.ms-up span { color:#6b5310; font-size:13px; }
.ms-up a { flex:none; padding:8px 14px; border-radius:999px; background:#3d2c00; color:#fff; font-size:13px; font-weight:700; text-decoration:none; }
.ms-up--compact { margin-top:26px; padding:10px 12px; }
.ms-ups { margin-top:26px; }
.ms-ups h3 { margin:0; font-size:16px; }

.ms-phone { width:min(380px, 100%); max-height:62vh; margin:22px auto 0; overflow-y:auto; border:8px solid var(--ink, #14171c); border-radius:2rem; background:#fff; }
.ms-phone .ms { width:100%; }
.ms-edits { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; margin-top:14px; color:var(--muted, #5b6270); font-size:14px; }

.ms-done { display:grid; justify-items:center; text-align:center; }
.ms-done__mark { display:grid; place-items:center; width:64px; height:64px; margin:0 0 14px; border-radius:50%; background:#06c755; color:#fff; font-size:34px; font-weight:800; }
.ms-done__link { margin-top:10px; color:var(--ink, #14171c); overflow-wrap:anywhere; }
.ms-done__row { display:flex; gap:10px; margin:16px 0 8px; }
.ms-go { display:inline-flex; align-items:center; min-height:44px; padding:0 20px; border-radius:999px; background:var(--ink, #14171c); color:var(--paper, #fff); font-weight:800; text-decoration:none; }
.ms-done .ms-up { width:100%; box-sizing:border-box; text-align:left; }

@media (prefers-reduced-motion: reduce) { .ms-dots li { transition:none; } }

.ms-address-note { margin:12px 0; overflow-wrap:anywhere; }
.ms-address-note p { margin:0 0 4px; }
.ms-address-note small { display:block; color:var(--lb-text-2, #5b6270); }
.ms-address-note a { display:inline-block; margin-top:6px; }
.ms-profile-switch { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; font-size:14px; }
.ms-profile-switch input { width:20px; height:20px; flex:none; }
.ms-profile-switch [role="status"] { width:100%; }
.ms-foot > .ms-chip { display:inline-block; margin-bottom:12px; }
