:root {
    color-scheme: light;
    --ink: #20312c;
    --muted: #64736d;
    --line: #dfe7e2;
    --brand: #287054;
    --surface: #f6f8f6
}

.platform-ad-stack-home .platform-ad-video { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #111; }
.platform-ad-stack-home .platform-ad-video-link { padding: 10px 16px; color: var(--forest); font-size: 14px; }
.platform-ad-slot-home-top, .platform-ad-slot-home-before-help { min-width: 0; }
.platform-ad-fullscreen-open { overflow: hidden; }
.home-page .platform-ad-slot-home-fullscreen { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #101815; color: #fff; overflow: hidden; }
.platform-ad-slot-home-fullscreen[open] { display: block; }
.platform-ad-slot-home-fullscreen[hidden] { display: none; }
.platform-ad-slot-home-fullscreen::backdrop { background: transparent; }
.platform-ad-slot-home-fullscreen.is-revealing { animation: platform-ad-curtain 550ms ease-out both; }
.platform-ad-slot-home-fullscreen.is-closing { animation: platform-ad-fade 350ms ease-in both; }
.platform-ad-slot-home-fullscreen > .platform-ad { width: 100%; height: 100%; background: #101815; }
.platform-ad-slot-home-fullscreen .platform-ad-type-image > a { height: 100%; }
.platform-ad-slot-home-fullscreen .platform-ad-type-image img, .platform-ad-slot-home-fullscreen .platform-ad-video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.platform-ad-slot-home-fullscreen .platform-ad-html { display: grid; height: 100%; padding: 64px 24px; place-content: center; overflow: auto; background: #fff; color: var(--ink); }
.platform-ad-slot-home-fullscreen .platform-ad-video-link { position: absolute; right: 24px; bottom: 64px; z-index: 2; border-radius: 6px; background: #fff; color: #173c2e; }
.platform-ad-slot-home-fullscreen .platform-ad-sound { position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff70; border-radius: 50%; background: #000b; color: #fff; cursor: pointer; }
.platform-ad-slot-home-fullscreen .platform-ad-sound[hidden] { display: none; }
.platform-ad-slot-home-fullscreen .platform-ad-sound svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-ad-slot-home-fullscreen .platform-ad-sound:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.platform-ad-slot-home-fullscreen .platform-ad-sound:disabled { cursor: wait; opacity: .75; }
.platform-ad-slot-home-fullscreen .platform-ad-close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 3; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; background: #0009; color: #fff; font-size: 28px; }
.platform-ad-fullscreen-notice { position: absolute; left: 50%; bottom: max(88px, env(safe-area-inset-bottom)); z-index: 2; max-width: calc(100% - 32px); padding: 6px 10px; border-radius: 4px; transform: translateX(-50%); background: #0009; color: #fff; font-size: 12px; text-align: center; pointer-events: none; }
@keyframes platform-ad-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes platform-ad-fade { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 600px) {
    .home-page .platform-ad-slot-home-top .platform-ad-html,
    .home-page .platform-ad-slot-home-top .platform-ad-html * { font-size: 1rem !important; }
    .platform-ad-slot-home-top .platform-ad-video { max-height: 240px; }
    .platform-ad-slot-home-before-help .platform-ad-video { max-height: 280px; }
    .platform-ad-slot-home-fullscreen .platform-ad-html { padding: 64px 16px 32px; }
    .platform-ad-slot-home-fullscreen .platform-ad-video-link { right: 16px; bottom: max(72px, env(safe-area-inset-bottom)); }
    .platform-ad-fullscreen-notice { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .platform-ad-slot-home-fullscreen.is-revealing, .platform-ad-slot-home-fullscreen.is-closing { animation: none; }
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, "Microsoft YaHei", sans-serif
}

a {
    color: inherit
}

.home-header {
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.home-header-inner,
.home-main {
    width: 100%;
    max-width: none;
    margin: auto;
    padding: 0 var(--public-page-gutter)
}

.home-header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.home-brand {
    font-size: 20px;
    font-weight: 750;
    text-decoration: none
}

.home-nav {
    display: flex;
    gap: 18px
}

.home-nav a {
    text-decoration: none;
    color: var(--muted)
}

.home-nav a:hover {
    color: var(--brand)
}

.home-hero {
    background: #fff;
    padding: 48px 0 32px
}

.home-hero>.home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.home-hero-title {
    margin: 0 0 18px;
    font-size: 32px;
    letter-spacing: .01em;
    text-align: center
}

.home-hero h1 {
    margin: 0 0 8px;
    font-size: 44px;
    letter-spacing: 0
}

.home-hero p {
    margin: 0;
    color: var(--muted)
}

.home-hero-note {
    width: 100%;
    text-align: center
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important
}

.home-location-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 760px);
    margin-bottom: 22px
}

.home-location-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

.home-location-trigger:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.home-location-pin {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf3ed;
    color: var(--brand);
    font-size: 16px
}

.home-location-change {
    padding-left: 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600
}

.home-keyword-form {
    flex: 1;
    max-width: 520px;
    text-align: left
}

.home-filter-state {
    position: absolute !important;
    left: -10000px !important;
    width: 160px !important;
    height: 42px !important;
    opacity: 0 !important;
    pointer-events: none !important
}

.home-keyword-control {
    display: flex;
    align-items: center;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #f8faf8
}

.home-keyword-control input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit
}

.home-keyword-control button {
    width: 48px;
    height: 100%;
    border: 0;
    background: var(--brand);
    color: #fff;
    font-size: 20px;
    cursor: pointer
}

.home-service-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    text-align: left
}

.home-service-tabs button {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 82px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: .18s ease
}

.home-service-tabs button>span {
    grid-row: 1/3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #edf5ef;
    color: var(--brand);
    font-size: 22px
}

.home-service-tabs button strong {
    font-size: 17px
}

.home-service-tabs button small {
    color: var(--muted);
    font-size: 12px
}

.home-service-tabs button:hover {
    border-color: #a9c8b5;
    transform: translateY(-1px)
}

.home-service-tabs button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(31, 75, 64, .16)
}

.home-service-tabs button.is-active>span {
    background: rgba(255, 255, 255, .16);
    color: #fff
}

.home-service-tabs button.is-active small {
    color: rgba(255, 255, 255, .78)
}

.home-privacy-tip {
    font-size: 12px
}

.city-picker-dialog {
    width: min(980px, calc(100% - 24px));
    height: min(820px, calc(100% - 24px));
    max-height: none;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(16, 38, 29, .24);
    display: none;
    flex-direction: column
}

.city-picker-dialog[open] {
    display: flex
}

.city-picker-dialog::backdrop {
    background: rgba(11, 24, 19, .48)
}

.city-picker-dialog>header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--line)
}

.city-picker-dialog>header,
.city-picker-current,
.city-picker-dialog>section:not(:last-child) {
    flex: 0 0 auto
}

.city-picker-dialog>header h2 {
    margin: 2px 0 0;
    font-size: 22px
}

.city-picker-dialog>header button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer
}

.city-picker-dialog>section,
.city-picker-current {
    padding: 14px 22px
}

.city-picker-dialog section+section {
    border-top: 1px solid #eef2ef
}

.city-picker-dialog h3 {
    margin: 0 0 10px;
    font-size: 14px
}

.city-picker-dialog>section:last-child {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column
}

.city-picker-dialog>section:last-child .city-province-grid {
    flex: 1;
    min-height: 0
}

.city-initial-row {
    display: block;
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 14px
}

.city-initial-row>span {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700
}

.city-initial-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap
}

