﻿/* ============================================
   好快房产 - 全站汇总样式表
   原分散在4个页面的<style>已合并于此
   ============================================ */

/* ---------- 公共变量与基础重置 ---------- */
:root {
    --primary: #1a5f7a;
    --primary-light: #2e8bc0;
    --accent: #e8a838;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border: #e9ecef;
    --border-light: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

/* ---------- 公共：子页面白色固定导航 ---------- */
.page-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

    .page-navbar .logo, .page-navbar .nav-links a {
        color: var(--dark);
    }

/* ---------- 公共：Logo ---------- */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .logo-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ---------- 公共：导航链接 ---------- */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* ---------- 公共：子页面移动端菜单按钮 ---------- */
.page-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- 公共：移动端侧边菜单 ---------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1002;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

    .mobile-nav-panel.show {
        right: 0;
    }

.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .mobile-nav-links li {
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-links a {
        display: block;
        padding: 1rem 0;
        color: var(--dark);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: color 0.3s;
    }

        .mobile-nav-links a:hover {
            color: var(--primary);
        }

/* ---------- 公共：加载动画 ---------- */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--gray);
    letter-spacing: 2px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4,end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* ---------- 公共：级联选择器面板 ---------- */
.cascader-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    min-width: 100%;
    max-width: 90vw;
    overflow: hidden;
    overflow-x: auto;
}

.cascader-column {
    min-width: 150px;
    max-width: 180px;
    max-height: 280px;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    flex-shrink: 0;
}

    .cascader-column:last-child {
        border-right: none;
    }

    .cascader-column ul {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
    }

    .cascader-column li {
        padding: 0.65rem 1rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s;
        font-size: 0.95rem;
        color: var(--dark);
        white-space: nowrap;
    }

        .cascader-column li:hover, .cascader-column li.is-active {
            background: #f1f5f9;
            color: var(--primary);
        }

        .cascader-column li.is-selected {
            background: rgba(26,95,122,0.1);
            color: var(--primary);
            font-weight: 600;
        }

        .cascader-column li .arrow {
            font-size: 0.65rem;
            color: #adb5bd;
            margin-left: 0.5rem;
        }

.cascader-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.4rem;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #adb5bd;
    font-size: 0.85rem;
    line-height: 1;
    transition: all 0.2s;
}

    .cascader-clear:hover {
        background: #e9ecef;
        color: var(--dark);
    }

.cascader-trigger-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.cascader-placeholder {
    color: #6c757d;
}

.cascader-text {
    color: var(--dark);
}

/* ---------- 公共：子页面回到顶部 ---------- */
.page-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26,95,122,0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .page-back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .page-back-to-top:hover {
        background: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(232,168,56,0.4);
    }

/* ---------- 公共：Toast ---------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

/* ---------- 公共：Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: var(--accent);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    max-width: 1400px;
    margin: 0 auto;
}

.webcrod a {
    color: darkgray;
    text-decoration: none;
}

.footer-type-grid {
    columns: 140px;
    column-gap: 1.5rem;
}

    .footer-type-grid li {
        break-inside: avoid;
        margin-bottom: 0.6rem;
    }


/* ============================================
   首页 (index.html) 特有样式
   ============================================ */

/* 首页导航栏 - 透明渐变式 */
.index-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

    .index-navbar.scrolled {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        padding: 0.8rem 5%;
    }

        .index-navbar.scrolled .logo, .index-navbar.scrolled .nav-links a {
            color: var(--dark);
        }

        .index-navbar.scrolled .index-mobile-menu-btn {
            color: var(--dark);
        }

/* 首页移动端菜单按钮 */
.index-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1002;
    padding: 0.5rem;
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 搜索框 */
.search-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow-hover);
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
    }

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

    .btn-primary:hover {
        background: #d4952e;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(232,168,56,0.4);
    }

/* 统计 */
.stats {
    background: var(--white);
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    font-weight: 500;
}

/* 区块 */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--dark);
    }

    .section-header p {
        color: var(--gray);
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

/* 房源网格 */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* 首页房源卡片 */
.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

    .property-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: calc(5 * 4rem + 4 * 0.4rem);
}

