:root {
  color-scheme:light;
  --font:-apple-system,BlinkMacSystemFont,"Inter","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --canvas:#f5f7fb; --paper:#fff; --ink:#17233a; --muted:#54627a; --subtle:#667590;
  --brand:#254cce; --brand-dark:#1b3ba9; --brand-light:#ebf0ff; --brand-border:#d4dfff;
  --line:#e1e7f1; --tint:#f6f8fc; --night:#132856; --sky:#263e90; --hero-text:#fff;
  --hero-sub:#dce7ff; --ridge:#a4c1ff46; --ridge-fill:#5b7bdf25; --glass:#ffffffef;
  --danger:#a23b24; --danger-bg:#fff3ee; --focus:#315bd8; --veil:#101e3e6e;
  --shadow:0 8px 28px #1b306315; --dock-shadow:0 8px 36px #142a5a24;
  --radius:18px; --press:130ms; --safe-bottom:env(safe-area-inset-bottom,0px);
}
* { box-sizing:border-box }
[hidden] { display:none!important }
html,body { margin:0; overflow-x:clip; scroll-padding-top:88px }
body { background:var(--canvas); color:var(--ink); font:1rem/1.52 var(--font); padding-bottom:calc(88px + var(--safe-bottom)) }
h1,h2,h3,p { margin:0; min-width:0; overflow-wrap:break-word }
h1,h2 { text-wrap:balance }
button,input,select,textarea { color:inherit; font:inherit }
button { cursor:pointer; -webkit-tap-highlight-color:transparent }
a { color:var(--brand-dark); text-underline-offset:3px }
:where(button,a,input,select,textarea):focus-visible { outline:3px solid var(--focus); outline-offset:3px }
.wrap { width:min(calc(100% - 32px),1072px); margin-inline:auto }
.symbols { position:absolute; width:0; height:0; overflow:hidden }
.icon { display:block; width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.sr-only { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap }
.skip-link { position:absolute; inset:0 auto auto 12px; z-index:8; padding:12px; transform:translateY(-160%); background:var(--paper) }
.skip-link:focus { transform:none }
.topbar { position:sticky; inset:0 0 auto; z-index:3; border-bottom:1px solid var(--line); background:var(--glass); backdrop-filter:blur(18px) saturate(120%) }
.topbar-inner { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:12px }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; line-height:1.12 }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; color:var(--hero-text); background:var(--brand); box-shadow:0 3px 9px var(--brand-border) }
.brand-mark .icon { width:26px; height:26px }
.brand b { display:block; font-size:1.32rem; letter-spacing:-.02em }
.brand small { display:block; margin-top:3px; color:var(--muted); font-size:.72rem; font-weight:550; white-space:nowrap }
.account-actions { display:flex; align-items:center; gap:8px }
.button,.city,.scene-button,.row-open,.tab,.segment { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:8px 13px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); line-height:1.23; font-size:.875rem; font-weight:670; text-decoration:none; transition:background-color var(--press),color var(--press),transform var(--press) ease }
.button:active,.city:active,.scene-button:active,.row-open:active,.tab:active,.segment:active { transform:scale(.97); transition-duration:70ms }
.button:hover,.city:hover,.scene-button:hover,.row-open:hover,.segment:hover { background:var(--brand-light) }
.button .icon { width:17px; height:17px }
.button.primary { border-color:var(--brand); background:var(--brand); color:var(--hero-text) }
.button.primary:hover { background:var(--brand-dark); border-color:var(--brand-dark) }
.button.plain { border-color:transparent; background:transparent; color:var(--brand-dark) }
.button.plain:hover { background:var(--brand-light) }
.button[disabled] { cursor:not-allowed; border-color:var(--line); background:var(--tint); color:var(--subtle) }
.location-button { border-color:transparent; background:var(--tint); padding-inline:10px; max-width:17ch }
.location-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.location-button .chevron { width:13px; height:13px }
.top-publish { white-space:nowrap }
.intro { position:relative; isolation:isolate; overflow:hidden; margin-block:22px; padding:27px 30px 28px; min-height:200px; border-radius:24px; color:var(--hero-text); background:linear-gradient(112deg,var(--night),var(--sky)) }
.intro-body { position:relative; z-index:1; max-width:540px }
.intro h1 { font-size:clamp(2rem,4vw,3.65rem); font-weight:760; line-height:1.09; letter-spacing:-.056em }
.intro-copy { margin-block:8px 15px; color:var(--hero-sub); font-size:.95rem }
.search { display:flex; align-items:center; gap:7px; border-radius:14px; width:min(100%,458px); padding:4px 4px 4px 13px; background:var(--paper); color:var(--ink); box-shadow:var(--shadow) }
.search > .icon { width:19px; height:19px; color:var(--muted) }
.search input { width:100%; min-width:0; min-height:42px; border:0; border-radius:8px; padding:4px; background:transparent }
.search .button { flex:none; white-space:nowrap; border-radius:10px; padding-inline:15px }
.terrain { position:absolute; z-index:0; inset:auto 1% -52% auto; width:min(50%,470px); aspect-ratio:1.1; pointer-events:none }
.terrain span { position:absolute; inset:0; border:1px solid var(--ridge); background:var(--ridge-fill); border-radius:24%; transform:rotate(-37deg) skew(8deg); transform-origin:50% 65% }
.terrain span:nth-child(2) { transform:translate(-13%,-10%) rotate(-37deg) skew(8deg) }
.terrain span:nth-child(3) { transform:translate(-26%,-20%) rotate(-37deg) skew(8deg) }
.terrain span:nth-child(4) { transform:translate(-39%,-30%) rotate(-37deg) skew(8deg) }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px }
.section-heading h2 { font-size:1.36rem; font-weight:730; letter-spacing:-.027em; line-height:1.24 }
.section-heading p { color:var(--muted); text-align:right; font-size:.84rem; font-variant-numeric:tabular-nums }
.scenes { margin-block:13px 22px }
.scene-strip { display:grid; grid-auto-columns:minmax(107px,1fr); grid-auto-flow:column; gap:8px; overflow-x:auto; scrollbar-width:thin }
.scene-button { padding:10px 4px; min-height:82px; flex-direction:column; gap:7px; text-align:center; border-radius:15px; color:var(--ink); font-size:.8rem }
.scene-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--brand-light); color:var(--brand-dark) }
.scene-icon .icon { width:19px; height:19px }
.market { min-height:280px; scroll-margin-top:84px }
.market-head { padding:14px 16px 12px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper) }
.view-switch { display:flex; gap:4px; align-items:center; margin-block:8px 2px }
.view-switch:empty { display:none }
.segment { min-height:41px; padding:8px 12px; background:var(--tint); border-color:var(--line); color:var(--muted) }
.segment[aria-current=page] { color:var(--brand-dark); background:var(--brand-light); border-color:var(--brand-border) }
.filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:7px; margin-top:9px }
.filters:empty { display:none }
.filter-extra { display:flex; flex-wrap:wrap; gap:7px; flex:1 0 100%; min-width:0 }
.filter-button { background:var(--tint); white-space:nowrap }
.field,.filters label { display:flex; flex-direction:column; align-items:stretch; gap:5px; min-width:0; font-weight:650; font-size:.83rem }
.filters label { flex:0 1 155px }
.field-help { color:var(--muted); font-weight:400 }
select,.field input,.field textarea { width:100%; min-width:0; min-height:44px; border:1px solid var(--line); background:var(--tint); border-radius:10px; padding:8px 9px; color:var(--ink); font-size:1rem }
.filters select { font-size:.875rem }
textarea { min-height:116px; resize:vertical }
.result-meta { padding:10px 2px; min-height:32px; color:var(--muted); font-size:.84rem }
.result-meta:empty { min-height:6px; padding:0 }
.rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.row { min-width:0; display:flex; flex-direction:column; justify-content:space-between; gap:10px; padding:13px 15px 10px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:0 3px 12px var(--line) }
.card-top,.card-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0 }
.card-top { align-items:flex-start }
.card-main { flex:1; min-width:0 }
.card-main h3,.row h3 { margin-block:6px 4px; font-size:1rem; font-weight:720; line-height:1.38 }
.row-summary { color:var(--muted); font-size:.9rem; line-height:1.46 }
.row .row-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden }
.row-facts { display:flex; flex-wrap:wrap; gap:3px 8px; align-items:center; color:var(--muted); font-size:.79rem; overflow-wrap:anywhere }
.row-facts strong { color:var(--ink); font-weight:650 }
.pill { display:inline-flex; max-width:100%; border-radius:6px; padding:3px 6px; color:var(--brand-dark); background:var(--brand-light); font-size:.74rem; line-height:1.24; overflow-wrap:anywhere }
.pill.demo { color:var(--danger); background:var(--danger-bg) }
.row-price { max-width:38%; color:var(--brand-dark); text-align:right; font-size:.98rem; font-weight:740; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; line-height:1.25 }
.row-price small { display:block; color:var(--muted); font-size:.69rem; font-weight:540; margin-top:3px; white-space:normal }
.row-open { padding:8px 11px; min-height:44px; flex:none; color:var(--brand-dark); background:var(--tint) }
.card-bottom { justify-content:flex-end; border-top:1px solid var(--line); margin-top:1px; padding-top:4px }
.source-link { display:inline-flex; align-items:center; gap:4px; min-height:44px; color:var(--brand-dark); font-weight:650; text-decoration:none; font-size:.83rem; overflow-wrap:anywhere }
.source-link .icon { width:13px; height:13px }
.source-link:hover { text-decoration:underline }
.provenance { border-top:1px solid var(--line); color:var(--muted); margin-top:16px; font-size:.84rem }
.provenance summary { min-height:44px; padding-block:11px; cursor:pointer }
.provenance p { margin-bottom:0 }
.provenance .source-link { margin-right:14px }
.feed-tail { text-align:center; margin-block:10px; min-height:24px; color:var(--subtle); font-size:.82rem }
.feed-tail:empty { display:none }
.feed-tail .button { min-height:44px; padding-inline:18px }
.empty { padding:22px 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); color:var(--muted) }
.empty .button { margin:9px 6px 0 0 }
.footer { display:flex; flex-wrap:wrap; align-items:center; gap:4px 15px; margin-block:20px; color:var(--muted); font-size:.82rem }
.footer b { color:var(--ink); font-size:1rem }
.footer a { display:inline-flex; align-items:center; min-height:44px }
.dock { position:fixed; z-index:4; bottom:calc(9px + var(--safe-bottom)); left:50%; transform:translateX(-50%); width:min(calc(100% - 24px),510px); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:stretch; gap:3px; padding:5px; border:1px solid var(--line); border-radius:22px; background:var(--glass); backdrop-filter:blur(20px) saturate(120%); box-shadow:var(--dock-shadow) }
.tab { min-height:54px; padding:5px 3px; border:0; gap:4px; flex-direction:column; background:transparent; color:var(--muted); border-radius:16px; font-size:.74rem; white-space:normal }
.tab .icon { width:21px; height:21px }
.tab:hover { background:var(--tint); color:var(--brand-dark) }
.tab[aria-current=page] { background:var(--brand-light); color:var(--brand-dark) }
.tab.dock-order .icon { stroke-width:2 }
.modal { width:min(calc(100% - 32px),660px); max-height:min(85dvh,730px); margin:auto; padding:0 18px 18px; border:1px solid var(--line); border-radius:22px; color:var(--ink); background:var(--paper); box-shadow:var(--dock-shadow); overscroll-behavior:contain }
.modal::backdrop { background:var(--veil); backdrop-filter:blur(2px) }
.modal[open] { animation:sheet-enter 190ms cubic-bezier(.2,.77,.34,1) both }
@keyframes sheet-enter { from { transform:translateY(16px); opacity:.6 } to { transform:translateY(0); opacity:1 } }
.modal-head { position:sticky; z-index:1; top:0; display:flex; justify-content:space-between; align-items:center; gap:8px; padding-block:13px 10px; margin-bottom:7px; border-bottom:1px solid var(--line); background:var(--paper) }
.modal-head h2 { font-size:1.22rem; line-height:1.3 }
.modal .close { border:0; flex:none; width:44px; padding:0; border-radius:50%; background:var(--tint); color:var(--muted) }
.modal .close .icon { width:21px; height:21px }
.modal p { margin-bottom:10px; overflow-wrap:anywhere }
.detail-list { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 10px; margin-block:12px 16px; font-size:.91rem }
.detail-list dt { color:var(--muted) }
.detail-list dd { margin:0; overflow-wrap:anywhere }
.modal form { display:grid; gap:11px }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
.form-error { color:var(--danger); margin:0 }
.form-error:empty { display:none }
.detail-actions { display:flex; gap:7px; flex-wrap:wrap; align-items:center; margin-block:5px }
.offer,.section-block { padding-block:12px; border-top:1px solid var(--line) }
.section-block h3 { margin-bottom:5px; font-size:1rem }
.section-block .rows { margin-top:9px }
.city-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px }
.city[aria-pressed=true] { color:var(--brand-dark); border-color:var(--brand-border); background:var(--brand-light) }
.toast { position:fixed; right:12px; bottom:calc(76px + var(--safe-bottom)); z-index:5; padding:10px 13px; border-radius:12px; color:var(--hero-text); background:var(--night); box-shadow:var(--shadow); max-width:min(calc(100% - 24px),450px); font-size:.9rem }
@media (max-width:760px) {
  html,body { scroll-padding-top:70px }
  .topbar-inner { min-height:63px; gap:5px }
  .brand { gap:7px }
  .brand-mark { width:36px; height:36px; border-radius:12px }
  .brand-mark .icon { width:22px; height:22px }
  .brand b { font-size:1.15rem }
  .brand small { font-size:.68rem }
  .account-actions { gap:3px }
  .top-publish,.location-button { padding-inline:7px; font-size:.82rem }
  .location-button .chevron { display:none }
  .location-button { max-width:13ch }
  .intro { min-height:0; margin-block:12px 10px; padding:19px 15px 14px; border-radius:20px }
  .intro h1 { font-size:clamp(1.8rem,7.4vw,2.5rem) }
  .intro-copy { font-size:.85rem; margin-block:7px 12px }
  .terrain { width:54%; inset:auto -12% -51% auto }
  .scenes { margin-block:9px 15px }
  .section-heading { margin-bottom:4px }
  .section-heading h2 { font-size:1.16rem }
  .scenes .button.plain { padding-inline:4px }
  .scene-strip { display:flex; overflow-x:auto; scrollbar-width:thin; scroll-snap-type:x proximity; gap:7px; padding-bottom:5px }
  .scene-button { flex:0 0 86px; min-height:73px; scroll-snap-align:start }
  .market { scroll-margin-top:67px }
  .market-head { padding:10px 11px; border-radius:16px }
  .filters label { flex:1 1 calc(33% - 7px) }
  .filters label:last-of-type { max-width:100% }
  .filters > label { flex-basis:calc(35% - 7px) }
  .filter-button { flex:0 0 auto; min-width:52px }
  .filters select { padding-inline:5px }
  .rows { grid-template-columns:minmax(0,1fr); gap:7px }
  .row { border-radius:16px; padding:11px 11px 7px; gap:8px }
  .card-top,.card-bottom { gap:7px }
  .card-main h3,.row h3 { font-size:.98rem }
  .row .row-summary { font-size:.865rem }
  .row-price { max-width:34%; font-size:.91rem }
  .row-open { padding-inline:9px }
  .source-link { font-size:.79rem }
  .modal { inset:auto 0 0; width:100%; max-width:none; max-height:min(86dvh,780px); margin:auto 0 0; padding:0 15px calc(16px + var(--safe-bottom)); border-radius:23px 23px 0 0 }
  .modal form .button.primary { width:100% }
  .modal .detail-actions .button.primary { flex:1 1 auto }
  .modal .field { font-size:.9rem }
  .footer { margin-top:12px }
}
@media (max-width:370px) {
  .wrap { width:calc(100% - 22px) }
  .brand small { display:none }
  .brand-mark { width:33px; height:33px }
  .account-actions .icon { width:15px; height:15px }
  .filters label { flex-basis:calc(49% - 7px) }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
}
@media (prefers-reduced-transparency:reduce) {
  .topbar,.dock { background:var(--paper); backdrop-filter:none }
}
