/* 贝壳找房风格样式表 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

ul {
    list-style: none;
}

/* 贝壳主题色 */
:root {
    --ke-primary: #00ae66;      /* 贝壳绿 */
    --ke-primary-dark: #009955; /* 深绿 */
    --ke-primary-light: #33cc99; /* 浅绿 */
    --ke-secondary: #ff6b35;    /* 橙色 */
    --ke-text-primary: #333;
    --ke-text-secondary: #666;
    --ke-text-light: #999;
    --ke-border: #e8e8e8;
    --ke-bg-light: #f8f9fa;
    --ke-bg-white: #fff;
    --ke-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 顶部导航栏样式 */
.ke-header {
    background-color: var(--ke-bg-white);
    box-shadow: var(--ke-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ke-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
}

/* Logo样式 */
.ke-logo {
    margin-right: 2cm; /* Logo和搜索框之间增加2厘米空隙 */
}

.ke-logo-link {
    display: flex;
    align-items: center;
    color: var(--ke-primary);
    font-weight: bold;
    font-size: 24px;
}

.ke-logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.ke-logo-text {
    font-size: 22px;
    font-weight: 600;
}

/* 主导航样式 */
.ke-nav-list {
    display: flex;
    gap: 60px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-left: 50px;
}

.ke-nav-link {
    color: var(--ke-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ke-nav-link:hover {
    color: var(--ke-primary);
    transform: translateY(-1px);
}

.ke-nav-link.ke-nav-active {
    color: var(--ke-primary);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(0, 119, 255, 0.3);
}

.ke-nav-link.ke-nav-active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--ke-primary), #66b3ff);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 119, 255, 0.3);
}

/* 用户操作区样式 */
.ke-user-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ke-login-btn, .ke-register-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.ke-login-btn {
    color: var(--ke-primary);
    border: 1px solid var(--ke-primary);
}

.ke-login-btn:hover {
    background-color: var(--ke-primary);
    color: white;
}

.ke-register-btn {
    background-color: var(--ke-primary);
    color: white;
}

.ke-register-btn:hover {
    background-color: var(--ke-primary-dark);
}

/* 搜索区域样式 */
.ke-search-section {
    background: linear-gradient(135deg, var(--ke-primary) 0%, var(--ke-primary-dark) 100%);
    padding: 60px 0;
    color: white;
}

.ke-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ke-search-main {
    text-align: center;
}

.ke-search-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ke-search-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 搜索标签样式 */
.ke-search-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}

.ke-search-tab {
    padding: 12px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.ke-search-tab.active {
    background-color: white;
    color: var(--ke-primary);
}

.ke-search-tab:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 搜索表单样式 - 深度优化参考贝壳官网风格 */
.ke-search-form {
    max-width: 650px;
    margin: 0 auto 30px;
}

.ke-search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e6e6e6;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 56px;
}

.ke-search-input-group:focus-within {
    border-color: var(--ke-primary);
    box-shadow: 0 6px 25px rgba(0, 119, 255, 0.15);
    transform: translateY(-2px);
}

.ke-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0 0 24px;
}

.ke-search-icon {
    color: var(--ke-text-light);
    margin-right: 12px;
    font-size: 18px;
}

.ke-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    font-size: 16px;
    color: var(--ke-text-primary);
    background: transparent;
    height: 100%;
    font-weight: 500;
}

.ke-search-input::placeholder {
    color: #999;
    font-weight: 400;
    font-size: 15px;
}

.ke-search-button {
    background: var(--ke-primary);
    color: white;
    border: none;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    min-width: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ke-search-button:hover {
    background: linear-gradient(135deg, var(--ke-primary), #3399ff);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.ke-search-button i {
    font-size: 14px;
}

/* 热门搜索样式 */
.ke-hot-search {
    font-size: 14px;
}

.ke-hot-label {
    opacity: 0.8;
    margin-right: 12px;
}

.ke-hot-tag {
    margin: 0 8px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.ke-hot-tag:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 主要内容区域样式 */
.ke-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 区块样式 */
.ke-section {
    margin-bottom: 60px;
}

.ke-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.ke-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ke-text-primary);
}

.ke-section-more {
    color: var(--ke-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.ke-section-more:hover {
    color: var(--ke-primary-dark);
}

/* 特色板块标题样式 */
.ke-section-icon {
    color: var(--ke-primary);
    margin-right: 8px;
    font-size: 20px;
}

/* 板块描述文字样式 */
.ke-section-desc {
    color: var(--ke-text-secondary);
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.3;
    opacity: 0.8;
}

/* 特色板块网格样式 */
.ke-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* 特色房源卡片样式 */
.ke-featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ke-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.ke-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.ke-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ke-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.ke-featured-image {
    height: 216px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ke-text-light);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.ke-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ke-featured-info {
    padding: 20px;
}

.ke-featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ke-text-primary);
    line-height: 1.4;
}

.ke-featured-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ke-text-secondary);
}