.property-badge {
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.property-location {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: var(--gray);
    font-size: 0.9rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #e9ecef;
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

    .filter-btn.active, .filter-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

/* 首页回到顶部 */
.index-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-hover);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    .index-back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .index-back-to-top:hover {
        background: #d4952e;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(232,168,56,0.5);
    }

/* Hero内筛选标签 */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.7rem 2rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

    .filter-tab:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.5);
    }

    .filter-tab.active {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--white);
        box-shadow: 0 4px 15px rgba(232,168,56,0.4);
    }

/* Hero内筛选框 */
.filter-search-box {
    display: block !important;
    padding: 1.5rem;
}

.filter-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.filter-select {
    flex: 1;
    min-width: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

    .filter-select option {
        color: var(--dark);
    }

.filter-search-btn {
    width: 100%;
    margin: 0;
}

/* 首页级联选择器 */
.index-cascader-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.index-cascader-trigger {
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.6rem;
}

    .index-cascader-trigger.has-clear {
        background-image: none !important;
        padding-right: 0.6rem;
    }


/* ============================================
   房产出售筛选页 (filter.html) 特有样式
   ============================================ */

/* 加载遮罩（absolute） */
.filter-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 页面头部 */
.page-header {
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 6rem 5% 3rem;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        opacity: 0.9;
        font-size: 1.1rem;
    }

/* 主体容器 */
.filter-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 3rem;
    position: relative;
    min-height: 300px;
}

/* 筛选面板 */
.filter-panel {
    background: var(--white);
    padding: 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 5%;
}

/* 搜索栏 */
.filter-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.filter-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--light);
}

    .filter-search-input:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(26,95,122,0.1);
    }

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
}

.search-btn {
    padding: 0.7rem 1.8rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

    .search-btn:hover {
        background: var(--primary-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(26,95,122,0.3);
    }

.reset-btn-small {
    padding: 0.7rem 1.2rem;
    background: transparent;
    color: var(--gray);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

    .reset-btn-small:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(26,95,122,0.05);
    }

/* 筛选分组 */
.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.6rem 0;
}

.filter-group-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 50px;
    font-size: 0.9rem;
    padding-top: 0.45rem;
    flex-shrink: 0;
}

.filter-group-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    align-items: center;
}

.filter-chip {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.25s;
    color: var(--gray);
    user-select: none;
    white-space: nowrap;
}

    .filter-chip:hover {
        border-color: var(--primary-light);
        color: var(--primary);
        background: rgba(46,139,192,0.05);
    }

    .filter-chip.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(26,95,122,0.25);
    }

.advanced-filters-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

    .advanced-filters-wrapper.open {
        grid-template-rows: 1fr;
        opacity: 1;
    }

.advanced-filters-inner {
    overflow: hidden;
    min-height: 0;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.more-filters-row {
    display: flex;
    justify-content: center;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.more-filters-btn {
    padding: 0.5rem 1.5rem;
    background: var(--light);
    color: var(--primary);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}

    .more-filters-btn:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .more-filters-btn .arrow {
        transition: transform 0.3s;
        display: inline-block;
    }

    .more-filters-btn.open .arrow {
        transform: rotate(180deg);
    }

.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.8rem 0 0;
    margin-top: 0.8rem;
    border-top: 1px solid var(--border-light);
}

.active-filters-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem 0.3rem 0.9rem;
    background: rgba(26,95,122,0.08);
    color: var(--primary);
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(26,95,122,0.15);
}

    .active-filter-tag:hover {
        background: rgba(232,168,56,0.15);
        color: var(--accent);
        border-color: rgba(232,168,56,0.3);
    }

    .active-filter-tag .remove-icon {
        font-size: 1.1rem;
        line-height: 1;
        opacity: 0.7;
    }

