* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    background: #f6f6f6;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-wrap {
    width: 1200px;
    margin: 0 auto;
}

.topbar {
    height: 36px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
    font-size: 13px;
    line-height: 36px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
}

.topbar strong {
    color: #d60000;
    font-size: 18px;
}

.main-header {
    background: #fff;
}

.main-header__inner {
    height: 78px;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    height: 78px;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    min-width: 90px;
    height: 78px;
    padding: 0 18px;
    color: #333;
    font-size: 16px;
    line-height: 78px;
    text-align: center;
}

.main-nav a.active,
.main-nav a:hover {
    background: #d60000;
    color: #fff;
}

.search-band {
    padding: 28px 0 30px;
    background: #d60000;
}

.search-band__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-box {
    width: 690px;
    height: 46px;
    display: flex;
    background: #fff;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    outline: none;
    color: #333;
}

.search-box button {
    width: 118px;
    border: 0;
    background: #333;
    color: #fff;
    font-size: 16px;
}

.quick-tabs {
    display: flex;
    gap: 26px;
    color: #fff;
}

.quick-tabs a:hover {
    text-decoration: underline;
}

.page-main {
    padding: 18px 0 60px;
}

.crumb {
    color: #999;
    font-size: 13px;
    margin-bottom: 14px;
}

.filter-panel {
    background: #fff;
    border: 1px solid #e2e2e2;
    margin-bottom: 18px;
}

.filter-row {
    display: flex;
    min-height: 48px;
    border-bottom: 1px solid #eee;
}

.filter-row:last-child {
    border-bottom: 0;
}

.filter-label {
    width: 82px;
    padding: 15px 0;
    background: #fafafa;
    color: #666;
    text-align: center;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 10px 18px;
}

.filter-options button {
    border: 0;
    background: transparent;
    color: #333;
    padding: 3px 4px;
}

.filter-options button.active,
.filter-options button:hover {
    color: #d60000;
}

.content-layout {
    display: grid;
    grid-template-columns: 850px 320px;
    gap: 30px;
    align-items: start;
}

.listing {
    background: #fff;
    border: 1px solid #e2e2e2;
}

.listing-head {
    position: relative;
    padding: 22px 24px 18px;
    border-bottom: 2px solid #d60000;
}

.listing-head h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    line-height: 1.2;
}

.listing-head p {
    margin: 8px 0 0;
    color: #777;
}

.listing-head strong {
    color: #d60000;
}

.sort-tabs {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: flex;
    gap: 6px;
}

.sort-tabs button {
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}

.sort-tabs button.active,
.sort-tabs button:hover {
    border-color: #d60000;
    color: #d60000;
}

.house-item {
    display: grid;
    grid-template-columns: 210px 1fr 150px;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #ededed;
}

.house-item:last-child {
    border-bottom: 0;
}

.house-thumb {
    display: block;
    width: 210px;
    height: 150px;
    overflow: hidden;
    background: #eee;
}

.house-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.house-thumb:hover img {
    transform: scale(1.04);
}

.house-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.house-title-row h2 {
    max-width: 360px;
    margin: 0;
    overflow: hidden;
    color: #111;
    font-size: 22px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-title-row h2 a:hover {
    color: #d60000;
}

.sale-status {
    display: inline-block;
    height: 22px;
    padding: 0 8px;
    border-radius: 2px;
    background: #e7f6ed;
    color: #15904c;
    font-size: 12px;
    line-height: 22px;
}

.house-address {
    margin: 13px 0 0;
    color: #666;
    line-height: 1.7;
}

.house-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
    margin: 8px 0 0;
    color: #555;
}

.house-type span::after {
    content: "/";
    margin-left: 8px;
    color: #bbb;
}

.house-type span:last-child::after {
    content: "";
    margin: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    height: 24px;
    padding: 0 8px;
    border: 1px solid #e2e2e2;
    color: #777;
    font-size: 12px;
    line-height: 22px;
}

.house-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.house-actions button {
    height: 32px;
    border: 1px solid #d60000;
    background: #d60000;
    color: #fff;
    padding: 0 14px;
}

.house-actions button.plain {
    background: #fff;
    color: #d60000;
}

.house-price {
    padding-top: 4px;
    text-align: right;
}

.house-price strong {
    display: block;
    color: #d60000;
    font-size: 22px;
    line-height: 1.4;
}

.house-price span {
    display: block;
    margin-top: 6px;
    color: #999;
}

.house-price em {
    display: inline-block;
    margin-top: 20px;
    color: #999;
    font-style: normal;
    font-size: 12px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 18px;
}

.side-card h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.side-card p {
    color: #888;
    line-height: 1.7;
}

.find-card label {
    display: block;
    margin-bottom: 12px;
}

.find-card label span {
    display: block;
    margin-bottom: 7px;
    color: #666;
}

.find-card input,
.find-card select,
.lead-input {
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    padding: 0 10px;
    outline: none;
    background: #fff;
}

.find-card input:focus,
.find-card select:focus,
.lead-input:focus {
    border-color: #d60000;
}

.find-card button,
.modal-submit {
    width: 100%;
    height: 40px;
    border: 0;
    background: #d60000;
    color: #fff;
    font-weight: 700;
}

.side-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.side-card__head a {
    color: #d60000;
    font-size: 13px;
}

.rank-card ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-card li {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    height: 36px;
    border-bottom: 1px dotted #ddd;
    color: #666;
}

.rank-card li:last-child {
    border-bottom: 0;
}

.rank-card i {
    width: 20px;
    height: 20px;
    background: #aaa;
    color: #fff;
    font-style: normal;
    line-height: 20px;
    text-align: center;
}

.rank-card li:nth-child(-n+3) i {
    background: #d60000;
}

.rank-card a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card a:hover {
    color: #d60000;
}

.rank-card span {
    color: #d60000;
    font-size: 12px;
}

.call-card strong {
    display: block;
    margin-top: 16px;
    color: #d60000;
    font-size: 26px;
}

.toast {
    position: fixed;
    top: 46%;
    left: 50%;
    z-index: 3000;
    display: none;
    min-width: 220px;
    max-width: 420px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-align: center;
}

.modal {
    display: none;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.46);
}

.lead-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2100;
    width: 360px;
    transform: translate(-50%, -50%);
    padding: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.close-dialog {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 24px;
}

.lead-modal h2 {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: center;
}

.lead-modal__text {
    margin-bottom: 16px;
    color: #777;
    line-height: 1.6;
    text-align: center;
}

.code-row {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
    margin: 12px 0;
}

.yyz {
    border: 0;
    background: #333;
    color: #fff;
}

.privacy-note {
    margin: 12px 0 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}
