/* Lifebang website — mobile first, no framework. Brand green matches the App (kBrand #1F6F5C). */
:root {
  --brand: #1F6F5C; --brand-dark: #16574a; --brand-soft: #E7F2EE; --accent: #F2B544;
  --ink: #17201d; --ink-2: #4a5552; --muted: #626c69; --line: #e3e8e6; --bg: #f6f8f7; --card: #ffffff;
  --danger: #c0392b; --ok: #17704a; --radius: 16px; --shadow: 0 1px 2px rgba(16, 32, 28, .06), 0 6px 20px rgba(16, 32, 28, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: .4em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 0 0 .7em; }
h3 { font-size: 1.02rem; margin: 0 0 .25em; }
p { margin: 0 0 .7em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
section { margin: 28px 0; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.logo img { border-radius: 9px; }
.logo:hover { text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.top-nav a { color: var(--ink-2); }
.top-nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.top-nav .btn { color: #fff; }
@media (max-width: 560px) { .top-nav > a:first-child { display: none; } .logo span { font-size: .95rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a3301f; }
.btn-text { background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer; padding: 8px 4px; }

/* hero + search */
.hero { background: radial-gradient(1200px 420px at 10% -10%, #d7ece4 0, transparent 60%), linear-gradient(180deg, #eef6f3, var(--bg)); padding: 36px 0 22px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); max-width: 18em; }
.hero-sub { color: var(--ink-2); max-width: 40em; font-size: 1.05rem; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .85rem; color: var(--ink-2); margin: 0 0 8px; }
.search { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); max-width: 640px; margin: 16px 0 12px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 10px 10px; background: transparent; }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 18px; font: inherit; font-weight: 650; cursor: pointer; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: .9rem; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 6px 12px; color: var(--ink); font-size: .9rem; text-align: center; }
.cat:hover { border-color: var(--brand); text-decoration: none; }
.cat.on { border-color: var(--brand); background: var(--brand-soft); }
.cat-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; }
.cat-ic img { width: 100%; height: 100%; object-fit: cover; }

/* service cards */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,32,28,.1); text-decoration: none; }
.card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), #f6efe0); display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.emoji { font-size: 2.6rem; filter: saturate(1.1); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .92rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; color: var(--brand); }
.rating { font-size: .9rem; white-space: nowrap; }
.star { color: var(--accent); }
.tag { background: #f3efe4; color: #7a5a12; border-radius: 999px; padding: 2px 10px; font-size: .8rem; }

/* boxes */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.box.no .ticks li::before { content: "✕"; color: var(--danger); }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { padding: 3px 0; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--ink-2); }
.pkgs { list-style: none; padding: 0; margin: 0; }
.pkgs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pkgs .price { white-space: nowrap; }
.pkgs li:first-child { border-top: 0; }
.reviews { list-style: none; padding: 0; margin: 0; }
.reviews li { border-top: 1px solid var(--line); padding: 10px 0; }
.reviews li:first-child { border-top: 0; }
.rv-head { display: flex; justify-content: space-between; gap: 8px; }
.guarantee { background: var(--brand-soft); border-radius: var(--radius); padding: 18px; }
.guarantee ul { margin: 0; padding-left: 1.2em; }

/* how it works */
.how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.how-list li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.how-list p { color: var(--ink-2); margin: 0; font-size: .94rem; }

/* service page */
.crumbs { font-size: .88rem; color: var(--muted); margin: 14px 0 4px; }
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .svc-side { position: sticky; top: 76px; } .sticky-cta { display: none !important; } }
.svc-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: linear-gradient(135deg, var(--brand-soft), #f6efe0); display: grid; place-items: center; margin-top: 8px; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-cover .emoji { font-size: 4rem; }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lead { font-size: 1.06rem; color: var(--ink-2); margin-top: 10px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side-price { font-size: 1.3rem; font-weight: 750; color: var(--brand); margin-bottom: 12px; }
.side-points { list-style: none; padding: 0; margin: 12px 0 0; color: var(--ink-2); font-size: .92rem; }
.side-points li { padding: 2px 0; }
.sticky-cta { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
@media (max-width: 899px) { .page-service .svc-side { display: none; } }

/* app band + footer */
.app-band { background: var(--brand); color: #fff; margin: 40px 0 0; padding: 26px 0; }
.app-band h2 { margin-bottom: 4px; }
.app-band p { color: #d8ece5; margin: 0; }
.app-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #0e1513; color: #fff; font-weight: 600; font-size: .92rem; }
.store:hover { text-decoration: none; background: #000; }
.notice .store { background: var(--ink); }
.foot { background: #fff; border-top: 1px solid var(--line); padding: 22px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.foot p { margin: 4px 0; }

/* empty / misc */
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.big-emoji { font-size: 2.6rem; margin: 0; }
.my-requests { margin-top: 22px; }
.my-list { display: grid; gap: 8px; }
.my-list a { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--ink); }

/* guided request flow */
.page-request main { min-height: 70vh; }
.flow { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 18px 16px; margin: 10px 0 14px; }
.flow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .25s; }
.flow-count { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.flow h2 { font-size: 1.35rem; margin-bottom: .3em; }
.flow .help { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.opts { display: grid; gap: 10px; margin: 12px 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.opt:hover { border-color: #b8cbc4; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt .sub { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.opt .right { font-weight: 700; color: var(--brand); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .94rem; cursor: pointer; color: var(--ink); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 10px 0; }
.day { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; text-align: center; font: inherit; cursor: pointer; color: var(--ink); line-height: 1.25; }
.day b { display: block; font-size: 1.1rem; }
.day small { color: var(--muted); }
.day.on { border-color: var(--brand); background: var(--brand-soft); }
label.f { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .95rem; }
label.f .opt-tag { color: var(--muted); font-weight: 400; font-size: .85rem; }
.in { width: 100%; font: inherit; font-size: 1rem; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,92,.12); }
textarea.in { min-height: 110px; resize: vertical; }
.stepper { display: inline-flex; align-items: center; gap: 14px; margin: 10px 0; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--brand); }
.stepper b { font-size: 1.4rem; min-width: 3ch; text-align: center; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.addon:first-child { border-top: 0; }
.addon .stepper { margin: 0; gap: 8px; }
.addon .stepper button { width: 34px; height: 34px; font-size: 1.05rem; }
.addon .stepper b { font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.flow-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.flow-nav .btn { min-width: 140px; }
.estimate { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; margin-top: 14px; }
.estimate b { color: var(--brand-dark); font-size: 1.15rem; }
.error { color: var(--danger); font-size: .92rem; margin: 10px 0 0; }
.review-list { margin: 8px 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0; }
.thumbs figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--brand); color: var(--brand); border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: 600; }
.file-btn input { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* tracking */
.success { text-align: center; background: linear-gradient(180deg, #eaf6f1, #fff); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code { font: 700 1.4rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; margin: 0; }
.status { font-weight: 650; color: var(--brand-dark); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.progress li span { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: var(--line); color: #fff; font-weight: 700; }
.progress li.on { color: var(--brand-dark); font-weight: 600; }
.progress li.on span { background: var(--brand); }
.progress.canceled li.on span { background: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.lines { list-style: none; padding: 0; margin: 8px 0; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines .sum { font-weight: 750; font-size: 1.08rem; }
.actions, .confirm { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.confirm { align-items: center; background: #fff5f3; border: 1px solid #f2c9c2; border-radius: 12px; padding: 12px; }
.confirm p { margin: 0; flex-basis: 100%; }
.notice { border-color: #f0d9a2; background: #fffaf0; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { padding: 5px 0; border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; }

/* pros & quotes (marketplace) */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; background: #eef1f0; color: var(--ink-2); margin: 2px 4px 2px 0; white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-dark); }
.badges { display: flex; flex-wrap: wrap; margin-top: 4px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 750; font-size: 1.3rem; color: var(--brand-dark); }
.offer-list { list-style: none; padding: 0; margin: 0; }
.offer { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.offer.chosen { border-color: var(--brand); background: #fbfdfc; }
.offer-head { display: flex; gap: 12px; align-items: flex-start; }
.offer-who { flex: 1; min-width: 0; }
.offer-who a { color: var(--ink); }
.offer-price { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.offer-msg { margin: 10px 0 6px; white-space: pre-wrap; }
.offer-act { display: flex; justify-content: flex-end; margin-top: 8px; }
.offer-act .btn { width: 100%; }
.pro-hero { display: flex; gap: 16px; align-items: center; }
.pro-hero h1 { margin: 0 0 4px; font-size: 1.4rem; }
.pro-hero .avatar { width: 72px; height: 72px; }
.pre { white-space: pre-wrap; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.join-hero { background: linear-gradient(160deg, #e7f2ee, #f6f8f7 70%); }
.top-nav .nav-join { font-weight: 600; }
@media (max-width: 560px) { .top-nav .nav-join { display: none; } }

/* rentals + second-hand (classifieds) */
.top-nav .nav-extra { font-weight: 600; }
@media (max-width: 760px) { .top-nav .nav-extra { display: none; } }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); }
.channel:hover { text-decoration: none; border-color: var(--brand); }
.channel h3 { margin: 0 0 2px; }
.channel p { margin: 0; }
.channel .ch-ic { font-size: 30px; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.channel.rent .ch-ic { background: #fff3e0; }
.channel.used .ch-ic { background: #fce8ec; }
.channel.hub .ch-ic { background: #e8f0fb; } /* 同城信息 card (round 20) */
@media (max-width: 480px) { .channels { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.filters input, .filters select { font: inherit; font-size: .92rem; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.filters input[type=search] { flex: 1 1 220px; }
.filters input[type=number] { width: 96px; }
.filters select { flex: 0 1 auto; }
.filters .btn { min-height: 40px; }
.listing-card .card-foot { flex-wrap: wrap; gap: 4px 10px; }
.listing-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); margin: 8px 0 4px; }
.gallery img { flex: 0 0 88%; max-height: 340px; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; background: var(--line); }
.gallery img:only-child { flex-basis: 100%; }
.listing-price { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); margin: 0 0 8px; }
.poster { display: flex; gap: 12px; align-items: center; }
.poster .avatar { width: 48px; height: 48px; }
.safety { background: #fffaf0; border-color: #f2d899; }
.fair-housing { margin: 16px 0; text-align: center; }
.post-cta { margin-top: 24px; }
.listing-card .card-media:not(.has-img) { height: 110px; aspect-ratio: auto; }
.listing-card .card-media:not(.has-img) .emoji { font-size: 40px; }
/* Invite code from a shared link (?ref=) */
.ref-banner{background:#fff7e6;border-bottom:1px solid #f3dcae;color:#7a4b00;font-size:14px;padding:8px 0}
/* Rules page (/rules) and links to it */
.rules-list{margin:0;padding-left:22px}.rules-list li{margin:6px 0;line-height:1.55}.rules-link{margin-top:10px}.cancel-rules .ticks{margin-bottom:6px}
/* Pro storefront work photos (batch 6) */
.gallery figure { flex: 0 0 70%; margin: 0; scroll-snap-align: start; }
/* A work the pro pinned to the top of their page (verified members, pro-shop.js) */
.gallery figure.work-pinned { position: relative; }
.work-pin { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgba(31, 111, 92, .92); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 999px; }
.gallery figure img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); background: var(--line); display: block; }
.gallery figcaption { margin-top: 4px; color: var(--muted, #666); }
/* Family share page (batch 8): steps not reached yet are grey */
.page-share .todo .how-n { background: var(--line); color: transparent; }
.page-share .todo strong { color: var(--muted, #777); font-weight: 500; }
/* Round 3: page links under rentals / second-hand */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px 0 8px; }
.pager .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* Round 3: WeChat "open in browser" hint and the sticky contact bar on phones */
.wx-hint { position: fixed; top: 8px; right: 8px; left: 8px; z-index: 50; background: #1f2a28; color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.wx-hint p { margin: 0 0 10px; line-height: 1.6; } .wx-hint button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: #fff; color: #1f2a28; font-weight: 600; }
.contact-bar { display: none; }
@media (max-width: 760px) {
  .contact-bar { display: block; position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(246,248,247,0), #f6f8f7 30%); }
  .contact-bar .btn { display: flex; justify-content: center; width: 100%; min-height: 48px; }
}

/* Round 3 (item 145): phone menu for the links the header hides, and 44px tap targets */
.top-nav .menu { display: none; position: relative; }
.top-nav .menu summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; border-radius: 10px; }
.top-nav .menu summary::-webkit-details-marker { display: none; }
.top-nav .menu[open] summary { background: var(--brand-soft); }
.top-nav .menu-panel { position: absolute; right: 0; top: 48px; z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; }
.top-nav .menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; }
.top-nav .menu-panel a:hover { background: var(--brand-soft); }
.top-nav .lang { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }
@media (max-width: 760px) { .top-nav .menu { display: block; } }
@media (max-width: 760px) { .top-nav > a[href$="/services"] { display: none; } }
.top-nav .btn { white-space: nowrap; }
@media (max-width: 420px) { .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } } /* hidden from sight, still the link's name for screen readers (batch 5) */
.top-nav .menu-panel { left: 0; right: auto; }

/* Round 4: a gentle warning line (e.g. photos that did not upload) */
.warn { color: #9a3412; font-weight: 600; }
/* Round 4 (item 192): optional contact extras folded away */
.more-contact { margin-top: 12px; }
.more-contact summary { cursor: pointer; color: var(--brand-dark, #1f6f5c); font-weight: 600; padding: 6px 0; }


/* Round 4 (item 195): call / WeChat under the main button */
.consult { margin-top: 8px; }
.consult .btn { margin-bottom: 6px; }
/* Round 4 (item 198): images keep their box while loading (no jumping) */
.card-media img, .svc-cover img { width: 100%; height: auto; aspect-ratio: auto 600 / 400; object-fit: cover; }
.svc-cover img { aspect-ratio: 1200 / 630; }

/* Phase 1 sponsored cards (web-ads.js): same card as services, with a clear "推广 / Sponsored" tag. */
.sponsored { margin-top: 18px; }
.sponsored .sec-head .small { white-space: nowrap; }
.ad-card .card-media { position: relative; }
.ad-tag { position: absolute; top: 8px; left: 8px; background: rgba(20, 28, 26, .72); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 650; letter-spacing: .02em; }
.ad-pro { color: var(--ink-2); font-size: .88rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ad-px { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ad-strip { grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ad-strip > .card { scroll-snap-align: start; }
/* Batch 5: paid post pins (ads.js) */
.pin-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: #fff1d6; color: #9a5b00; font-size: .75rem; font-weight: 650; vertical-align: 2px; }
/* Batch 6: 商家推广 page (web-advertise.js) */
.adv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.adv-card { background: #fff; border: 1px solid #e6ece9; border-radius: 12px; padding: 16px; }
.adv-card h3 { margin: 0 0 6px; }
.adv-price { font-size: 1.25rem; font-weight: 700; color: #1f6f5c; margin: 10px 0 4px; }
.adv-offer { background: #fff7ea; border-color: #f6dfb5; }
.adv-left { font-weight: 650; color: #9a5b00; }
.adv-q { border-top: 1px solid #eef1ef; padding: 10px 0; }
.adv-q summary { cursor: pointer; font-weight: 600; }
.adv-q p { margin: 8px 0 0; }
.adv-entry { text-align: center; }
/* 附近好店 (web-shops.js) */
.cards .shop-card{flex-direction:row}.shop-card .card-media{display:flex;align-items:center;justify-content:center;aspect-ratio:auto;width:104px;min-width:104px}.shop-card .card-media img{height:100%;min-height:104px}.shop-icon{font-size:36px}.shop-card .card-foot{flex-wrap:wrap;justify-content:flex-start}.shop-card h3{font-size:1rem}
.chips.scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.chips.scroll .chip{flex:none}.shop-ok{color:#1F6F5C;font-size:.8em;font-weight:600}
.shop-now{font-size:13px;font-weight:600}.shop-now.open{color:#1F6F5C}.shop-now.closed{color:#b54708}.shop-now.unknown{color:#667085}.shop-now.big{font-size:16px;margin:4px 0 10px}
.tag.shop-deal{background:#fde8e6;color:#b3241b}.shop-sort{margin:6px 0 12px}.chip.on{background:#1F6F5C;color:#fff;border-color:#1F6F5C}
.shop-photos{display:grid;grid-template-columns:2fr 1fr;gap:6px;margin-bottom:10px}.shop-photos img{width:100%;height:100%;max-height:260px;object-fit:cover;border-radius:10px}.shop-photos img:first-child{grid-row:span 3}
.shop-hours{border-collapse:collapse;margin:6px 0}.shop-hours th{text-align:left;padding:3px 14px 3px 0;font-weight:500;color:#475467}.shop-hours td{padding:3px 0}.shop-hours tr.today{font-weight:700}
.shop-review{border-top:1px solid #eaecf0;padding:8px 0}.shop-deal-row{margin:6px 0}.note{background:#fff8e6;border:1px solid #f3d28a;border-radius:10px;padding:8px 12px}
/* Read by screen readers, not shown: a heading between the page title and its list of cards (batch 5: h1 → h3 skipped a level). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
/* Quality batch 5 (docs/web-a11y.md): grey words at least 4.5:1 (--muted #6f7976 was 4.2:1 on the page background, now
   5.1:1; --ok #1e8e5a was 3.7:1 on the green "已完成" label, #17704a is 5.4:1); tap areas at least 44 × 44 on phones, as in the App, and 24 × 24 on larger screens (WCAG 2.5.8). Links inside
   a line of text keep their size (the account pages' "← 我的订单" is a link of its own, other breadcrumbs are text). */
.foot-in a, .sec-head a, main p > a:only-child, h2 > a:only-child, #acct .crumbs > a, .shop-deal-row a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 600px) {
  .top .logo { min-height: 44px; min-width: 44px; }
  .btn-small { min-height: 44px; }
  .quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
  .chip { min-height: 44px; }
  .filters input, .filters select, .filters button, .filters .btn { min-height: 44px; }
  .foot-in a, .sec-head a, main p > a:only-child, h2 > a:only-child, #acct .crumbs > a { min-height: 44px; }
  .adv-q summary { min-height: 44px; display: flex; align-items: center; }
  .shop-deal-row a { min-height: 44px; }
}
/* The search box: on a narrow screen (a phone at 200 % zoom) the button goes under the field, which keeps the full width
   (it was squeezed to a few points). The red of deals: #b3241b, 5.6:1 on its pink (#d93026 was 4.1:1). */
@media (max-width: 420px) { .search { flex-wrap: wrap; } .search input { flex: 1 1 100%; } .search button { flex: 1 1 100%; min-height: 44px; } }
/* 商家自己管店 (merchant-shops.js): menu / prices, 暂停营业, the shop's replies */
.shop-menu { list-style: none; margin: 0; padding: 0; } .shop-menu li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.shop-menu .mp { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; } .menu-group { font-size: 1rem; margin: 12px 0 2px; }
.shop-reply { margin: 6px 0 0 12px; padding: 8px 10px; border-left: 3px solid var(--brand-soft, #e3f1ec); background: #f7faf9; border-radius: 0 8px 8px 0; } .shop-reply p { margin: 2px 0; }
.shop-closed { margin-top: 6px; }