/* 排序栏 */
.sort-bar-wrapper {
    background: linear-gradient(to bottom, var(--light), #f0f2f5);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.sort-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    color: var(--gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .result-count strong {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .result-count .result-label {
        color: var(--dark);
        font-weight: 500;
    }

.sort-options {
    display: ruby;
    gap: 1rem;
    align-items: center;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.sort-select-wrapper {
    position: relative;
}

.sort-select {
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    min-width: 140px;
}

    .sort-select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,95,122,0.1);
    }

.sort-select-arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray);
    font-size: 0.7rem;
}

.view-toggle {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.view-btn {
    padding: 0.55rem 1rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

    .view-btn:first-child {
        border-right: 1px solid var(--border);
    }

    .view-btn:hover {
        color: var(--primary);
        background: rgba(26,95,122,0.05);
    }

    .view-btn.active {
        background: var(--primary);
        color: white;
    }

/* 房源列表 */
.property-list {
    width: 100%;
}

.list-view .filter-property-card {
    display: flex;
    flex-direction: row;
    height: 220px;
}

.list-view .filter-property-image {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
}

.list-view .filter-property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 筛选页房源卡片（已加前缀 filter-） */
.filter-property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .filter-property-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

.filter-property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .filter-property-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.filter-property-card:hover .filter-property-image img {
    transform: scale(1.05);
}

.filter-property-info {
    padding: 1.2rem 1.5rem;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.filter-property-title {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 600;
    flex: 1;
}

.filter-property-price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 1rem;
}

    .filter-property-price .unit {
        font-size: 0.85rem;
        color: var(--gray);
        font-weight: 400;
    }

.filter-property-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: var(--light);
    color: var(--gray);
    font-size: 0.8rem;
    border-radius: 4px;
}

.filter-property-features {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--light);
}

.property-date {
    color: var(--gray);
    font-size: 0.85rem;
}

/* 网格视图 */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

    .grid-view .filter-property-card {
        margin-bottom: 0;
    }

    .grid-view .filter-property-image {
        height: 220px;
    }

    .grid-view .property-header {
        flex-direction: column;
    }

    .grid-view .filter-property-price {
        margin-left: 0;
        margin-top: 0.5rem;
    }


/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

    .page-btn:hover:not(:disabled) {
        border-color: var(--primary);
        color: var(--primary);
    }

    .page-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.reset-btn {
    margin-top: 1rem;
    padding: 0.6rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* 筛选页级联选择器（已加前缀） */
.filter-cascader-wrapper {
    position: relative;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 280px;
}

.filter-cascader-trigger {
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: 20px;
    font-size: 0.88rem;
    transition: all 0.25s;
    color: var(--gray);
}

    .filter-cascader-trigger:hover {
        border-color: var(--primary-light);
        color: var(--primary);
        background: rgba(46,139,192,0.05);
    }

    .filter-cascader-trigger.has-clear {
        padding-right: 0.6rem;
    }


/* ============================================
   肯尼亚指南页 (kenyaguide.html) 特有样式
   ============================================ */

.guide-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 5% 3rem;
    min-height: calc(100vh - 200px);
}

/* 加载遮罩（fixed，与详情页共用） */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.guide-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.guide-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.guide-sidebar-header {
    padding: 1.2rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-list {
    list-style: none;
}

.guide-list-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
}

    .guide-list-item:hover {
        background: var(--light);
        color: var(--primary);
    }

    .guide-list-item.active {
        background: var(--light);
        color: var(--primary);
        font-weight: 600;
        border-left: 3px solid var(--primary);
    }



.guide-content {
    flex: 1;
    width: 100%;
}