.city-initial-row button {
    min-width: 25px;
    padding: 3px 5px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer
}

.city-initial-row button:hover,
.city-initial-row button.is-active {
    border-color: var(--brand);
    background: #eaf3ed
}

.city-initial-row button.is-active {
    color: var(--ink);
    font-weight: 400
}

.city-picker-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6faf7;
    color: var(--muted);
    font-size: 13px
}

.city-picker-current button {
    padding: 7px 12px;
    border: 0;
    border-radius: 16px;
    background: #e4f1e8;
    color: var(--brand);
    font: inherit;
    cursor: pointer
}

.city-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.city-chip-grid button,
.city-name-button {
    min-width: 74px;
    padding: 3px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer
}

.city-chip-grid button:hover,
.city-name-button:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.city-province-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    max-height: none;
    overflow: auto;
    padding-right: 4px
}

.city-province {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden
}

.city-province>header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #f4f6f4
}

.province-name-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer
}

.province-name-button:hover {
    color: var(--brand)
}

.city-province-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px
}

.city-name-button {
    min-width: 0;
    padding: 5px 8px;
    border-radius: 14px;
    font-size: 13px
}

.city-picker-open {
    overflow: hidden
}

.city-picker-dialog {
    max-width: none;
    max-height: calc(100dvh - 24px)
}

.city-picker-dialog [hidden] {
    display: none !important
}

.city-picker-dialog button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}

.city-picker-dialog .city-chip.is-active,
.city-picker-dialog .city-name-button.is-active {
    border-color: var(--brand);
    background: #eaf3ed;
    color: var(--brand)
}

.city-picker-dialog .province-name-button.is-active {
    color: var(--brand)
}

.city-picker-status {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 22px;
    background: #fff8e8;
    color: #72571b;
    font-size: 13px
}

.city-picker-empty {
    grid-column: 1/-1;
    margin: 0;
    padding: 24px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 14px
}

.city-province-grid {
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin
}

@media(max-width:560px) {
    .city-picker-dialog {
        height: 100dvh;
        max-height: 100dvh
    }

    .city-picker-dialog>header,
    .city-picker-dialog>section,
    .city-picker-current {
        padding-left: 14px;
        padding-right: 14px
    }

    .city-picker-dialog .city-name-button {
        min-height: 36px
    }

    .city-chip-grid {
        gap: 6px
    }

    .city-picker-dialog .city-chip {
        min-width: 60px;
        min-height: 34px;
        padding: 3px 10px
    }

    .city-initial-buttons {
        gap: 3px
    }

    .city-initial-row button {
        min-width: 28px;
        min-height: 32px
    }
}