.ke-featured-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--ke-secondary);
    margin-bottom: 12px;
}

.ke-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ke-tag {
    background: var(--ke-bg-light);
    color: var(--ke-text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ke-tag.highlight {
    background: var(--ke-primary-light);
    color: var(--ke-primary-dark);
}

/* 房源网格样式 */
.ke-house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 房源卡片样式 */
.ke-house-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--ke-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ke-house-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ke-house-image {
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ke-text-light);
    font-size: 48px;
}

.ke-house-info {
    padding: 20px;
}

.ke-house-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ke-text-primary);
    line-height: 1.4;
}

.ke-house-details {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ke-text-secondary);
}

.ke-house-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--ke-secondary);
    margin-bottom: 12px;
}

.ke-house-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 特色服务样式 */
.ke-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ke-service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--ke-shadow);
    transition: transform 0.3s;
}

.ke-service-item:hover {
    transform: translateY(-4px);
}

.ke-service-icon {
    width: 60px;
    height: 60px;
    background: var(--ke-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.ke-service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ke-text-primary);
}

.ke-service-desc {
    color: var(--ke-text-secondary);
    line-height: 1.6;
}

/* 小区网格样式 */
.ke-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ke-community-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--ke-shadow);
    transition: transform 0.3s;
}

.ke-community-card:hover {
    transform: translateY(-4px);
}

.ke-community-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ke-text-primary);
}

.ke-community-info {
    margin-bottom: 16px;
}

.ke-community-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ke-text-secondary);
    font-size: 14px;
}

.ke-community-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--ke-secondary);
    margin-bottom: 16px;
}

.ke-contact-btn {
    background: var(--ke-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
}

.ke-contact-btn:hover {
    background: var(--ke-primary-dark);
}

/* 页脚样式 */
.ke-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 0;
}

.ke-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.ke-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ke-footer-links li {
    margin-bottom: 8px;
}

.ke-footer-links a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s;
}

.ke-footer-links a:hover {
    color: white;
}

.ke-social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ke-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.ke-social-link:hover {
    background: var(--ke-primary);
}

.ke-footer-contact {
    font-size: 14px;
    color: #bdc3c7;
}

.ke-footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.ke-copyright {
    color: #bdc3c7;
    font-size: 14px;
}

/* 新房页面样式 */

/* 顶部小字导航栏 */
.ke-top-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
}

.ke-top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.ke-top-nav-left,
.ke-top-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ke-top-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.ke-top-nav a:hover {
    color: var(--ke-primary);
}

/* 主导航菜单样式 */
.ke-main-nav-inline {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.ke-main-nav-inline a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.ke-main-nav-inline a:hover {
    color: var(--ke-primary);
}

.ke-main-nav-inline .ke-nav-active {
    color: var(--ke-primary);
    font-weight: 600;
}

.ke-nav-space {
    flex: 1;
}

/* 主导航栏 */
.ke-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.ke-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ke-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.ke-search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.ke-search-input-group {
    display: flex;
}

.ke-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ke-primary);
    border-right: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
}