.content-type-tabs {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.content-type-tab {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 3px solid transparent;
    position: relative;
}

    .content-type-tab:hover {
        background: var(--light);
        color: var(--primary);
    }

    .content-type-tab.active {
        color: var(--primary);
        font-weight: 600;
        border-bottom-color: var(--primary);
        background: rgba(26,95,122,0.04);
    }

.content-box {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
    /* white-space: pre-wrap; */
    word-wrap: break-word;
}

    .content-box h1, .content-box h2, .content-box h3 {
        color: var(--primary);
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }

        .content-box h1:first-child, .content-box h2:first-child, .content-box h3:first-child {
            margin-top: 0;
        }

    .content-box p {
        margin-bottom: 1rem;
    }

    .content-box ul, .content-box ol {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-box a {
        color: var(--primary);
        text-decoration: none;
    }

        .content-box a:hover {
            text-decoration: underline;
        }

    .content-box img {
        max-width: 100%;
        border-radius: 8px;
        margin: 1rem 0;
    }

    .content-box table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
    }

    .content-box th, .content-box td {
        border: 1px solid var(--border);
        padding: 0.75rem;
        text-align: left;
    }

    .content-box th {
        background: var(--light);
        font-weight: 600;
    }

.content-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-type-tabs {
    display: none;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-light);
}

    .sidebar-type-tabs::-webkit-scrollbar {
        display: none;
    }

.sidebar-type-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    white-space: nowrap;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

    .sidebar-type-tab:hover {
        background: var(--light);
        color: var(--primary);
    }

    .sidebar-type-tab.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        font-weight: 600;
    }

/* ============================================
   指南页分页（仅上一页/下一页）
   ============================================ */

.guide-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}

    .guide-pagination .page-btn {
        min-width: 80px;
    }

/* ============================================
   房源详情页 (content.html) 特有样式
   ============================================ */

.detail-main-content {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5% 3rem;
}