@media(max-height:640px) {
    .city-picker-dialog>header {
        padding: 10px 16px
    }

    .city-picker-dialog>section,
    .city-picker-current {
        padding: 8px 16px
    }

    .city-picker-dialog>section:not(:last-child) {
        max-height: 24dvh;
        overflow: auto
    }

    .city-initial-row {
        margin-bottom: 0
    }
}

.home-filter {
    margin-top: 24px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 160px 1fr 1fr minmax(220px, 1.6fr) auto;
    gap: 10px;
    align-items: end
}

.home-field {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 13px
}

.home-field select,
.home-field input,
.home-filter button {
    height: 42px;
    border: 1px solid #cbd8d0;
    border-radius: 5px;
    background: #fff;
    padding: 0 11px;
    font: inherit;
    color: var(--ink)
}

.home-filter button {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 650;
    cursor: pointer
}

.home-results {
    padding: 26px 0 60px
}

.home-results-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 14px
}

.home-results-head h2 {
    margin: 0;
    font-size: 22px
}

.home-results-head p {
    margin: 0;
    color: var(--muted)
}

.home-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.home-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0
}

.home-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    background: #e7eee9;
    text-decoration: none;
    overflow: hidden
}

.home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.home-card-image span {
    display: grid;
    place-items: center;
    height: 100%;
    color: #819188
}

.home-card-image b {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 3px
}

.home-card-body {
    padding: 15px
}

.home-card-body h3 {
    font-size: 19px;
    margin: 4px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.home-card-body h3 a {
    text-decoration: none
}

.home-card-body p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.home-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px
}

.home-tags span {
    font-size: 11px;
    background: #edf5ef;
    color: var(--brand);
    padding: 2px 6px;
    border-radius: 3px
}

.home-empty {
    background: #fff;
    border: 1px dashed var(--line);
    padding: 36px;
    text-align: center;
    color: var(--muted);
    grid-column: 1/-1
}

.home-loading {
    color: var(--muted);
    font-size: 13px
}

.home-band {
    padding: 56px 0;
    background: #fff;
    border-top: 1px solid var(--line)
}

.scenes-band {
    background: #eef2ef
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px
}

.home-section-head span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 750
}

.home-section-head h2 {
    margin: 4px 0;
    font-size: 30px
}

.home-section-head p {
    margin: 0;
    color: var(--muted)
}

.home-section-head>a,
.home-section-actions a {
    color: var(--brand);
    font-weight: 650;
    text-decoration: none
}

.home-section-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.home-section-actions button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer
}

.plot-filter {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: var(--surface)
}

.plot-filter-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.plot-filter-row:last-of-type {
    border-bottom: 0
}

.plot-filter-row>strong {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 10px 12px;
    background: #f4f6f4;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500
}

.plot-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 7px 10px
}

.plot-filter-options button {
    min-height: 30px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer
}

.plot-filter-options button:hover,
.plot-filter-options button.is-active {
    border-color: #9ec5ad;
    background: #edf7ef;
    color: var(--brand)
}

.plot-filter-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important
}

.plot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.plot-card,
.home-scene-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff
}

.plot-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e7eee9;
    text-decoration: none
}

.plot-card-image img,
.home-scene-media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.plot-card-image>span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--muted)
}

.plot-card-image b,
.home-scene-media b {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background: #fff;
    color: var(--brand);
    font-size: 12px
}

.plot-card>div,
.home-scene-card>div {
    padding: 2px
}

.plot-card>div>span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 650
}

.plot-card h3,
.home-scene-card h3 {
    margin: 4px 0;
    font-size: 19px
}

.plot-card p,
.home-scene-card p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 13px
}

.plot-update {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5
}

.plot-update.is-expired {
    color: #a14539
}

.plot-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0
}

.plot-attributes em {
    padding: 2px 7px;
    background: #edf5ef;
    color: var(--brand);
    font-size: 11px;
    font-style: normal
}

.plot-card footer,
.home-scene-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px
}

.plot-card footer strong {
    font-size: 19px;
    color: #a14539
}

.plot-card footer a,
.home-scene-card footer button {
    padding: 7px 10px;
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    text-decoration: none
}

.scene-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.home-scene-media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #dfe8e3;
    cursor: pointer
}

.home-scene-media>span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(18, 36, 31, .78);
    color: #fff;
    font-size: 12px
}

.home-scene-card footer strong {
    color: var(--brand);
    font-size: 13px
}

.platform-content-band {
    background: #f6f8f6
}

.home-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: 32px
}

.home-news-panel>header,
.home-help-panel>header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line)
}

.home-news-panel>header h3,
.home-help-panel>header h3 {
    margin: 0;
    font-size: 20px
}

.home-news-panel>header a,
.home-help-panel>header a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.home-news-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 134px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff
}

.home-news-card.no-cover {
    display: block
}

.home-news-media {
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #e7eee9
}

.home-news-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.home-news-card>div {
    min-width: 0;
    padding: 13px
}

.home-news-card>div>span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 11px
}

.home-news-card>div>span b {
    padding: 1px 5px;
    background: #edf5ef;
    font-size: 12px
}

.home-news-card h3 {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.45
}

.home-news-card h3 a {
    text-decoration: none
}

.home-news-card p {
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.home-news-card time {
    color: #8a9792;
    font-size: 11px
}

.home-help-list {
    display: grid
}

.home-help-list article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line)
}

