:root {
    --mz168-house-primary: #3498db;
    --mz168-house-secondary: #e84700;
    --mz168-house-light: #f8f9fa;
    --mz168-house-dark: #343a40;
    --mz168-house-gray: #6c757d;
    --mz168-house-border: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    text-decoration: none;
}


.mz168-house-container {
    max-width: 1412px;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mz168-house-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mz168-house-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mz168-house-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ec1c00;
    margin: 0;
}

/* 筛选表样式 - 精确控制间距 */
.mz168-house-filter-section {
    padding: 0 10px;
    border-bottom: 1px solid var(--mz168-house-border);
}

.mz168-house-filter-table {
    width: 100%;
    border-collapse: collapse;
}

.mz168-house-filter-table tr {
    border-bottom: 1px solid var(--mz168-house-border);
}

.mz168-house-filter-table tr:last-child {
    border-bottom: none;
}

.mz168-house-filter-table th {
    text-align: right;
    padding: 10px 12px 8px;
    width: 72px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--mz168-house-dark);
    white-space: nowrap;
    font-size: 0.85rem;
    height: 40px;
}

.mz168-house-filter-table td {
    padding: 8px 12px 10px;
    vertical-align: middle;
    height: 40px;
}

/* 选项按钮样式 */
.mz168-house-option {
    display: inline-flex;
    align-items: center;
    margin: 0 5px;
    padding: 3px 10px;
    height: 26px;
    border-radius: 13px;
    background-color: var(--mz168-house-light);
    color: var(--mz168-house-dark);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.82rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.mz168-house-option:hover {
    background-color: #e9ecef;
}

.mz168-house-option.mz168-house-active {
    background-color: var(--mz168-house-secondary);
    color: white;
    border-color: var(--mz168-house-secondary);
}

/* 选中标签样式 */
.mz168-house-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.mz168-house-selected-filter {
    background-color: var(--mz168-house-primary);
    color: white;
    padding: 3px 10px;
    height: 26px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
}

.mz168-house-selected-filter-remove {
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

.mz168-house-clear-all {
    color: var(--mz168-house-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
}

/* 排序控件样式 */
.mz168-house-sort-controls {
    display: flex;
    gap: 10px;
}

.mz168-house-sort-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--mz168-house-border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mz168-house-sort-btn:hover {
    background-color: var(--mz168-house-light);
}

.mz168-house-sort-btn.mz168-house-active {
    background-color: var(--mz168-house-primary);
    color: white;
    border-color: var(--mz168-house-primary);
}

/* 结果表格样式 */
.mz168-house-results-section {
    padding: 20px 20px;
}

.mz168-house-table-container {
    overflow-x: auto;
    border-radius: 5px;
    border: 1px solid var(--mz168-house-border);
}

.mz168-house-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
    font-size: 0.85rem;
}

.mz168-house-table th {
    background-color: #17518b;
    color: white;
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.mz168-house-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--mz168-house-border);
    vertical-align: middle;
}

/* 缩略图单元格 */
.mz168-house-thumbnail-cell {
    padding: 8px 14px !important;
    width: 120px;
}

.mz168-house-thumbnail {
    width: 200px;
    height: 127px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.mz168-house-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.mz168-house-title-link:hover {
    color: var(--mz168-house-primary);
}

.mz168-house-price {
    color: var(--mz168-house-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* 加载状态 */
.mz168-house-loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.mz168-house-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    border-top-color: var(--mz168-house-primary);
    animation: mz168-house-spin 1s ease-in-out infinite;
}

@keyframes mz168-house-spin {
    to { transform: rotate(360deg); }
}

/* 无结果提示 */
.mz168-house-no-results {
    text-align: center;
    padding: 30px 16px;
    color: var(--mz168-house-gray);
    display: none;
}

.mz168-house-no-results-icon {
    font-size: 2.8rem;
    color: #e9ecef;
    margin-bottom: 12px;
}

/* 分页控件 */
.mz168-house-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.mz168-house-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mz168-house-border);
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mz168-house-page-btn:hover:not(:disabled) {
    background-color: var(--mz168-house-light);
}

.mz168-house-page-btn.mz168-house-active {
    background-color: var(--mz168-house-primary);
    color: white;
    border-color: var(--mz168-house-primary);
}

.mz168-house-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px) {

    .mz168-house-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mz168-house-title {
        font-size: 1.2rem;
    }

    .mz168-house-filter-section {
        padding: 0 14px;
    }

    .mz168-house-filter-table th {
        width: 64px;
        padding: 8px 10px 6px;
        font-size: 0.8rem;
    }

    .mz168-house-filter-table td {
        padding: 6px 10px 8px;
    }

    .mz168-house-thumbnail {
        width: 128px;
        height: 100px;
    }

    .mz168-house-sort-controls {
        width: 100%;
        justify-content: space-between;
    }
}