.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.not-found-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.not-found-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.not-found-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.not-found-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

    .not-found-btn:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

    .breadcrumb a {
        color: var(--primary);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.breadcrumb-separator {
    color: var(--gray);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.detail-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

    .detail-price .unit {
        font-size: 1rem;
        color: var(--gray);
        font-weight: 400;
    }

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    cursor: pointer;
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    transition: all 0.3s;
    z-index: 10;
}

    .carousel-arrow:hover {
        background: rgba(255,255,255,1);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .carousel-arrow.prev {
        left: 1rem;
    }

    .carousel-arrow.next {
        right: 1rem;
    }

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

    .carousel-dot.active {
        background: var(--accent);
        width: 30px;
        border-radius: 5px;
    }

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 10;
}

.carousel-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.carousel-thumb {
    min-width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

    .carousel-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-thumb.active {
        border-color: var(--accent);
        opacity: 1;
    }

    .carousel-thumb:hover {
        opacity: 1;
    }

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-left {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.detail-right {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

    .info-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.base-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.base-info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
}

.base-info-value {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.base-info-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 2px dashed var(--border);
}

.info-item-label {
    color: var(--gray);
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 0 10px;
}

.info-item-value {
    font-weight: 600;
    color: var(--dark);
    padding: 0 20px;
}

.tag-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.detail-tag {
    padding: 0.4rem 1rem;
    background: var(--light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.description-text {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--light);
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.feature-value {
    font-weight: 600;
    color: var(--dark);
    margin-top: 0.2rem;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.agent-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.agent-details p {
    color: var(--gray);
    font-size: 0.9rem;
}

.agent-rating {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* 详情页联系按钮（已加前缀） */
.detail-contact-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.8rem;
}

.detail-contact-btn-primary {
    background: var(--accent);
    color: white;
}

    .detail-contact-btn-primary:hover {
        background: #d4952e;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(232,168,56,0.4);
    }

.detail-contact-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

    .detail-contact-btn-outline:hover {
        background: var(--primary);
        color: white;
    }

.contact-divider {
    text-align: center;
    margin: 1rem 0;
    color: var(--gray);
    font-size: 0.85rem;
    position: relative;
}

    .contact-divider::before, .contact-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30%;
        height: 1px;
        background: var(--border);
    }

    .contact-divider::before {
        left: 0;
    }

    .contact-divider::after {
        right: 0;
    }

.phone-display {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.phone-hint {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.qrcode-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    text-align: center;
}

    .qrcode-card h4 {
        margin-bottom: 1rem;
        color: var(--dark);
    }

.qrcode-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qrcode-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.qrcode-hint {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.similar-section {
    margin-top: 3rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.similar-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

    .similar-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.similar-image {
    height: 180px;
    overflow: hidden;
}

    .similar-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.similar-card:hover .similar-image img {
    transform: scale(1.05);
}

.similar-info {
    padding: 1.2rem;
}

.similar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.similar-location {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .image-modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal-image-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
    z-index: 10;
}

    .modal-arrow:hover {
        background: rgba(255,255,255,0.4);
    }

    .modal-arrow.prev {
        left: 1rem;
    }

    .modal-arrow.next {
        right: 1rem;
    }

.modal-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 10;
}

.modal-counter {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.5);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.modal-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

    .image-modal-close:hover {
        background: rgba(255,255,255,0.4);
    }

.modal-thumbs {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    max-width: 80%;
    overflow-x: auto;
    padding: 0.5rem;
}

.modal-thumb {
    min-width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

    .modal-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .modal-thumb.active {
        border-color: var(--accent);
        opacity: 1;
    }

    .modal-thumb:hover {
        opacity: 1;
    }


/* ============================================
   响应式媒体查询
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .page-mobile-menu-btn {
        display: block;
    }

    .index-mobile-menu-btn {
        display: block;
    }
}

/* 首页 */
@media (max-width: 768px) {

    section{
        padding-top:200px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .index-back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .filter-tab {
        padding: 0.5rem 1.1rem;
        font-size: 0.9rem;
    }

    .filter-bar {
        gap: 0.6rem;
    }
        .filter-bar .filter-btn {
            flex: 1;
            padding: 0.5rem 0.3rem;
            font-size: 0.9rem;
        }

    .filter-row {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .index-cascader-wrapper .cascader-panel {
        left: 0;
        max-width: calc(100vw - 2rem);
    }

    .index-cascader-wrapper .cascader-column {
        min-width: 130px;
        max-width: 150px;
    }
}

/* 筛选页 */
@media (max-width: 768px) {
    .filter-search-bar {
        flex-wrap: wrap;
    }

    .search-input-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .filter-group {
        flex-direction: column;
        gap: 0.6rem;
    }

    .filter-group-label {
        padding-top: 0;
    }

    .filter-group-options {
        gap: 0.4rem;
        width: 100%;
    }

    .filter-chip {
        padding: 0.35rem 0.8rem;
        font-size: 0.82rem;
    }

    .filter-cascader-wrapper {
        max-width: 100%;
        width: 100%;
    }

        .filter-cascader-wrapper .cascader-panel {
            left: 0;
            max-width: calc(100vw - 2rem);
        }

        .filter-cascader-wrapper .cascader-column {
            min-width: 130px;
            max-width: 150px;
        }

    .sort-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        padding: 0.55rem;
        min-width: 0px;
    }

    .list-view .filter-property-card {
        flex-direction: column;
        height: auto;
    }

    .list-view .filter-property-image {
        width: 100%;
        height: 220px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .filter-main-content {
        padding: 0 1.5rem 3rem;
    }

    .grid-view {
        grid-template-columns: 1fr;
    }

    .page-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .active-filters-bar {
        gap: 0.4rem;
    }
}

/* 指南页 */
@media (max-width: 768px) {
    .guide-main-content {
        padding: 90px 1.5rem 2rem;
    }

    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .content-type-tabs {
        display: none;
    }

    .sidebar-type-tabs {
        display: flex;
    }

    .guide-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .guide-list-item {
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border);
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

        .guide-list-item.active {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
            border-radius: 20px;
            border-left: none;
        }

    .content-box {
        padding: 1.5rem;
    }

    .page-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* 详情页 */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-right {
        position: static;
    }

    .carousel-container {
        height: 400px;
    }

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-price {
        font-size: 1.6rem;
    }

    .base-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .similar-grid {
        grid-template-columns: 1fr;
    }

    .detail-main-content {
        padding: 5rem 1.5rem 2rem;
    }

    .carousel-container {
        height: 280px;
        border-radius: 12px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-thumb {
        min-width: 80px;
        height: 55px;
    }

    .modal-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .modal-thumbs {
        bottom: 4rem;
    }

    .not-found-title {
        font-size: 1.8rem;
    }

    .not-found-icon {
        font-size: 3.5rem;
    }

    .page-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