.home-help-list article:first-child {
    padding-top: 0
}

.home-help-list article>span {
    color: #8ba098;
    font: 18px/1.4 Georgia, serif
}

.home-help-list h3 {
    margin: 0;
    font-size: 15px
}

.home-help-list h3 a {
    text-decoration: none
}

.home-help-list p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.home-content-empty {
    margin: 0;
    padding: 28px;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
    background: #fff
}

.home-vr-dialog {
    width: min(1360px, calc(100% - 24px));
    height: min(760px, calc(100% - 24px));
    padding: 0;
    border: 0;
    background: #101816;
    color: #fff
}

.home-vr-dialog::backdrop,
.reality-contact-dialog::backdrop {
    background: rgba(8, 15, 13, .72)
}

.home-vr-dialog header {
    display: flex;
    height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #17241f
}

.home-vr-dialog button {
    min-height: 36px;
    border: 1px solid #50615b;
    background: transparent;
    color: #fff
}

#home-vr-stage {
    height: calc(100% - 58px);
    position: relative;
    display: grid;
    place-items: center
}

#home-vr-stage canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important
}

.reality-contact-dialog {
    width: min(760px, calc(100% - 24px));
    padding: 28px;
    border: 0
}

.home-dialog-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 25px
}

.reality-contact-dialog h2 {
    margin: 5px 0;
    font-size: 27px
}

.reality-contact-dialog>div>span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700
}

.reality-contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0
}

#reality-phone {
    display: grid;
    min-height: 96px;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none
}

#reality-wechat-wrap {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 4px 12px;
    padding: 10px;
    border: 1px solid var(--line)
}

#reality-qr {
    grid-row: 1/3;
    width: 76px;
    height: 76px;
    object-fit: cover
}

#reality-wechat-wrap span {
    color: var(--muted);
    font-size: 12px
}

#reality-request-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

#reality-request-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 13px
}

#reality-request-form label:nth-of-type(4),
#reality-request-form button,
#reality-result {
    grid-column: 1/-1
}

#reality-request-form input,
#reality-request-form textarea {
    padding: 9px;
    border: 1px solid #cbd8d0;
    font: inherit
}

#reality-request-form button {
    min-height: 44px;
    border: 0;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700
}

#reality-result {
    margin: 0;
    color: var(--brand)
}

@media(max-width:900px) {
    .home-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .home-location-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px
    }

    .home-location-trigger {
        justify-content: center
    }

    .home-keyword-form {
        max-width: none
    }

    .city-province-grid {
        grid-template-columns: 1fr
    }

    .home-filter {
        grid-template-columns: 1fr 1fr
    }

    .home-filter button {
        width: 100%
    }
}

@media(max-width:900px) {

    .plot-grid,
    .scene-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .plot-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:900px) {
    .home-content-layout {
        grid-template-columns: 1fr
    }

    .home-news-card {
        grid-template-columns: 112px minmax(0, 1fr)
    }
}

@media(max-width:560px) {
    .home-header-inner {
        padding: 0 14px
    }

    .home-nav {
        gap: 10px;
        font-size: 13px
    }

    .home-main {
        padding: 0 14px
    }

    .home-hero {
        padding-top: 22px
    }

    .home-hero-title {
        font-size: 26px
    }

    .home-service-tabs {
        gap: 7px
    }

    .home-service-tabs button {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        justify-items: center;
        min-height: 100px;
        padding: 10px 5px;
        text-align: center
    }

    .home-service-tabs button>span {
        grid-row: auto;
        width: 34px;
        height: 34px;
        font-size: 18px
    }

    .home-service-tabs button strong {
        font-size: 14px
    }

    .home-service-tabs button small {
        font-size: 12px
    }

    .home-filter,
    .plot-filter {
        grid-template-columns: 1fr
    }

    .home-field select,
    .home-field input,
    .home-filter button,
    .plot-filter select,
    .plot-filter button {
        height: 48px;
        font-size: 16px
    }

    .plot-filter-options button {
        height: auto;
        min-height: 30px;
        font-size: 13px
    }

    .home-list,
    .plot-grid,
    .scene-showcase,
    .home-news-grid {
        grid-template-columns: 1fr
    }

    .home-news-card {
        grid-template-columns: 104px minmax(0, 1fr)
    }

    .home-results-head,
    .home-section-head {
        align-items: start;
        gap: 8px;
        flex-direction: column
    }

    .home-section-actions {
        width: 100%;
        justify-content: space-between
    }

    .home-section-actions button {
        min-height: 44px
    }

    .home-band {
        padding: 38px 0
    }

    .home-section-head h2 {
        font-size: 25px
    }

    .reality-contact-options,
    #reality-request-form {
        grid-template-columns: 1fr
    }

    #reality-request-form label {
        grid-column: 1
    }

    .reality-contact-dialog {
        padding: 24px 16px
    }

    .home-vr-dialog {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none
    }

    .city-picker-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0
    }

    .city-picker-dialog>header {
        padding-top: 16px
    }

    .city-province-grid {
        max-height: none
    }

    .platform-footer>div {
        max-width: calc(100% - 20px)
    }
}