.ke-search-button {
    background: var(--ke-primary);
    color: white;
    border: 2px solid var(--ke-primary);
    border-left: none;
    padding: 12px 24px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.ke-search-button:hover {
    background: var(--ke-primary-dark);
}

/* Tab导航 */
.ke-tab-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.ke-tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ke-tabs {
    display: flex;
    gap: 0;
}

.ke-tab {
    padding: 16px 24px;
    color: var(--ke-text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.ke-tab:hover {
    color: var(--ke-primary);
}

.ke-tab-active {
    color: var(--ke-primary);
    border-bottom-color: var(--ke-primary);
}

/* 筛选区域 */
.ke-filter-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
}

.ke-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ke-filter-group {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
}

.ke-filter-main {
    align-items: center;
}

.ke-filter-label {
    width: 76px;
    font-weight: 600;
    color: var(--ke-text-primary);
    font-size: 14px;
    line-height: 32px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ke-filter-tabs {
    display: flex;
    margin-right: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ke-filter-tab {
    padding: 6px 16px;
    background: white;
    border: none;
    color: var(--ke-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.ke-filter-tab:hover {
    background: #f8f9fa;
}

.ke-filter-tab-active {
    background: var(--ke-primary);
    color: white;
}

.ke-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.ke-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ke-text-secondary);
    transition: color 0.3s;
}

.ke-filter-option:hover {
    color: var(--ke-primary);
}

.ke-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 二级筛选容器 */
.ke-sub-filter-container {
    width: 100%;
    clear: both;
}

/* 二级筛选样式 */
.ke-sub-filter {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    display: block;
}

.ke-sub-filter .ke-filter-label {
    width: 80px;
    font-weight: 600;
    color: var(--ke-text-primary);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.ke-sub-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ke-sub-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ke-text-secondary);
    transition: color 0.2s;
}

.ke-sub-filter-option:hover {
    color: var(--ke-primary);
}

.ke-sub-filter-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* 筛选操作按钮样式 */
.ke-filter-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    clear: both;
}

.ke-filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ke-primary);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.ke-filter-toggle:hover {
    color: var(--ke-primary-dark);
}

.ke-filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.ke-filter-reset {
    color: var(--ke-text-secondary);
}

.ke-filter-reset:hover {
    border-color: var(--ke-primary);
    color: var(--ke-primary);
}

.ke-filter-apply {
    background: var(--ke-primary);
    color: white;
    border-color: var(--ke-primary);
}

.ke-filter-apply:hover {
    background: var(--ke-primary-dark);
}

/* 排序Tab标签 - 参考贝壳官网风格 */
.ke-sort-tabs {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.ke-sort-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 当在 .ke-main-content 内部时，去掉重复的水平 padding */
.ke-main-content .ke-sort-container {
    padding-left: 0;
    padding-right: 0;
}

.ke-sort-tab-group {
    display: flex;
    gap: 0;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ke-sort-tab {
    padding: 10px 24px;
    background: #f8f9fa;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid #e6e6e6;
}

.ke-sort-tab:last-child {
    border-right: none;
}

.ke-sort-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.ke-sort-tab-active {
    background: var(--ke-primary);
    color: white;
    font-weight: 600;
}

.ke-sort-right {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ke-result-count {
    font-size: 15px;
    color: #666;
}

.ke-result-count strong {
    color: var(--ke-primary);
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 119, 255, 0.2);
    margin: 0 4px;
}

/* 新房列表 */
.ke-loupan-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.ke-loupan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 新房列表布局 */
.ke-loupan-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.ke-loupan-main {
    width: 100%;
}

/* 翻页样式 */
.pagination, .ke-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination-btn, .ke-pagination .page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover:not([disabled]) {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
}

.pagination-btn.active {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info, .ke-pagination .page-info {
    color: #666;
    font-size: 13px;
}

.pagination-ellipsis, .ke-pagination .page-ellipsis {
    color: #999;
    padding: 0 4px;
}

/* 新房楼盘列表 - 单列布局 */
.ke-loupan-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.ke-loupan-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 32px;
}

.ke-loupan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

/* 推荐楼盘侧边栏 */
.ke-recommend-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.ke-recommend-header {
    border-bottom: 2px solid var(--ke-primary);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.ke-recommend-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.ke-recommend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ke-recommend-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ke-recommend-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.ke-recommend-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.ke-recommend-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ke-recommend-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 24px;
}

.ke-recommend-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ke-recommend-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ke-text-primary);
    line-height: 1.3;
    text-align: center;
}

.ke-recommend-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ke-secondary);
    text-align: center;
}

.ke-recommend-location {
    font-size: 12px;
    color: var(--ke-text-secondary);
    text-align: center;
}

.ke-loupan-image {
    width: 120px;
    height: 90px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ke-text-light);
    font-size: 24px;
    position: relative;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.ke-loupan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ke-loupan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ke-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ke-loupan-info {
    flex: 1;
    padding: 0;
}

.ke-loupan-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ke-text-primary);
    line-height: 1.4;
}

.ke-loupan-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ke-text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.ke-loupan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ke-loupan-tag {
    background: var(--ke-bg-light);
    color: var(--ke-text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.ke-loupan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ke-secondary);
    text-align: right;
    flex-shrink: 0;
    min-width: 100px;
}

.ke-loupan-details {
    display: flex;
    justify-content: space-between;
    color: var(--ke-text-secondary);
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.ke-loupan-detail {
    text-align: center;
}

.ke-loupan-detail-value {
    font-weight: 600;
    color: var(--ke-text-primary);
}

/* 分页样式 */
.ke-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ke-page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: var(--ke-text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.ke-page-btn:hover {
    border-color: var(--ke-primary);
    color: var(--ke-primary);
}

.ke-page-btn.active {
    background: var(--ke-primary);
    color: white;
    border-color: var(--ke-primary);
}

.ke-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ke-header-container {
        padding: 0 16px;
        height: 56px;
    }
    
    .ke-logo-text {
        font-size: 18px;
    }
    
    .ke-nav-list {
        gap: 20px;
    }
    
    .ke-search-section {
        padding: 40px 0;
    }
    
    .ke-search-title {
        font-size: 28px;
    }
    
    .ke-search-subtitle {
        font-size: 16px;
    }
    
    .ke-search-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .ke-search-input-group {
        flex-direction: column;
    }
    
    .ke-search-button {
        padding: 16px;
    }
    
    .ke-house-grid {
        grid-template-columns: 1fr;
    }
    
    .ke-services-grid {
        grid-template-columns: 1fr;
    }
    
    .ke-community-grid {
        grid-template-columns: 1fr;
    }
    
    .ke-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .ke-nav-list {
        display: none; /* 移动端隐藏主导航，可添加汉堡菜单 */
    }
    
    .ke-search-title {
        font-size: 24px;
    }
    
    .ke-section-title {
        font-size: 20px;
    }
}