/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* 列表页特定样式 */
.header.list-header .container {
    flex-direction: column;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-description {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.header-phone {
    color: #e6a23c;
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.header-phone a {
    color: inherit;
    text-decoration: none;
}

.header h1 {
    color: #20a0ff;
    font-size: 28px;
    font-weight: 600;
}

.back-link {
    text-decoration: none;
    color: #20a0ff;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #409eff;
    text-decoration: underline;
}

/* 筛选区域样式 */
.filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item label {
    font-weight: 500;
    color: #606266;
}

.filter-item select {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    outline: none;
    transition: border-color 0.3s;
}

.filter-item select:focus {
    border-color: #409eff;
}

/* 列表区域样式 */
.list-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.property-card {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 16px;
    background-color: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #303133;
}

.property-address {
    font-size: 14px;
    color: #606266;
    margin-bottom: 12px;
}

/* 联系按钮样式 */
.contact-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #409eff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #66b1ff;
}

.property-info {
    font-size: 14px;
    color: #909399;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-price {
    font-size: 18px;
    font-weight: 600;
    color: #f56c6c;
    margin-top: 12px;
}

.action {
    margin-top: 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* 详情页样式 */
.detail-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.detail-card {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 20px;
    background-color: #fff;
}

.property-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #303133;
}

.property-address {
    font-size: 16px;
    color: #606266;
    margin-bottom: 24px;
}

.detail-info {
    margin-top: 20px;
}

/* 纯HTML布局样式 */
.info-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.info-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 20px;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item label {
    font-weight: 500;
    color: #606266;
}

.info-item span {
    color: #303133;
}

.info-item .price {
    color: #f56c6c;
    font-weight: 600;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-list {
        grid-template-columns: 1fr;
    }
    
    .info-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    /* 手机模式下优化联系按钮 */
    .contact-button {
        padding: 16px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    /* 手机模式下tag上下有间隙 */
    .tags {
        gap: 12px;
    }
    
    /* 调整头部样式以适应移动端 */
    .header {
        padding: 15px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 20px;
    }
    
    /* 调整容器内边距以避免内容被固定头部遮挡 */
    .container {
        padding-top: 20px;
    }
    
    /* 手机模式下优化分页UI */
    .pagination {
        margin-top: 20px;
        padding: 0 10px;
        overflow: auto;
    }
    
    /* 调整分页控件的大小和间距 */
    .el-pagination {
        font-size: 14px;
    }
    
    .el-pagination .el-pager li {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        margin: 0 2px;
    }
    
    .el-pagination .el-pager li.btn-prev, 
    .el-pagination .el-pager li.btn-next {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
    }
    
    .el-pagination__total {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .el-pagination__jump {
        display: none;
    }
}