.plot-filter-row {
    min-width: 0
}

.plot-filter-options {
    min-width: 0
}

/* Homepage news and help */
.home-content-section {
    padding-top: 10px;
    padding-bottom: 64px
}

.home-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 32px;
    align-items: start
}

.home-content-panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

.home-content-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px
}

.home-content-panel-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px
}

.home-content-panel-head a {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none
}

.home-content-panel-head a:hover {
    text-decoration: underline
}

.home-news-list {
    display: grid
}

.home-news-item {
    display: flex;
    gap: 20px;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid #eef1ef
}

.home-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0
}

.home-news-image {
    display: block;
    flex: 0 0 160px;
    width: 160px;
    height: 104px;
    overflow: hidden;
    border-radius: 8px;
    background: #e7eee9;
    color: var(--brand);
    text-decoration: none
}

.home-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.home-news-image span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #7b8d85;
    font-size: 13px
}

.home-news-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: space-between
}

.home-news-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.48
}

.home-news-text h3 a {
    color: var(--ink);
    text-decoration: none
}

.home-news-text h3 a:hover {
    color: var(--brand)
}

.home-news-text p {
    display: -webkit-box;
    min-width: 0;
    max-height: 3em;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.home-news-text time {
    margin-top: auto;
    padding-top: 8px;
    color: #87948e;
    font-size: 13px
}

.home-help-faq {
    display: grid
}

.home-help-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    text-decoration: none
}

.home-help-item:first-child {
    padding-top: 0
}

.home-help-item:last-child {
    padding-bottom: 0;
    border-bottom: 0
}

.home-help-item span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.home-help-item span:last-child {
    flex: none;
    color: var(--brand);
    font-size: 20px
}

.home-help-item:hover span:first-child {
    color: var(--brand)
}

.home-content-panel .home-empty,
.home-content-panel .home-content-empty {
    margin: 0;
    padding: 32px 16px
}

@media(max-width:900px) {
    .home-content-layout {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .home-content-section {
        padding-bottom: 42px
    }

    .home-content-panel {
        padding: 18px
    }

    .home-content-panel-head {
        margin-bottom: 18px
    }

    .home-content-panel-head h2 {
        font-size: 24px
    }

    .home-news-item {
        gap: 14px
    }

    .home-news-image {
        flex-basis: 112px;
        width: 112px;
        height: 78px
    }

    .home-news-text h3 {
        font-size: 16px
    }

    .home-news-text time {
        font-size: 12px
    }
}

/* Reference layout for plot cards on the homepage only */
.home-plot-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.home-plot-card:hover {
    border-color: #bfd5c8;
    box-shadow: 0 6px 16px rgba(31, 75, 64, .12);
    transform: translateY(-3px)
}

.home-plot-card .home-plot-image {
    height: 220px;
    aspect-ratio: auto
}

.home-plot-card .home-plot-image b {
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--brand);
    color: #fff;
    font-weight: 500
}

.home-plot-card .home-plot-image>em {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(16, 31, 26, .66);
    color: #fff;
    font-size: 12px;
    font-style: normal
}

.home-plot-card>.home-plot-body {
    padding: 20px
}

.home-plot-card .home-plot-body h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 22px
}

.home-plot-card .home-plot-provider {
    margin: 0 0 14px;
    color: #4f5d57;
    font-size: 15px
}

.home-plot-card .plot-attributes {
    gap: 8px;
    margin: 0 0 14px
}

.home-plot-card .plot-attributes em {
    padding: 2px 7px;
    border: 1px solid #b8d8c9;
    border-radius: 4px;
    background: #fff;
    color: var(--brand);
    font-size: 12px
}

.home-plot-card .home-plot-description {
    margin: 0 0 20px;
    color: #78857f;
    font-size: 13px;
    line-height: 1.55
}

.home-plot-card footer {
    margin-top: 0
}

.home-plot-card footer strong {
    color: var(--brand);
    font-size: 24px
}

.home-plot-card footer a {
    padding: 8px 16px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease
}

.home-plot-card footer a:hover {
    background: var(--brand);
    color: #fff
}

@media(max-width:900px) and (min-width:761px) {
    .home-plot-card .home-plot-image {
        height: 200px
    }
}

@media(max-width:760px) {
    .home-plot-card .home-plot-image {
        height: auto;
        aspect-ratio: 16/10
    }

    .home-plot-card>.home-plot-body {
        padding: 18px
    }

    .home-plot-card .home-plot-body h3 {
        font-size: 20px
    }
}

/* Compact city and district filters. */
.city-chip-grid button,
.city-name-button {
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 13px
}

.plot-district-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 2px;
    color: var(--muted);
    font-size: 12px
}

.home-scenes-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--brand);
    color: var(--brand);
    text-decoration: none;
    font-size: 13px
}

.scene-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.home-scene-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff
}

.home-scene-card>div {
    padding: 16px
}

.home-scene-card footer {
    margin-top: 14px
}

.home-scene-card footer button {
    min-height: 38px
}

.home-scene-card .home-scene-media {
    aspect-ratio: 16/10
}

@media(max-width:560px) {
    .scene-showcase {
        grid-template-columns: 1fr
    }

    .home-scenes-more {
        width: 100%;
        justify-content: center
    }
}

.home-card-image {
    border: 0;
    width: 100%;
    padding: 0;
    cursor: pointer;
    text-align: left
}

.home-card-title {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left
}

.home-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px
}

.home-card-detail,
.home-card-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px
}

.home-card-contact {
    background: #fff;
    color: var(--brand)
}

.home-market-dialog {
    width: min(900px, calc(100% - 24px));
    min-height: 60vh;
    max-height: 86vh;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: #fff;
    color: #24332d
}

.home-market-dialog::backdrop {
    background: rgba(8, 15, 13, .68)
}

.home-market-dialog-shell {
    max-height: 86vh;
    height: 100%;
    overflow-y: auto
}

.home-market-dialog header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff
}

.home-market-dialog-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px
}

.home-market-dialog-nav button,
.home-market-dialog-fullscreen {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    cursor: pointer
}

.home-market-dialog header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line)
}

.home-market-dialog header span {
    color: var(--brand);
    font-size: 12px
}

.home-market-dialog header h2 {
    margin: 5px 0 0;
    font-size: 26px
}

.home-market-dialog header>div:last-child {
    display: flex;
    align-items: center;
    gap: 8px
}

.home-market-dialog header button {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.home-market-dialog-body {
    display: grid;
    grid-template-columns: minmax(220px, 38%) 1fr;
    gap: 24px;
    padding: 24px
}

.home-market-dialog-body>div:first-child {
    min-height: 180px;
    background: #eef3ef
}

.home-market-dialog-body>div:first-child img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover
}

.home-market-dialog-body>div:first-child span {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #819188
}

.home-market-dialog-body p {
    line-height: 1.8
}

.home-market-dialog-body dl {
    display: grid;
    gap: 10px;
    margin: 18px 0
}

.home-market-dialog-body dl div {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px
}

.home-market-dialog-body dt {
    color: var(--muted)
}

.home-market-dialog-body dd {
    margin: 0
}

.home-market-dialog-note {
    padding: 10px 12px;
    background: #f5f8f5;
    color: var(--muted);
    font-size: 13px
}

.home-market-dialog-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    background: var(--brand);
    color: #fff;
    text-decoration: none
}

@media(max-width:600px) {
    .home-market-dialog {
        width: 100%;
        max-width: none;
        max-height: 100vh
    }

    .home-market-dialog-shell {
        max-height: 100vh
    }

    .home-market-dialog-body {
        grid-template-columns: 1fr;
        padding: 16px
    }

    .home-market-dialog header {
        padding: 18px 16px
    }

    .home-market-dialog header h2 {
        font-size: 22px
    }
}

.home-section {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 48px var(--public-page-gutter)
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
}

.home-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

@media(max-width:1200px) {
    .home-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:900px) {
    .home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .home-section {
        padding: 24px var(--public-page-gutter)
    }

    .home-card-grid,
    .home-content-grid {
        grid-template-columns: 1fr
    }
}

.home-content-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff
}

.home-content-card-link {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 134px;
    color: inherit;
    text-decoration: none
}

.home-content-card-link>img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 134px;
    object-fit: cover;
    background: #e7eee9
}

.home-content-card-link>div {
    min-width: 0;
    padding: 14px
}

.home-content-card h3 {
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap
}

.home-content-card p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.home-content-card time {
    color: #8a9792;
    font-size: 11px
}

.home-content-card:hover {
    border-color: #a9c8b5;
    box-shadow: 0 5px 14px rgba(31, 75, 64, .08)
}

.home-content-card:not(:has(img)) .home-content-card-link {
    display: block
}

@media(max-width:560px) {
    .home-content-card-link {
        grid-template-columns: 104px minmax(0, 1fr)
    }

    .home-content-card-link>img {
        min-height: 120px
    }

    .home-content-card-link>div {
        padding: 12px
    }

    .home-content-card h3 {
        font-size: 15px
    }
}

.home-recommended-halls {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.home-recommended-halls .home-card {
    padding: 16px;
    border-radius: 8px;
    overflow: hidden
}

.home-recommended-halls img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px
}

@media(max-width:900px) {
    .home-recommended-halls {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .home-recommended-halls {
        grid-template-columns: 1fr
    }
}

.home-recommended-halls .home-card {
    padding: 16px;
    border-radius: 8px;
    overflow: hidden
}

.home-recommended-media {
    position: relative;
    overflow: hidden;
    border-radius: 4px
}

.home-recommended-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover
}

.home-recommended-type {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 9px;
    border-radius: 3px;
    background: rgba(18, 48, 40, .86);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.home-recommended-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px
}

.home-recommended-info h3 {
    margin: 0
}

.home-recommended-info .home-card-detail {
    flex: none
}

.home-recommended-scene {
    margin: 9px 0 0;
    color: var(--muted)
}

@media(max-width:560px) {

    .home-header-inner,
    .home-main {
        padding-right: var(--public-page-gutter);
        padding-left: var(--public-page-gutter)
    }
}

/* Homepage directory controls */
.home-directory-section {
    padding-top: 72px;
    background: var(--surface)
}

.home-directory-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 0px solid var(--line)
}

.home-directory-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px
}

.home-directory-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: 32px;
    line-height: 1.25;
    white-space: nowrap
}

.home-directory-heading .home-location-trigger {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 21px;
    background: #fff;
    font-size: 14px
}

.home-directory-heading .home-location-trigger>svg {
    flex: none;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.home-directory-heading .home-location-change {
    padding-left: 2px
}

.home-directory-toolbar .home-service-tabs {
    display: flex;
    width: auto;
    margin: 0;
    justify-content: center;
    gap: 8px;
    text-align: center
}

body.home-page .home-directory-section .home-directory-toolbar .home-service-tabs button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 24px !important;
    background: #fff;
    color: var(--ink);
    text-align: center;
    white-space: nowrap
}

.home-directory-toolbar .home-service-tabs button>svg {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none
}

.home-directory-toolbar .home-service-tabs button>svg path {
    fill: currentColor
}

.home-directory-toolbar .home-service-tabs button strong {
    font-size: 15px;
    font-weight: 700
}

body.home-page .home-directory-section .home-directory-toolbar .home-service-tabs button:hover {
    border-color: #93bda4;
    transform: none
}

body.home-page .home-directory-section .home-directory-toolbar .home-service-tabs button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: none
}

.home-directory-toolbar .home-keyword-form {
    width: min(100%, 360px);
    max-width: 360px;
    justify-self: end;
    text-align: left
}

.home-directory-toolbar .home-keyword-control {
    height: 48px;
    border-radius: 6px;
    background: #fff
}

.home-directory-toolbar .home-keyword-control button {
    display: grid;
    width: 52px;
    padding: 0;
    place-items: center
}

.home-directory-section>.home-loading,
.home-directory-section>#home-message {
    margin: 0 0 16px;
    text-align: center
}

.home-list-footer {
    display: flex;
    min-height: 44px;
    margin-top: 26px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--brand);
    font-size: 14px
}

.home-list-footer span {
    font-weight: 700
}

.home-list-footer a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none
}

.home-list-footer a::after {
    content: ' ›';
    font-size: 18px;
    line-height: 1
}

.home-list-footer a:hover {
    border-color: var(--brand);
    background: #f5faf7
}

@media(max-width:1100px) {
    .home-directory-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px)
    }

    .home-directory-toolbar .home-service-tabs {
        grid-column: 1/-1;
        grid-row: 2
    }

    .home-directory-toolbar .home-keyword-form {
        grid-column: 2;
        grid-row: 1
    }
}

@media(max-width:760px) {
    .home-directory-section {
        padding-top: 24px
    }

    .home-directory-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 14px;
        margin-bottom: 22px
    }

    .home-directory-heading {
        grid-column: 1;
        grid-row: 1;
        flex-wrap: nowrap
    }

    .home-directory-heading h1 {
        display: none
    }

    .home-directory-heading .home-location-trigger {
        max-width: 150px;
        min-height: 48px;
        padding: 0 11px;
        white-space: nowrap
    }

    .home-directory-toolbar .home-service-tabs {
        display: grid;
        grid-column: 1/-1;
        grid-row: 2;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px
    }

    body.home-page .home-directory-section .home-directory-toolbar .home-service-tabs button {
        min-width: 0;
        min-height: 46px;
        padding: 0 7px;
        gap: 5px;
        border-radius: 23px !important
    }

    .home-directory-toolbar .home-service-tabs button>svg {
        width: 20px;
        height: 20px
    }

    .home-directory-toolbar .home-service-tabs button strong {
        font-size: 13px
    }

    .home-directory-toolbar .home-keyword-form {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
        justify-self: stretch
    }

    .home-list-footer {
        margin-top: 16px;
        flex-wrap: wrap
    }

    .home-memorial-section {
        display: flex;
        flex-direction: column
    }

    .home-memorial-section .home-section-head {
        display: contents
    }

    .home-memorial-section .home-section-head>div {
        margin-bottom: 16px
    }

    .home-memorial-section .home-section-head>a {
        order: 3;
        align-self: center;
        margin-top: 18px
    }
}

/* Homepage content cards grouped by the platform's configured subcategories. */
.platform-content-band {
    padding: 35px 0;
    border-top: 0;
    background: #f6f8f6
}

.home-topic-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.home-help-columns {
    margin-top: 0
}

.home-topic-column {
    min-width: 0;
    padding: 26px 28px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

.home-topic-column>header {
    display: flex;
    min-height: 46px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line)
}

.home-topic-column>header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 25px;
    line-height: 1.3
}

.home-topic-column>header a {
    flex: none;
    padding-top: 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none
}

.home-topic-column>header a span {
    display: inline-block;
    margin-left: 2px;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    vertical-align: -2px
}

.home-topic-column>header a:hover {
    text-decoration: underline
}

.home-topic-list {
    display: grid
}

.home-topic-item {
    position: relative;
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.home-topic-item:last-child {
    border-bottom: 0
}

.home-topic-item-news {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    min-height: 134px
}

.home-topic-media {
    display: block;
    width: 160px;
    height: 104px;
    overflow: hidden;
    border-radius: 7px;
    background: #e7eee9;
    color: var(--brand);
    text-decoration: none
}

.home-topic-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.home-topic-media span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #7b8d85;
    font-size: 13px
}

.home-topic-body {
    display: flex;
    min-width: 0;
    flex-direction: column
}

.home-topic-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px
}

.home-topic-heading h4 {
    min-width: 0;
    flex: 1
}

.home-topic-pinned {
    display: inline-flex;
    min-height: 20px;
    padding: 0 6px;
    align-items: center;
    border-radius: 3px;
    background: #e8f2eb;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700
}

.home-topic-item h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5
}

.home-topic-item h4 a {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap
}

.home-topic-item h4 a:hover {
    color: var(--brand)
}

.home-topic-item p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

.home-topic-item-news time {
    margin-top: auto;
    padding-top: 6px;
    color: #87948e;
    font-size: 13px
}

.home-topic-item-help {
    min-height: 0;
    margin: 0 -10px;
    padding-right: 10px;
    padding-left: 10px;
    transition: background-color .2s ease
}

.home-topic-item-help:hover,
.home-topic-item-help:focus-within {
    background: transparent
}

.home-topic-item-help:hover h4 a,
.home-topic-item-help:focus-within h4 a {
    color: var(--brand)
}

.home-topic-item-help h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6
}

.home-topic-item-help h4 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    -webkit-line-clamp: unset
}

.home-topic-item-help h4 a>span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.home-topic-help-arrow {
    flex: none;
    color: var(--brand);
    font-size: 22px;
    line-height: 1
}

@media(prefers-reduced-motion:reduce) {
    .home-topic-item-help {
        transition: none
    }
}

.home-topic-column .home-content-empty {
    margin: 16px 0 0;
    padding: 26px 12px
}

@media(max-width:1280px) {
    .home-topic-column {
        padding: 22px
    }

    .home-topic-item-news {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 14px
    }

    .home-topic-media {
        width: 128px;
        height: 90px
    }
}

@media(max-width:980px) {
    .home-topic-columns {
        grid-template-columns: 1fr
    }

    .home-topic-item-news {
        grid-template-columns: 160px minmax(0, 1fr)
    }

    .home-topic-media {
        width: 160px;
        height: 104px
    }
}

@media(max-width:560px) {
    .platform-content-band {
        padding: 26px 0
    }

    .home-topic-column {
        padding: 20px 18px
    }

    .home-topic-column>header h3 {
        font-size: 22px
    }

    .home-topic-item-news {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px
    }

    .home-topic-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9
    }

    .home-topic-item h4 {
        font-size: 16px
    }

    .home-topic-item h4 a {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere
    }

    .home-topic-item-help h4 a>span:first-child {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere
    }

    .home-topic-item-news time {
        font-size: 12px
    }
}

.platform-ad-stack {
    display: grid;
    gap: 8px;
    padding: 12px var(--public-page-gutter);
    background: var(--surface)
}

.platform-ad-stack[hidden] {
    display: none
}

.home-page main > .platform-ad-slot-home-top {
    margin-top: 18px
}

.platform-ad {
    position: relative;
    display: flow-root;
    isolation: isolate;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    background: #fff
}

.platform-ad-html {
    display: flow-root;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
}

.platform-ad-html *,
.platform-ad-html *::before,
.platform-ad-html *::after {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    float: none !important;
    transform: none !important;
}

.platform-ad-html > *,
.platform-ad-html img,
.platform-ad-html video,
.platform-ad-html picture {
    max-width: 100%;
}

.platform-ad-html img,
.platform-ad-html video {
    display: block;
    width: auto;
    height: auto;
}

.platform-ad-html p:first-child,
.platform-ad-html h1:first-child,
.platform-ad-html h2:first-child,
.platform-ad-html h3:first-child,
.platform-ad-html h4:first-child {
    margin-top: 0;
}

.platform-ad-html p:last-child,
.platform-ad-html h1:last-child,
.platform-ad-html h2:last-child,
.platform-ad-html h3:last-child,
.platform-ad-html h4:last-child {
    margin-bottom: 0;
}

.platform-ad>a {
    display: block;
    color: inherit;
    text-decoration: none
}

.platform-ad img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover
}

/* HTML ads keep their own aspect ratio; the fixed banner rule only applies
   to uploaded image ads. */
.platform-ad-html img,
.platform-ad-html video {
    width: auto;
    max-height: none;
    object-fit: contain;
}

.platform-ad-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 1;
    display: grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 30, 27, .68);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer
}

.platform-ad-close:hover {
    background: var(--brand)
}

.platform-ad [class*="rich-align-"] {
    margin: 0
}

@media(max-width:560px) {
    .home-page main > .platform-ad-stack[hidden] + .home-directory-section {
        padding-top: 40px
    }

    .home-page main > .platform-ad-slot-home-top {
        margin-top: 12px
    }

    .platform-ad-stack {
        gap: 10px;
        padding: 10px 14px
    }

    .platform-ad-html { padding: 10px 12px; }

    .platform-ad img {
        max-height: 120px
    }

    .platform-ad-close {
        top: 4px;
        right: 5px;
        width: 24px;
        height: 24px;
        font-size: 18px
    }
}
